Marker
Markup where the component goes, CSS in your stylesheet. No JavaScript.
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-markerAbout 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