Tabs
A set of related panels where one section of content is visible at a time.
Tabs Demo
Installation
pnpm add @notion-kit/uiAnatomy
<Tabs defaultValue="overview">
<TabsList>
<TabsTrigger value="overview">Overview</TabsTrigger>
<TabsTrigger value="activity">Activity</TabsTrigger>
</TabsList>
<TabsContent value="overview">Overview content</TabsContent>
<TabsContent value="activity">Activity content</TabsContent>
</Tabs>Examples
Controlled
Use value and onValueChange when the selected tab is owned by parent state.
Tabs Demo
API Reference
Tabs
The root component that manages the selected tab. It accepts Base UI Tabs root props and the controlled value props below.
Prop
Type
TabsList
The container for tab triggers.
Prop
Type
TabsTrigger
A selectable tab. Its value must match a TabsContent value.
Prop
Type
TabsContent
The panel associated with a tab trigger.
Prop
Type