Microwave

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-microwave

About this component

A microwave front: the +5 s key adds five seconds to the display and starts it, the lamp comes on, the mug rides the turntable round while the seconds count down in real time, and at zero the display blinks DONE.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers2

  • Click
  • State change

Techniques3

  • State machine
  • Keyframes
  • Radial gradient

Accessibility

Keyboard and screen readers

A native button named "Add five seconds and start"; the display is aria-hidden and a visually hidden aria-live line says Cooking with the seconds, then Done.

Reduced motion

The mug sits still while the lamp is on.

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

More buttons

See all
MousetrapGet code
NutcrackerGet code
Pedal binGet code
PlaneGet code