
N° 0973 · toggle
Draggable Switch is a toggle switch animation. It responds to drag, click and keyboard. Palettes: Faceplate, Warm bench, Rack, Oxide and Studio blue.
A registered number --sw-p (0 off, 1 on) drives both the knob's translate and color-mix for the track, so they cannot disagree. While dragging, pointer delta over travel writes --sw-p with no transition. On release it commits by which side of 0.5 it is on, and a transition with cubic-bezier(.3,1.5,.5,1) lands it with a small overshoot.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.

N° 0973 · toggle

N° 0801 · toggle

N° 0798 · toggle

N° 0800 · toggle

N° 0797 · toggle

N° 0799 · toggle

N° 0408 · toggle

N° 0410 · toggle

N° 0956 · input

N° 0831 · card

N° 0806 · cursor

N° 0995 · commerce

N° 0985 · badges

N° 0966 · button

N° 0778 · commerce

N° 0776 · commerce