Skip to content
GitHub

Tabs

A tabs for navigating between content.

Profile
Manage your profile information
View you shared information here, update you profile name, picture and email.

Installation

Usage

Controlled

Use value and onValueChange to control the active tab programmatically.

Manage your profile information and preferences.

Variant

Use the variant prop on <TabsList /> to change the selection indicator style.

Default

Content 1

Underline

Content 1

Orientation

Use the orientation prop on <Tabs /> to lay out tabs horizontally or vertically.

Horizontal

Content 1

Vertical

Content 1

State

Disabled

Disable individual tabs with the disabled prop on <TabsTrigger />. Disabled tabs are not focusable or selectable.

Profile content

Examples

Vertical with underline

Combine orientation="vertical" on <Tabs /> with variant="underline" on <TabsList />.

Content 1

With icons

Profile content

API Reference

Tabs

Root element. Manages tab state and layout.

TabsList

Container for tab triggers and the selection indicator.

TabsTrigger

Button that selects a tab. Must have a value matching a TabsContent panel.

TabsContent

Panel shown when its tab is selected. Must have a value matching a TabsTrigger.


For a complete list of props, see the Ark UI documentation.