Glow

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-glow

About this component

Toggle that emits a soft halo glow from the track when active. Box-shadow transitions in on activation, fades out on deactivation.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • Transform only
  • Filter

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

role="switch" + aria-checked.

Reduced motion

Glow removed under prefers-reduced-motion.

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

More toggles

See all
Gradient TrackGet code
LiquidGet code