Import all parts of the component and piece them together
The root component for the Tabs.
| Prop | Type | Default |
|---|---|---|
className | string | -- |
customRootClass | string | -- |
children | ReactNode | |
value | string | -- |
color | string | -- |
defaultValue | string | -- |
onValueChange | function | -- |
orientation | enum | horizontal |
dir | enum | ltr |
loop | boolean | true |
activationMode | enum | automatic |
asChild | boolean | false |
The trigger component for the Tabs. This component is used to toggle the visibility of the Tab.
| Prop | Type | Default |
|---|---|---|
className | string | -- |
children | ReactNode | |
disabled | boolean | false |
value | string | -- |
asChild | boolean | false |
The list component for the Tabs. This component is used to display the list of Tabs.
| Prop | Type | Default |
|---|---|---|
className | string | -- |
children | ReactNode | |
asChild | boolean | false |
The content component for the Tabs. This component is used to display the content of the Tabs.
| Prop | Type | Default |
|---|---|---|
className | string | -- |
value | string | -- |
children | ReactNode | -- |
customRootClass | string | -- |
asChild | boolean | false |
forceMount | boolean | false |
| Shortcut | Description |
|---|---|
Tab | Moves focus into or out of the tab list. |
ArrowRight | When focus is on a tab trigger, moves focus to the next trigger. |
ArrowLeft | When focus is on a tab trigger, moves focus to the previous trigger. |
Home | When focus is on a tab trigger, moves focus to the first trigger. |
End | When focus is on a tab trigger, moves focus to the last trigger. |
| Reference | What Rad UI follows |
|---|---|
Uses tab list, tab trigger, and tab panel semantics for switching between related views. |