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).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Example
Section titled “Example”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}) },]});