feat: add base styles

This commit is contained in:
Daniel Soares
2021-12-11 01:48:15 -03:00
parent db839b267a
commit a96d6126a8
4 changed files with 497 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
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>
}