Sapphire

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-fill

About this component

A deep blue glass button that confirms by filling: pressing it runs a lighter liquid through the glass from left to right while it says Creating, then it shows a tick and Created before settling back.

Triggers

  • Click
  • State change
  • Fill

Techniques

  • Keyframes
  • State machine
  • stroke-dashoffset
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native <button>; the state text lives in an aria-live="polite" region so Creating and Created are announced.

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More buttons

See all
LiquidGet code
RippleGet code
SageGet code
SparkGet code