Draft

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-draft

About this component

A checkbox still on the drawing board: white linework on blueprint paper, with corner marks and a dimension line. Ticking it draws the tick in with a pen, then hatching fills in behind it as if the part had been approved for build.

Triggers

  • Click
  • State change
  • Draw
  • Delay stagger

Techniques

  • SVG
  • stroke-dashoffset
  • CSS variables
  • Transition delay stagger

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, named by aria-label ("Approved for build"); everything drawn is aria-hidden, and :focus-visible on the input outlines the sheet.

Reduced motion

Every transition and animation is switched off, so it jumps straight to its final state.

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

More checkboxes

See all
Eight-bitGet code
EnamelGet code
FeltGet code
Flip-dotGet code