Tabs

Sections of content shown one at a time.

Website redesign is 64% complete with 10 tasks remaining.

Installation

  1. Add the registryOnce per project
  2. Add tabs

Usage

Each TabsTrigger shows the TabsContent with the same value. Set defaultValue on Tabs, or control it with value and onValueChange.

Composition

Examples

Line

variant="line" underlines the active tab, for a page's main sections. When the tabs don't fit, the row scrolls and fades at its edges.

Sam Rivera moved “Update pricing page” to In progress.

Vertical

orientation="vertical" stacks the tabs beside their content.

Name, URL and default language.

Props

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

Tabs

TabsList

TabsTrigger

TabsContent