Tabs display different sections of content, with only one panel visible at once.
@radix-ui/react-collapsible
lucide-reactInstall the following dependencies:
Root component that controls all the parts of a tabs.
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| defaultOpen | boolean | - |
| open | boolean | - |
| onValueChange | function | - |
| disabled | boolean | - |
| Data attribute | Values |
|---|---|
| [data-state] | open, close |
| [data-disabled] | Present when disabled |
The button that activates its associated content.
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| Data attribute | Values |
|---|---|
| [data-state] | open, close |
| [data-disabled] | Present when disabled |
The component that contains the collapsible content.
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| Data attribute | Values |
|---|---|
| [data-state] | open, close |
| [data-disabled] | Present when disabled |