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

14 lines
377 B
TypeScript
Raw Normal View History

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