Skip to content

Tabs

A full WAI-ARIA tabs pattern: roving tabindex, arrow-key navigation and aria-selected, wired up by a scoped script. Panels are slotted children tagged data-tab matching a tab’s id.

Overview content.
Usage content.
  • orientation: horizontal (default), vertical
  • variant: line (default), contained
<Tabs tabs={[
{ id: "overview", label: "Overview" },
{ id: "usage", label: "Usage" },
]}>
<div data-tab="overview">Overview content.</div>
<div data-tab="usage">Usage content.</div>
</Tabs>