Tabs
Tabbed content switcher.
Generated from the package's public source.
API
ActivationModetype
Activation mode: automatic activates on focus, manual requires Enter/Space.
Contentcomponent
@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.
Content(props: TabsContentProps): Element
Props
class?stringstyle?string | CSSPropertiesvaluestring— Value identifying this panel. Must match a Trigger's value.
children: Element
Listcomponent
@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.
List(props: TabsListProps): Element
Props
class?stringref?(el: HTMLDivElement) => void
children: Element
Rootcomponent
@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.
Root(props: TabsRootProps): Element
Props
activationMode?ActivationMode— Activation mode: "automatic" (default) activates on focus, "manual" on Enter/Space.defaultValue?string— Default active tab for uncontrolled mode.onValueChange?(value: string, details: ChangeDetails<TabsReason>) => void— Called when active tab changes.orientation?"horizontal" | "vertical"— Orientation: "horizontal" (default) or "vertical".value?Accessor<string>— Controlled active tab value.
children: Element
TabsContentPropsinterface
Props for a tab content panel.
Props
class?stringstyle?string | CSSPropertiesvaluestring— Value identifying this panel. Must match a Trigger's value.
children: Element
TabsListPropsinterface
Props for the tab list container.
Props
class?stringref?(el: HTMLDivElement) => void
children: Element
TabsReasontype
Reason for a tab value change.
TabsRootPropsinterface
Props for the tabs root container.
Props
activationMode?ActivationMode— Activation mode: "automatic" (default) activates on focus, "manual" on Enter/Space.defaultValue?string— Default active tab for uncontrolled mode.onValueChange?(value: string, details: ChangeDetails<TabsReason>) => void— Called when active tab changes.orientation?"horizontal" | "vertical"— Orientation: "horizontal" (default) or "vertical".value?Accessor<string>— Controlled active tab value.
children: Element
TabsTriggerPropsinterface
Props for an individual tab trigger button.
Props
disabled?boolean— Whether this tab trigger is disabled.ref?(el: HTMLButtonElement) => voidvaluestring— Value identifying this tab. Must match a Content's value.
children: Element
Triggercomponent
@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.
Trigger(props: TabsTriggerProps): Element
Props
disabled?boolean— Whether this tab trigger is disabled.ref?(el: HTMLButtonElement) => voidvaluestring— Value identifying this tab. Must match a Content's value.
children: Element