feat(Divider): handle size prop (#1307)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
adjabaev
2024-02-07 13:48:11 +01:00
committed by GitHub
parent a506cbbcb0
commit cbeede66bb
5 changed files with 35 additions and 11 deletions

View File

@@ -14,8 +14,22 @@ export default {
horizontal: 'w-full',
vertical: 'h-full',
size: {
horizontal: 'border-t',
vertical: 'border-s'
horizontal: {
'2xs': 'border-t',
xs: 'border-t-[2px]',
sm: 'border-t-[3px]',
md: 'border-t-[4px]',
lg: 'border-t-[5px]',
xl: 'border-t-[6px]'
},
vertical: {
'2xs': 'border-s',
xs: 'border-s-[2px]',
sm: 'border-s-[3px]',
md: 'border-s-[4px]',
lg: 'border-s-[5px]',
xl: 'border-s-[6px]'
}
},
type: {
solid: 'border-solid',
@@ -30,5 +44,8 @@ export default {
base: 'flex-shrink-0',
size: '2xs' as const
},
label: 'text-sm'
label: 'text-sm',
default: {
size: '2xs' as const
}
}