The Tabs component provides an accessible tabbed interface for organizing content into separate panels.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yogendrarana/craftdotui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
Components
Tabs (Root)
Controlled active tab value.
Default active tab for uncontrolled usage.
Callback when active tab changes.
Layout orientation. Options:
horizontal, verticalTabsList
Visual style. Options:
default, outlined, ghostMake tabs fill the full width.
Hide the active tab indicator.
Tab shape. Options:
default, pillTab size. Options:
sm, md, lgTabsTab
Unique value identifying this tab.
Disable the tab.
TabsPanel
Value matching the associated tab.
Examples
Variants
Pill Shape
Vertical Orientation
Full Width
Accessibility
- Built on @base-ui/react Tabs primitive
- Keyboard navigation (Arrow keys, Home, End)
- Automatic tab focus management
- ARIA attributes for roles and states
- Active indicator for visual feedback