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

19 lines
563 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
2021-12-14 14:18:50 -03:00
colorSchema?: ButtonVariantProps['colorSchema']
styleSchema?: ButtonVariantProps['styleSchema']
2021-12-13 17:12:51 -03:00
font?: ButtonVariantProps['font']
2021-12-14 14:18:50 -03:00
outline?: ButtonVariantProps['outline']
2021-12-13 17:12:51 -03:00
}
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 }