Skip to content

tabs

tabs(opts): void

Defined in: components/tabs.ts:62

A tabbed view. Renders an ARIA tablist of buttons and a single live panel for the selected tab. Supports keyboard navigation (left/right/home/end).

TabsOptions

void

S.tabs({ tabs: [
{ label: "Overview", content: () => A("p#Let me give you an overview..") },
{ label: "Settings", content: () => S.checkbox({label: "I agree to anything", checked: true}) },
]});