Ink

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-ink

About this component

A navy button with peach type and a peach offset edge. Each press sends a ring of peach ink spreading out from exactly where you pressed, and hover slides the offset edge out further.

Triggers

  • Click
  • Hover
  • Mouse tracking
  • Keyframe

Techniques

  • Event position
  • CSS variables
  • Keyframes
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native button named by its label; the ink drops and the arrow are aria-hidden.

Reduced motion

The drops are not shown and the edge moves instantly.

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

More buttons

See all
IridescentGet code
IsoGet code
KeycapGet code
LeanGet code