Switch

@interlace/ui — switch primitive (shadcn-compatible).

ui
Visual examples + interactive variants
View Switch on Storybook
All states, themes, a11y assertions — rendered live.

Install

Via shadcn URL
npx shadcn@latest add https://ds.interlace.tools/r/switch.json
Or, with this registry aliased as @interlace
npx shadcn@latest add @interlace/switch

Details

Target path
components/ui/switch.tsx
JSON endpoint
/r/switch.json
NPM dependencies
  • @base-ui/react
Registry dependencies