Tabs

Switch between related views with filled or underline tabs in either orientation.

Installation

npx shadcn@latest add @navui/tabs

Usage

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.

API reference

Foundation component built on UI SDK Tabs. See the UI SDK Tabs documentation for the complete inherited API.

Component parts properties
PropTypeDefaultDescription
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.