Priority

Priority
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-priority

About this component

A priority picker: three rows, each with a flag in its own colour. A tinted highlight glides to the row you pick and changes colour on the way, green to amber to red.

Triggers

  • Click
  • State change
  • Spring
  • Icon

Techniques

  • CSS variables
  • Transform only
  • CSS transition
  • SVG

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Priority"), each in a <label> whose visible text is its name (Low, Medium, High); the flags, marks and highlight are aria-hidden. :focus-visible outlines the row.

Reduced motion

The highlight jumps instead of gliding.

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

More radios

See all
Size
PuffyGet code
Ribbon
RibbonsGet code
Paper size
RisoGet code
Range
SegmentGet code