Magnify

Size
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-magnify

About 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

More radios

See all
Input mode
OrbsGet code
Delivery
RaiseGet code
Plan
TierGet code
Accent colour
TintGet code