5 of 10 panes
Sketch toy
5 of 18 · no undo: Backspace shakes it clean
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldSketch(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/input-sketchAbout 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 all5 tiles · 10 points
2026 is cut as MMXXVI