Dev Design Library

Switch 07 - Labeled Toggle

A reusable labeled switch with custom onLabel/offLabel props, a track that auto-sizes to the label text, and a spring-driven grip-textured thumb.

Switch 07 - Labeled Toggle preview
Library
Shadcn Space
Framework
React
Type
component
License
MIT
Dependencies
motion
Files
  • src/components/shadcn-space/switch/switch-07.tsx
  • src/lib/utils.ts
  • src/config.ts
Source
https://github.com/shadcnspace/shadcnspace

Categories

More from Shadcn Space