import styled from '@emotion/styled'; import { shouldNotForwardProps } from '../../utils/should-not-forward-props'; export const UnstyledButton = styled('button', shouldNotForwardProps(['display']))<{ display?: string; }>` display: ${({ display }) => display || 'block'}; margin: 0; padding: 0; border: none; background: transparent; cursor: pointer; text-align: left; font: inherit; color: inherit; &:focus { outline-offset: 2px; } &:focus:not(:focus-visible) { outline: none; } `;