Tabs

A set of layered sections of content with neumorphic styling, built on top of Base UI.

Installation

$ npx shadcn@latest add "/r/tabs.json"

Usage

Make changes to your account here.

Examples

Sizes

The Tabs component is available in small, medium, and large sizes.

Props

ComponentPropTypeDefaultDescription
Tabssize"sm" | "md" | "lg""md"The size of the tabs.
TabsdefaultValuestring-The value of the tab that should be active by default.
Tabsvaluestring-The value of the active tab, for controlled components.
TabsonValueChange(value: string) => void-Callback fired when the active tab changes.
Tabsorientation"horizontal" | "vertical""horizontal"The orientation of the tabs.
TabsListclassNamestring-Additional CSS classes for the tabs list.
TabsTriggervaluestring-A unique value for the tab.
TabsTriggerdisabledbooleanfalseWhether the tab is disabled.
TabsContentvaluestring-A unique value for the panel.