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

19 lines
541 B
TypeScript
Raw Normal View History

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