Documentation
Getting Started
Foundations
Form
Layout
Display
Navigation
Overlay
Feedback
Tabs
Navigation
A component for organizing content into multiple panels, with only one panel visible at a time.
Installation
bash
1npx @dinachi/cli@latest add tabsRun the CLI command above to automatically install the component and its dependencies.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue | string | — | The default selected tab |
value | string | — | The controlled selected tab |
onValueChange | (value: string) => void | — | Callback fired when the selected tab changes |