Tabs are used to switch between different views of a component.
React is a JavaScript library for building user interfaces.
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 |
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 |