Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Tabs
A roving-tabindex tablist with a dithered underline that slides to the active tab. Arrow keys move selection.
Variants
underline
segmented
washed
Vertical, badges and disabled
Inbox: 12 items.
- tabs
- Type(string | { value, label?, badge?, disabled? })[] Defaultnone
- modelValue
- Typestring Defaultnone
- variant
- Type"underline" | "segmented" | "washed" Default"underline"
- orientation
- Type"horizontal" | "vertical" Default"horizontal"
- color
- TypePixelColor Default"blue"
- seed
- Typenumber Defaultnone
- class
- Typestring Defaultnone
- onUpdateModelValue
- Type(value: string) => void Defaultnone
- children
- Typecontent Defaultnone
- value (TabPanel)
- Typestring (nests inside DitherTabs) Defaultnone
- class (TabPanel)
- Typestring Defaultnone
- children (TabPanel)
- Typecontent Defaultnone
Add it to your project
One line copies DitherTabPanel, DitherTabs and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTabPanel DitherTabsCollapsible
A disclosure row animated through grid-template-rows; when open, a 2px dithered rail runs down the left edge of the content.
- title
- Typestring Defaultnone
- modelValue
- Typeboolean Defaultfalse
- color
- TypePixelColor Default"blue"
- onUpdateModelValue
- Type(value: boolean) => void Defaultnone
- children
- Typecontent Defaultnone
Add it to your project
One line copies DitherCollapsible and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCollapsibleDialog
A portalled modal with labelled title and description, trapped focus, Escape/backdrop dismissal, focus restoration, and an optional action footer.
- open
- Typeboolean Defaultnone
- title
- Typestring Defaultundefined
- description
- Typestring Defaultundefined
- closeOnBackdrop
- Typeboolean Defaulttrue
- class
- Typestring Defaultnone
- onClose
- Type() => void Defaultnone
- footer
- TypeJSX.Element Defaultnone
- children
- Typecontent Defaultnone
Add it to your project
One line copies DitherButton, DitherDialog and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherButton DitherDialogCenter morph modal
A composable modal whose full-size surface unfolds from its exact center toward every edge, then folds back the same way with an inset close control. Same focus trap, Escape, and backdrop contract as Dialog.
- open
- Typeboolean Defaultnone
- label
- Typestring (accessible name) Default"Modal"
- closeOnBackdrop
- Typeboolean Defaulttrue
- class
- Typestring Defaultnone
- onClose
- Type() => void Defaultnone
- children
- Typecontent Defaultnone
Add it to your project
One line copies DitherButton, DitherCenterMorphModal and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherButton DitherCenterMorphModalKbd
An honest keyboard key: no canvas, just the house border and a 2px bottom edge. Pairs with shortcut listings.
- class
- Typestring Defaultundefined
- children
- Typecontent Defaultnone
Add it to your project
One line copies DitherKbd and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherKbd