Peach

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-peach

About this component

A small pastel glass capsule with a jelly bead: off it is clear glass with a lilac bead; on, the capsule fills with a warm peach light and the bead squashes as it slides over and turns pink.

Triggers

  • Click
  • State change
  • Spring

Techniques

  • Keyframes
  • CSS transition
  • Radial gradient

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native checkbox with role="switch" inside a <label>, named by aria-label ("Warm tone").

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More toggles

See all
PlanktonGet code
StandbyGet code
TideGet code
TileGet code