feat(Tabs): handle content prop as boolean

This commit is contained in:
Benjamin Canac
2024-06-03 14:55:33 +02:00
parent c6880c2036
commit e051ef682a
4 changed files with 51 additions and 36 deletions

View File

@@ -28,6 +28,7 @@ describe('Tabs', () => {
['with modelValue', { props: { ...props, modelValue: '1' } }],
['with defaultValue', { props: { ...props, defaultValue: '1' } }],
['with orientation vertical', { props: { ...props, orientation: 'vertical' as const } }],
['without content', { props: { ...props, content: false } }],
['with class', { props: { ...props, class: 'w-96' } }],
['with ui', { props: { ...props, ui: { content: 'w-full ring ring-gray-200 dark:ring-gray-800' } } }],
// Slots