fix: some details

This commit is contained in:
Daniel Soares
2021-12-15 08:11:58 -03:00
parent 2f4dd0097b
commit 5df44ceddc
22 changed files with 330 additions and 118 deletions

View File

@@ -7,8 +7,9 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
children: ReactNode
colorSchema?: ButtonVariantProps['colorSchema']
styleSchema?: ButtonVariantProps['styleSchema']
size?: ButtonVariantProps['size']
font?: ButtonVariantProps['font']
outline?: ButtonVariantProps['outline']
outline?: boolean
}
export function Button({ children, ...rest }: ButtonProps) {

View File

@@ -38,10 +38,9 @@ export const Wrapper = styled('button', {
alignItems: 'center',
justifyContent: 'center',
width: '100%',
height: '3rem',
padding: '0 1rem',
borderWidth: '2.5px',
borderStyle: 'solid',
fontSize: '1rem',
fontWeight: 500,
cursor: 'pointer',
transition: 'all 0.25s ease-in-out',
@@ -84,6 +83,17 @@ export const Wrapper = styled('button', {
}
},
size: {
small: {
height: '2rem',
fontSize: '0.875rem'
},
medium: {
height: '3rem',
fontSize: '1rem'
}
},
font: {
baloo: {
fontFamily: theme.fonts.baloo
@@ -199,6 +209,7 @@ export const Wrapper = styled('button', {
defaultVariants: {
colorSchema: 'teal',
styleSchema: 'pill',
size: 'medium',
font: 'roboto',
outline: false
}