Cleave

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-cleave

About 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

More inputs

See all
ComboGet code
CellsGet code
HaloGet code
PromptGet code