Magnify
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initRadioMagnify(el) on the mounted element instead.
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/radio-magnifyAbout this component
A size picker, S to XL, under a glass loupe: the loupe glides to the size you pick and magnifies it, so the chosen letter reads larger and sharper through the glass than the rest of the row.
Triggers
- Click
- State change
Techniques
- CSS transition
- CSS variables
- Radial gradient
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Size"), each in a <label>; arrow keys move between them as usual and :focus-visible outlines the option.
Reduced motion
The transitions and loops stop and the component jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence