Tabs
Switch between related panels with keyboard-accessible tab controls.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/tabs-badge-counts.json.
Usage
Examples
Badge counts
Period switch
Settings form tabs
API
9 props
Accessibility
Radix associates tabs and panels. Label the tab list; use manual activation when loading panels is expensive.
Related
SwitchSwitch renders a token-styled boolean preference control.4 examplesCardCard frames reusable content with title, subtitle, and optional children.8 examplesFieldField composes form label, description, error, and input building blocks.7 examplesPillPill renders compact category and status labels.4 examplesInputText, search, numeric and date inputs with prefix and suffix slots.11 examples