Tabs

Splits related content into panels, and shows one panel at a time.

components/ui/tabs.tsx
Account settings.

Installation

npx betterone-ds add tabs

Props

PropTypeDefault
defaultSelectedKeystring—
selectedKeystring—
TabsList variant"default" | "line""default"

Accessibility

  • Give the tab list an aria-label that describes what the tabs contain.
  • Each trigger needs an id that matches its panel.