Cleave
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldCleave(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-cleaveAbout this component
A volt command field with a copy key: current runs along its foot at rest and the key hums; copying cleaves the bar with a Z of lightning, sparks raining off the cut, and the two halves part and snap back as the key lights up with a tick.
Triggers
- Click
- Glow
- Icon swap
Techniques
- clip-path
- Conic gradient
- stroke-dashoffset
- requestAnimationFrame
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The command is a read-only input named "Install command"; the copy key is a native <button> named "Copy command" (then "Copied"), and a visually hidden status line announces "Copied to clipboard".
Reduced motion
The bolt and bursts are skipped.
Use it in anything you build, commercial and client work included. Licence