Dialog

Colour palette
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-dialog

About this component

Radio buttons from a nineties desktop: a grey dialog with a blue title bar, round sunken wells with hard bevels, and a black dot that appears at once, no easing. The dotted focus rectangle follows the pick.

Triggers

  • Click
  • State change
  • Border

Techniques

  • Pseudo elements
  • Gradient
  • border-radius

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Colour palette"), each in a <label> whose visible text is its name; the title bar, wells and colour chips are aria-hidden. The dotted rectangle marks the picked option. There is no motion to reduce.

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

More radios

See all
Visibility
Dog-earGet code
Typeface
E-inkGet code
Plan
ExtrudeGet code
Quality
GelGet code