5 of 10 · Enter pulls the squeegee
Knitted
5 of 12 · 175 stitches
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldKnit(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-knitAbout this component
A name knitted into a swatch on two needles: each letter is knitted in row by row in contrast yarn, the needles click and the ball of yarn turns and shrinks, and Backspace unpicks the last letter.
- Dependencies
- None
- Difficulty
- Advanced
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Delay stagger
- Focus
Techniques4
- Gradient
- Keyframes
- Transition delay stagger
- CSS variables
Accessibility
Keyboard and screen readers
One native input named "Name to knit"; the swatch is aria-hidden and the letter and stitch counts, or the reason for a refusal, are announced.
Reduced motion
Stitches change at once.
Use it in anything you build, commercial and client work included. Licence
More inputs
See all5 of 18 · no undo: Backspace shakes it clean
5 of 10 panes
5 tiles · 10 points