
N° 0973 · toggle
Segmented Control is a toggle switch animation. It responds to click and indicator. Palettes: Paper, Mint on ink, Moss, Blush and Orchid.
Thumb `translateX(calc(index × 100%))` chosen by `:has(label:nth-child(n) input:checked)`, 0.3 s `cubic-bezier(.2,.8,.2,1)`; on change the script adds `.squash` for 0.3 s which runs `scaleX(1.08) → 1` so the thumb lands with a little give. Labels transition colour 0.2 s; the selected one is bold.
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° 0796 · toggle

N° 0799 · toggle

N° 0408 · toggle

N° 0800 · toggle

N° 0410 · toggle

N° 0837 · text

N° 0835 · button

N° 0834 · button

N° 0815 · overlay

N° 0812 · input

N° 0819 · nav