Navigation
Tabs
stableSwitch between related panels. Line, segmented and enclosed styles.
since v1.02.6 kB gzip
Preview
Last deploy 4 minutes ago from main@8f2c1a.
Installation
npx @strata/cli add tabsUsage
import { Tabs, TabList, Tab, TabPanel } from "@/components/strata";
<Tabs variant="segmented">
<TabList>
<Tab id="code">Code</Tab>
<Tab id="preview">Preview</Tab>
</TabList>
<TabPanel id="code">…</TabPanel>
</Tabs>Props
| Prop | Type | Default |
|---|---|---|
variantTab list style. | "line" | "segmented" | "enclosed" | "line" |
orientationLayout direction. | "horizontal" | "vertical" | "horizontal" |
selectedKeyControlled active tab. | Key | — |
Accessibility
Related
Was this page helpful?
Documented since v1.0 · components/tabs.mdx