Files
link-free/src/components/Button/index.tsx
2021-12-11 13:42:11 -03:00

13 lines
340 B
TypeScript

import { ButtonHTMLAttributes, ReactNode } from 'react'
import { ButtonVariantProps, Wrapper } from './styles'
type ButtonProps = ButtonVariantProps &
ButtonHTMLAttributes<HTMLButtonElement> & {
children: ReactNode
}
export function Button({ children, ...rest }: ButtonProps) {
return <Wrapper {...rest}>{children}</Wrapper>
}