Tabs
v0.23.0Sections of one page.
Tabs default
Install
npx shadcn add @syncrobotic/tabs Also installs: radix-ui, @syncrobotic/cn
Overview
When to use
- A robot's Overview, Sensors and Logs.
Use something else
- Two to four views of the same data: Segmented control.
- Sections the user may want open together: Accordion.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Tabs with icons and counts
Usage rules
- Switch between views of the same thing, all at the same level. Not for steps (Stepper) or for moving between pages.
- Keep the labels short and the order stable.
Changelog
- 0.23.02026-11-20The tab list no longer scrolls 1 px vertically (overflow-y hidden), so phones no longer show a scrollbar on it.
- 0.17.12026-11-19The panel shows the focus ring when it takes keyboard focus (it removed it).
- 0.15.02026-11-19The underline travels to the tab you pick (Move pattern, --motion-base).