Tabs display different sections of content, with only one panel visible at once.
@radix-ui/react-tabs
lucide-reactInstall the following dependencies:
Root component that controls all the parts of a tabs.
| Prop | Type | Default |
|---|---|---|
| defaultValue | string | - |
| value | string | - |
| onValueChange | function | - |
A container that holds the trigger buttons.
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| loop | boolean | true |
The button that activates its associated content.
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| disabled | boolean | false |
| Data attribute | Values |
|---|---|
| [data-state] | active, inactive |
| [data-disabled] | Present when disabled |
The content that is shown when its associated trigger is active.
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| value | string | - |
| Data attribute | Values |
|---|---|
| [data-state] | active, inactive |