Checkbox

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-checkbox

About this component

A square checkbox that fills with mid-gray on check. The SVG checkmark springs in with an overshoot scale: a completely different shape from pill-style toggles. No dependencies.

Triggers

  • Click
  • State change

Techniques

  • Transform only

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

role="checkbox" and aria-checked wired.

Reduced motion

Spring scale removed under prefers-reduced-motion.

Use it in anything you build, commercial and client work included. Licence

More toggles

See all
FlipGet code
Gradient TrackGet code