Ignite
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initToggleIgnite(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/toggle-igniteAbout 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