Choice

Plan
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-choice

About this component

Choice chips, one at a time: three outlined pills, each with a small radio ring. The picked chip fills with its own colour and its ring closes into a solid white dot.

Triggers

  • Click
  • State change
  • Hover
  • Fill

Techniques

  • CSS variables
  • CSS transition
  • Gradient

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Plan"), each in a <label> whose visible text is its name; the rings are aria-hidden. :focus-visible outlines the whole chip.

Reduced motion

The transitions are switched off.

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

More radios

See all
Honey
CombGet code
Answer
ComicGet code
Crayon
CrayonsGet code
Seating
DecoGet code