Reply

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-reply

About this component

A cobalt enamel pill in a gold rim. Pressing it rolls "Send reply" up and "Reply sent" in from below while the glaze turns emerald, then it rolls back after a moment.

Triggers

  • Click
  • State change
  • Icon swap
  • Ambient

Techniques

  • Transform only
  • CSS transition
  • Pseudo elements
  • Keyframes

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native button; the label window is aria-live=polite and the line that is not showing is aria-hidden, so the change to "Reply sent" is announced.

Reduced motion

The roll and the colour change are instant.

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

More buttons

See all
SettleGet code
ShearGet code
SpringGet code
SproutGet code