Memphis

Spice level
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-memphis

About this component

A two by two radio grid in eighties Memphis style: four tiles, each with its own pattern in the corner. The tile you pick floods with its colour, throws a hard shadow and its pattern starts to slide.

Triggers

  • Click
  • State change
  • Loop
  • Keyframe

Techniques

  • Keyframes
  • CSS variables
  • Gradient
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Spice level"), each inside a <label> and named by its visible text; the pattern and ring are aria-hidden. The focused tile is outlined.

Reduced motion

The pattern stops sliding and the transitions are switched off.

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

More radios

See all
Destination
MetroGet code
Drive mode
OutrunGet code
Paint
PansGet code
Pick gauge
PicksGet code