Tabs
Organize content into selectable panels with terminal-style borders.
Import
Usage
The Tabs component organizes content into selectable panels with terminal aesthetics.
Welcome to the overview panel. This tab displays general information about the system.
Props
Tabs
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | number | null | - | Selected tab value (controlled) |
| defaultValue | string | number | null | - | Default selected tab value (uncontrolled) |
| onValueChange | (value: string | number | null) => void | - | Callback when selected tab changes |
| children | React.ReactNode | - | Tab list and content panels |
| className | string | - | Additional CSS class names |
TabsList
| Prop | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | - | Tab triggers |
| className | string | - | Additional CSS class names |
TabsTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | number | null | - | Value that identifies this tab (required) |
| children | React.ReactNode | - | Tab label content |
| disabled | boolean | - | Whether this tab is disabled |
| className | string | - | Additional CSS class names |
TabsContent
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | number | null | - | Value that identifies this panel (required) |
| children | React.ReactNode | - | Panel content |
| className | string | - | Additional CSS class names |
Variants
Basic
Welcome to the overview panel. This tab displays general information about the system.
Controlled
Current tab:
tab1Content for the first tab.