mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-18 23:46:04 +01:00
14 lines
377 B
TypeScript
14 lines
377 B
TypeScript
|
|
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>
|
||
|
|
}
|