Tabs

Installation

$npx shadcn-macos@latest add tabs

Examples

General system defaults and browser configurations.

Props

<Tabs />
PropTypeDefaultDescription
defaultValuestring—Initial active tab identifier.
valuestring—Controlled active tab identifier.
onValueChange(value: string) => void—Callback fired when active tab changes.
childrenReact.ReactNode—TabsList and TabsContent elements.
<TabsTrigger />
PropTypeDefaultDescription
value*string—Unique identifier matching a TabsContent value.
disabledbooleanfalseWhether the tab button is disabled.