Notify

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-notify

About this component

A wide glass switch with its label inside: off it is clear glass with the bead on the left; switching on floods the glass blue, sets a glow behind it and slides the bead right as the word Notifications moves over and turns white.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • CSS transition
  • Radial gradient
  • CSS variables

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native checkbox with role="switch" inside a <label>, named by its visible label (Notifications); :focus-visible outlines the glass.

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More toggles

See all
PeachGet code
PlanktonGet code
StandbyGet code
TideGet code