Snooze

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-snooze

About this component

A twin-bell alarm clock ringing its head off: the hammer rattles between the bells, the bells shiver and the clock hops. The snooze bar on its crown is the button: press it and everything stops, the minute hand sweeps on nine minutes, and a few seconds later it rings again.

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

Triggers2

  • Click
  • State change

Techniques4

  • Keyframes
  • CSS transition
  • Radial gradient
  • State machine

Accessibility

Keyboard and screen readers

A native button whose label says whether the alarm is ringing or snoozed and at what time; the clock is aria-hidden.

Reduced motion

Nothing rattles and the hands jump.

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

More buttons

See all
SnowcapGet code
Soap pumpGet code
StaplerGet code
TrampolineGet code