Skip to Content

Tabs

Tabs example: tabbed panels with a pill-shaped default list, or a line variant that marks the active tab with a bar. Works horizontally or as a vertical side list.

View as Markdown
pnpm dlx shadcn add @01orbital/tabs

Examples

Underline Tabstabs-underline

Tabs example: the line variant with the active bar as wide as the word, the triggers spaced by a gap instead of padding.

pnpm dlx shadcn add @01orbital/tabs-underline

Dependencies

npm: @base-ui/react, class-variance-authority, cn. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.

Used in blocks

9 blocks are built with Tabs: