Chalk

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-chalk

About this component

An answer field on a green board, its box drawn in rough white chalk with a chalk tick waiting at the start. Focus redraws the box in yellow chalk while a puff of dust settles under it.

Triggers

  • Focus
  • Draw
  • Border
  • Keyframe

Techniques

  • SVG filter
  • SVG stroke
  • stroke-dashoffset
  • Keyframes

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native text input inside a <label>, named by aria-label ("Your answer"); the board, chalk lines and drawn cursor are aria-hidden.

Reduced motion

Every transition and animation is switched off.

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

More inputs

See all
CheckpointGet code
ClayGet code
DecoGet code
DelftGet code