Knitted

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-knit

About 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 all

5 of 10 · Enter pulls the squeegee

SilkscreenGet code

5 of 18 · no undo: Backspace shakes it clean

Sketch toyGet code

5 of 10 panes

Stained glassGet code

5 tiles · 10 points

Letter tilesGet code