mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 09:20:36 +01:00
feat(Divider): new component (#757)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
Benjamin Canac
parent
0c807db005
commit
eb9ce6a0dd
@@ -721,6 +721,36 @@ export const skeleton = {
|
||||
rounded: 'rounded-md'
|
||||
}
|
||||
|
||||
export const divider = {
|
||||
wrapper: {
|
||||
base: 'flex items-center align-center text-center w-full',
|
||||
horizontal: 'flex-row',
|
||||
vertical: 'flex-col'
|
||||
},
|
||||
container: {
|
||||
base: 'font-medium text-gray-700 dark:text-gray-200 flex',
|
||||
horizontal: 'mx-3 whitespace-nowrap',
|
||||
vertical: 'my-2'
|
||||
},
|
||||
border: {
|
||||
base: 'flex border-gray-200 dark:border-gray-800',
|
||||
horizontal: 'w-full',
|
||||
vertical: 'h-full',
|
||||
size: {
|
||||
horizontal: 'border-t',
|
||||
vertical: 'border-s'
|
||||
}
|
||||
},
|
||||
icon: {
|
||||
base: 'flex-shrink-0 w-5 h-5'
|
||||
},
|
||||
avatar: {
|
||||
base: 'flex-shrink-0',
|
||||
size: '2xs'
|
||||
},
|
||||
label: 'text-sm'
|
||||
}
|
||||
|
||||
// Navigation
|
||||
|
||||
export const verticalNavigation = {
|
||||
|
||||
Reference in New Issue
Block a user