Smile
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/checkbox-smileAbout 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