mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 03:10:42 +01:00
feat(Tabs): handle size prop (#124)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import theme from '#build/ui/tabs'
|
||||
describe('Tabs', () => {
|
||||
const colors = Object.keys(theme.variants.color) as any
|
||||
const variants = Object.keys(theme.variants.variant) as any
|
||||
const sizes = Object.keys(theme.variants.size) as any
|
||||
|
||||
const items = [{
|
||||
label: 'Tab1',
|
||||
@@ -34,6 +35,7 @@ describe('Tabs', () => {
|
||||
['with orientation vertical', { props: { ...props, orientation: 'vertical' as const } }],
|
||||
...colors.map((color: string) => [`with color ${color}`, { props: { ...props, color } }]),
|
||||
...variants.map((variant: string) => [`with variant ${variant}`, { props: { ...props, variant } }]),
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { ...props, size } }]),
|
||||
['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' } } }],
|
||||
|
||||
Reference in New Issue
Block a user