Tabs API
API reference for the Tabs components.
Tabs.Root
Props
mandatory
boolean | "force"Controls mandatory tab behavior: - false: No mandatory tab enforcement - true: Prevents deselecting the last selected item - `force` (default): Automatically selects the first non-disabled tab
Default: "force"
activation
TabsActivationActivation mode: - `automatic`: Tab activates on focus (arrow keys) - `manual`: Tab activates on Enter/Space only
Default: "automatic"
modelValue
T | T[]Events
update:model-value
[value: T | T[]]Slots
default
TabsRootSlotPropsTabs.Item
Props
Slots
default
TabsItemSlotPropsTabs.List
Props
Slots
default
TabsListSlotPropsTabs.Panel
Props
Slots
default
TabsPanelSlotProps