Tabs
moleculeHorizontal tab bar with associated content panels. Supports controlled and uncontrolled modes and disabled tabs.
Basic
Three tabs with content panels.
With disabled tab
A tab can be disabled to prevent selection.
Overflow menu
When tabs exceed the container width, extra items collapse into a "more" overflow menu automatically.
Usage
Installation
API Reference
Tabs props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
tabs* | TabItem[] | — | Array of { value, label, content?, disabled? } tab definitions. When no tab has content, panel rendering is skipped (header-only / controlled mode). |
defaultValue | string | — | Uncontrolled initial active tab value. |
value | string | — | Controlled active tab value. |
onChange | (value: string) => void | — | Called when the active tab changes. |
style | React.CSSProperties | — | Inline styles for the tabs wrapper. |