mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-17 23:16:03 +01:00
fix: some details
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user