Tabs
Keyboard-navigable tabs that switch between related panels of content on the same page.
Paste this into your agent.
Tabs split one view into a few peer panels, such as Overview, Activity and Settings, that people view one at a time. Each tab swaps content in place on the same page. Variants cover boxed, pill and underline styles.
Install
bashnpx shadcn@4.18.0 add @siteplane/tabs
Import it from @/siteplane/components/tabs. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Toggle Group instead when the choice changes a setting or filter of one view.
- vs : Pick Navigation Menu or plain links instead when each choice is a separate page with its own URL.
- vs : Pick Accordion instead when sections stack vertically and people may open several at once.
Rules
- Give every TabsTab a value that matches its TabsPanel, and keep that value in your state when the selection is controlled.
- Set keepMounted on TabsPanel when a hidden panel holds state that must survive switching, or lift that state out.
- Set orientation on Tabs for a vertical list so arrow-key direction matches the layout.
- Choose the look with variant on TabsList, and add divider on an underline list to draw the shared baseline.
- Keep icons decorative and the label as the tab's accessible name.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Siteplane Commandby UI Skillbook
A searchable, keyboard-driven list of actions, shown inline in a panel or as a command palette in a dialog.
Siteplane UI
Accessible Focus Statesby UI Skillbook
Keep a visible, high-contrast focus indicator on every interactive element, without a generic browser outline or none at all.
Accessibility
Better Accessibilityby jakubkrehel
Review and improve focus states, keyboard support, ARIA, forms, screen readers, hit areas, and motion accessibility.
AccessibilityExternalGitHub stars: 9.2K
Build Primitiveby PrototyperAI
Build foundational UI primitives from scratch with strong ARIA, keyboard, focus, and state handling.
AccessibilityExternalGitHub stars: 7