items | TabItem[] | - | |
|
defaultValue | string | - | |
|
value | string | - | Controlled selection. |
| Controlled selection. |
onValueChange | (value: string) => void | - | Called with the newly selected tab's value. |
Called with the newly selected tab's value. |
orientation | horizontal | vertical | horizontal | vertical stacks the tabs and sits any panels beside them rather than below. |
vertical stacks the tabs and sits any panels beside them rather than below. |
icon | boolean | true | |
|
iconPosition | leading | trailing | leading | |
|
children | ReactNode | - | Panels of your own, from Base UI's Tabs.Panel, after the list in the same tabs, for panels laid out other than as cards. |
Panels of your own, from Base UI's Tabs.Panel, after the list in the same tabs, for panels laid out other than as cards. |
size | sm | md | lg | md | Tab padding and label size together. |
| Tab padding and label size together. |
shape | none | rounded | pill | rounded | |
|
animated | boolean | true | |
|
className | string | - | |
|
focus | boolean | string | true | |
|