Tabs

Navigation

macOS Segmented Control toolbar tabs with sliding active pill.

Installation

$npx shadcn-macos@latest add tabs

Examples

General system defaults and browser configurations.

Props

<Tabs />
PropTypeDefaultDescription
defaultValuestringInitial active tab identifier.
valuestringControlled active tab identifier.
onValueChange(value: string) => voidCallback fired when active tab changes.
childrenReact.ReactNodeTabsList and TabsContent elements.
<TabsTrigger />
PropTypeDefaultDescription
value*stringUnique identifier matching a TabsContent value.
disabledbooleanfalseWhether the tab button is disabled.