Smile

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-smile

About this component

A little face as the checkbox. Unchecked it is a dark, straight-faced circle; checked it lights up with a bounce, the flat mouth swaps for a drawn smile and the dot eyes curve into happy arcs.

Triggers

  • Click
  • State change
  • Morph
  • Draw
  • Spring

Techniques

  • SVG stroke
  • stroke-dashoffset
  • Spring
  • CSS transition

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, so "Happy with it" is its name. The face is aria-hidden.

Reduced motion

It swaps faces instantly.

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

More checkboxes

See all
Today0 of 4 done
Sorting ListGet code
SproutGet code
StitchGet code
Strike TaskGet code