Ignite

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-ignite

About this component

A fire switch: off, the thumb is a cold coal glowing faintly in its cracks; switching on, it slides and ignites in a burst, flames licking up off it and the track running with fire; off, it is snuffed in a puff of smoke.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • Radial gradient
  • Keyframes
  • requestAnimationFrame
  • CSS transition

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native checkbox with role="switch" named "Boost"; focus outlines the track.

Reduced motion

It switches without effects.

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

More toggles

See all
AuraGet code
BeadGet code
CoilGet code
DelftGet code