Dev Design Library

Toggle

A small action with a lasting state: a toolbar tool, a paper bookmark or a descriptive preference. Native targets stay put while the painted surface responds.

Toggle preview
Library
Cojeev UI
Framework
React
Type
ui
License
MIT
Dependencies
@radix-ui/react-toggle, class-variance-authority
Install
npx shadcn@latest add https://cojeev.com/ui/r/toggle.json
Files
  • registry/cojeev/ui/toggle.tsx
  • registry/cojeev/styles/toggle.css
  • registry/cojeev/styles/control-appearance.css
  • registry/cojeev/lib/utils.ts
  • registry/cojeev/lib/appearance-tokens.ts
  • registry/cojeev/lib/assembly-geometry.ts
  • registry/cojeev/lib/bento-layout.ts
  • registry/cojeev/lib/bloom-engine.ts
Source
https://github.com/luv-jeri/cojeev-ui

Categories

More from Cojeev UI