feat(system): add small size button variant

This commit is contained in:
Pavel Prichodko 2022-04-06 10:34:50 +02:00
parent 15526db046
commit c7e6b14e35
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
2 changed files with 9 additions and 1 deletions

View File

@ -14,6 +14,7 @@ interface Props {
type?: ButtonProps['type']
onClick?: ButtonProps['onClick']
variant?: Variants['variant']
size?: Variants['size']
}
const Button = (props: Props, ref: Ref<HTMLButtonElement>) => {

View File

@ -9,11 +9,12 @@ export const Base = styled('button', {
fontFamily: '$sans',
fontWeight: '$500',
fontSize: '15px',
lineHeight: 1.4,
position: 'relative',
display: 'inline-flex',
justifyContent: 'center',
alignItems: 'center',
padding: '11px 24px',
padding: '12px 24px',
borderRadius: '$8',
transitionProperty: 'background-color, border-color, color, fill, stroke',
transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
@ -52,6 +53,12 @@ export const Base = styled('button', {
},
},
},
size: {
small: {
fontSize: '13px',
padding: '10px 12px',
},
},
loading: {
true: {},
},