feat(Divider): new component (#757)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Haytham A. Salama
2023-10-05 15:43:58 +03:00
committed by Benjamin Canac
parent 0c807db005
commit eb9ce6a0dd
6 changed files with 384 additions and 2 deletions

View File

@@ -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 = {