feat(Drawer): handle direction + handle props

This commit is contained in:
Benjamin Canac
2024-09-27 11:44:52 +02:00
parent 5b62a8c8ca
commit 5f77aac368
10 changed files with 312 additions and 50 deletions

View File

@@ -9,6 +9,10 @@ describe('Drawer', () => {
// Props
['with title', { props: { ...props, title: 'Title' } }],
['with description', { props: { ...props, title: 'Title', description: 'Description' } }],
['with left direction', { props: { ...props, direction: 'left', title: 'Title', description: 'Description' } }],
['with top direction', { props: { ...props, direction: 'top', title: 'Title', description: 'Description' } }],
['with right direction', { props: { ...props, direction: 'right', title: 'Title', description: 'Description' } }],
['without handle', { props: { ...props, handle: false, title: 'Title', description: 'Description' } }],
['without overlay', { props: { ...props, overlay: false, title: 'Title', description: 'Description' } }],
['with class', { props: { ...props, class: 'bg-gray-50 dark:bg-gray-800' } }],
['with ui', { props: { ...props, ui: { handle: 'w-20' } } }],