Stitch

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-stitch

About this component

The box is a patch of fabric and the tick is sewn in: a needle runs along the tick leaving dashed stitches behind it one by one, then slips away. Unchecking pulls the thread out. Pure CSS.

Triggers

  • Click
  • State change
  • Draw
  • Delay stagger
  • Keyframe

Techniques

  • Keyframes
  • Transition delay stagger
  • CSS variables
  • SVG
  • Gradient

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, so "Sewn in" is its name. The patch is aria-hidden.

Reduced motion

The stitches appear at once and the needle never shows.

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

More checkboxes

See all
Strike TaskGet code
BounceGet code
ChargingGet code