Navigation
Tabs
Moves between related views without losing context.
idle
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Project overview
Record details
Profile settings
Sizes, icons, and manual activation
Tabs share compact sizing with segmented controls. Arrow keys move focus; manual activation waits for Enter or Space.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use concise labels for related panels. Keep panel headings and reading order consistent. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use navigation links for routes. Tabs change views within the current context. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Controls the active tab. |
| | — | Sets the initially active tab. |
| | "horizontal" | Sets the tab navigation orientation. |
| | — | Groups tabs; size defaults to default and variant supports default or underline. |
| | — | Selects a panel when activated. |
| | — | Contains the content associated with a tab. |
| | false | Arrow keys move focus. Enable this to select a panel on focus; otherwise use Enter or Space. |
| | Automatic | TabsList supplies a default animated indicator. An explicit indicator replaces its visible presentation. |