mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
feat(Divider): handle size prop (#1307)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user