Pans

Paint
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-pans

About this component

A watercolour tin: four dry pans of paint under a white enamel mixing well. The pan you pick goes wet and glossy, and a wash of its colour spreads across the well above.

Triggers

  • Click
  • State change
  • Fill

Techniques

  • CSS variables
  • Radial gradient
  • CSS transition
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Paint"), each in a <label> and named by aria-label (Vermilion, Ochre, Viridian, Ultramarine); the well and the cakes are aria-hidden. :focus-visible outlines the picked cake.

Reduced motion

The transitions are switched off.

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

More radios

See all
Pick gauge
PicksGet code
Station preset
PresetGet code
Priority
PriorityGet code
Size
PuffyGet code