Sketch toy

5 of 18 · no undo: Backspace shakes it clean

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-sketch

About this component

A word drawn on a two-knob sketch toy: every letter is one unbroken line scraped through the silver powder, the knobs turn as it draws, and Backspace or Enter shakes the screen clean, because that is the only undo it has.

Dependencies
None
Difficulty
Advanced
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • State change
  • Draw
  • Focus

Techniques4

  • SVG
  • stroke-dashoffset
  • Keyframes
  • State machine

Accessibility

Keyboard and screen readers

One native input named "Word on the sketch toy", transparent over the frame; the drawing is aria-hidden and the count, or the reason for a refusal, is announced.

Reduced motion

The line appears at once and nothing shakes.

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

More inputs

See all

5 of 10 panes

Stained glassGet code

5 tiles · 10 points

Letter tilesGet code

Scans as a valid code

BarcodeGet code

2026 is cut as MMXXVI

CornerstoneGet code