Files
link-free/src/components/Button/index.tsx

13 lines
340 B
TypeScript
Raw Normal View History

2021-12-11 01:48:15 -03:00
import { ButtonHTMLAttributes, ReactNode } from 'react'
2021-12-11 13:42:11 -03:00
import { ButtonVariantProps, Wrapper } from './styles'
2021-12-11 01:48:15 -03:00
2021-12-11 13:42:11 -03:00
type ButtonProps = ButtonVariantProps &
2021-12-11 01:48:15 -03:00
ButtonHTMLAttributes<HTMLButtonElement> & {
children: ReactNode
}
export function Button({ children, ...rest }: ButtonProps) {
return <Wrapper {...rest}>{children}</Wrapper>
}