The value of the currently active `Tab`. Use when the component is controlled. When the value is `null`, no Tab will be active.
defaultValueOptional
TabsTab.Value | undefined
0
The default value. Use when the component is not controlled. When the value is `null`, no Tab will be active.
orientationOptional
TabsRoot.Orientation | undefined
horizontal
The component orientation (layout flow direction).
List
Name
Type
Default
Description
activateOnFocusOptional
boolean | undefined
false
Whether to automatically change the active tab on arrow key focus. Otherwise, tabs will be activated using <kbd>Enter</kbd> or <kbd>Space</kbd> key press.
loopFocusOptional
boolean | undefined
true
Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys.
Tab
Name
Type
Default
Description
valueRequired
TabsTab.Value
—
The value of the Tab.
disabledOptional
boolean | undefined
—
Whether the Tab is disabled. If a first Tab on a `<Tabs.List>` is disabled, it won't initially be selected. Instead, the next enabled Tab will be selected. However, it does not work like this during server-side rendering, as it is not known during pre-rendering which Tabs are disabled. To work around it, ensure that `defaultValue` or `value` on `<Tabs.Root>` is set to an enabled Tab's value.
Indicator
Name
Type
Default
Description
renderBeforeHydrationOptional
boolean | undefined
false
Whether to render itself before React hydrates. This minimizes the time that the indicator isn't visible after server-side rendering.
Panel
Name
Type
Default
Description
valueRequired
TabsTab.Value
—
The value of the TabPanel. It will be shown when the Tab with the corresponding value is active.
keepMountedOptional
boolean | undefined
false
Whether to keep the HTML element in the DOM while the panel is hidden.