Panel activation
selectfunction
Selects a tab and makes it the active roving-focus item.
Panel activation policy
ActivationModetype-alias
Controls whether moving focus also selects a tab.
Panel visibility
Panelfunction
Renders a labelled tabpanel and hides it reactively when its tab is not selected.
PanelOptionsinterface
Inputs accepted by Tabs.Panel in addition to the shared DOM host options.
Selection and focus
InitialStateinterface
Initial Tabs values. The caller supplies value; activeId defaults to value, activation is automatic, orientation horizontal, and loop true.
Stateinterface
The visible panel selection, focused tab identity, and activation policy. Manual activation allows
activeIdto differ fromselectedIduntil the user commits.StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate Tabs state.
makeStatefunction
Creates hydrated Tabs state. The caller supplies value; activeId defaults to value, activation is automatic, orientation horizontal, and loop true.
Tab controls
Tabfunction
Renders and optionally registers a tab with stable aria-controls, selected state, and roving tabindex.
TabOptionsinterface
Inputs accepted by Tabs.Tab in addition to the shared DOM host options.
Tab list
Listfunction
Renders the tablist and applies orientation-aware movement plus Enter/Space activation in manual mode.
ListOptionsinterface
Inputs accepted by Tabs.List in addition to the shared DOM host options.
Tab registration
makeCollectionvariable
Creates a scoped Collection for Tabs items.