Delivery

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-delivery

About this component

Shipping options with a little delivery truck on a one-week road above them. Choosing an option drives the truck to the day it would arrive (Tomorrow, 2 days, 5–7 days): its wheels spin and its body bobs while it drives, and it turns round when it has to go back.

Triggers

  • Click
  • State change
  • Icon

Techniques

  • CSS variables
  • Keyframes
  • State machine

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Real native radios (visually hidden: absolute, 1x1, opacity 0) inside <label>s in a role="radiogroup" with an aria-label, so arrow keys, focus and screen readers work.

Reduced motion

The changes are instant.

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

More radios

See all
DialGet code
DieGet code
DrumGet code
FanGet code