Marker

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-marker

About this component

A hand-drawn field with a floating label: a wobbly pen box on paper with the label written inside beside a blinking pen-stroke cursor. On focus the label lifts out above the box and shrinks, and a blue marker line redraws the whole border in one pass.

Triggers

  • Focus
  • Draw
  • Border
  • Spring

Techniques

  • SVG
  • SVG stroke
  • stroke-dashoffset
  • CSS transition
  • Keyframes

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native text input wrapped in a <label>, so the visible words "Full name" are its accessible name and a click anywhere on the box focuses it. The SVG and the cursor mark are aria-hidden. Focus is shown by the redrawn blue border and the lifted label.

Reduced motion

Every transition and animation is switched off, so the states change at once.

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

More inputs

See all
MemoGet code
MemphisGet code
MeshGet code
OutrunGet code