Option
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-optionAbout this component
Option tiles: two cards you can pick either or both of. A picked tile takes a tint and an outline of its own colour, its icon lights up and a round tick badge pops onto its corner.
Triggers
- Click
- State change
- Spring
- Icon
Techniques
- CSS variables
- SVG
- CSS transition
Difficulty
Beginner
Accessibility
Keyboard and screen readers
A <fieldset> with a visually hidden <legend> ("Notify me by"); each tile is a <label> round a native checkbox, named by its visible text ("Email", "Text"). The icon and tick badge are aria-hidden, and :has(:focus-visible) outlines the tile.
Reduced motion
Every transition and animation is switched off, so it jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence