Tabs
Switch between related views with filled or underline tabs in either orientation.
Installation
npx shadcn@latest add @navui/tabsUsage
Match each tab and panel by value. Use a filled list for compact view switching or an underline list for section navigation. Add TabsIndicator inside the list to animate selection.
Examples
Project sections
Launch dashboard
The dashboard is ready for the product team’s release review.
Underline tabs
Production build deployed 20 minutes ago.
Inbox folders with icons
This example uses Lucide icons.
New message from the project team.
Vertical workspace settings
Northstar Studio
Your team’s shared workspace.
Disabled billing tab
Manage your name and contact details.
Billing is available to workspace owners.
Controlled review queue
Use NavUI Button to select a view from outside the tab list.
Five items are ready for review.
Interactive project settings
This example uses NavUI Field, Input, Switch, and Button.
Get an email when a new build goes live.
API reference
Foundation component built on UI SDK Tabs. See the UI SDK Tabs documentation for the complete inherited API.
| Prop | Type | Default | Description |
|---|---|---|---|
TabsList variant | "filled" | "underline" | "filled" | Sets the tab list’s visual treatment. An optional TabsIndicator follows the selected tab in either orientation. |
Accessibility
- Give the list an accessible name and mark decorative tab icons aria-hidden.