Power

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-power

About this component

A standalone 56px circular power button with no track. Off: dark neumorphic inset. On: radial white gradient with a multi-layer glow. Every click spins the power icon 360° and fires an outward ripple ring.

Triggers

  • Click
  • State change
  • Glow
  • Keyframe

Techniques

  • Keyframe animation
  • Gradient

Difficulty

Intermediate

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 + aria-label="Power".

Reduced motion

Spin and ripple animations skipped under prefers-reduced-motion.

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

More toggles

See all
SquishGet code