Switch
Switch renders a token-styled boolean preference control.
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/switch-card-grid.json.
Usage
Playground
Examples
Card grid with descriptions
Colours and destructive settings
Labels and states
Settings panel
API
8 props
Accessibility
Switch exposes role switch, aria-checked, disabled state, and a visible label when provided.
Related
FieldField composes form label, description, error, and input building blocks.7 examplesTooltipBrief contextual help attached to an independently labelled control.4 examplesCardCard frames reusable content with title, subtitle, and optional children.8 examplesPillPill renders compact category and status labels.4 examplesSeparatorSeparate related content with a horizontal or vertical rule.3 examples