mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-17 06:56:04 +01:00
19 lines
563 B
TypeScript
19 lines
563 B
TypeScript
import type { ButtonHTMLAttributes, ReactNode } from 'react'
|
|
|
|
import type { ButtonVariantProps } from './styles'
|
|
import { Wrapper } from './styles'
|
|
|
|
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
children: ReactNode
|
|
colorSchema?: ButtonVariantProps['colorSchema']
|
|
styleSchema?: ButtonVariantProps['styleSchema']
|
|
font?: ButtonVariantProps['font']
|
|
outline?: ButtonVariantProps['outline']
|
|
}
|
|
|
|
export function Button({ children, ...rest }: ButtonProps) {
|
|
return <Wrapper {...rest}>{children}</Wrapper>
|
|
}
|
|
|
|
export type { ButtonVariantProps }
|