Components•Tabs
Components•Tabs
Tabs
A segmented content switcher for parallel views that share one footprint.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-tabsHow to use
import { BjorkTabs } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Tabs primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
valuestringStores the active tab and updates through onValueChange.
Track the surface, density, and interaction rules in one compact panel.
Panel tabs
Use when parallel sections should occupy the same visual position.
<BjorkTabs />