Bencho Originals

Features

  • The heart ducks to nothing, then pops back filled red with a small overshoot.
  • An orchid disc swells behind it and hollows into a thin ring.
  • Eight confetti dots burst out on a slight swirl and fade.
  • The count rolls only the digits that change: up on like, down on unlike.
  • Unliking is quiet: no burst, just the outline heart and the count rolling back.

API reference

<LikeButton /> from components/bencho/like-button.tsx

PropTypeDefaultDescription
defaultCountnumber1300Like count before the viewer's own like.
defaultLikedbooleanfalseStart liked. The count already includes that like.

Keyboard interactions

TabFocuses the button.
Enter / SpaceToggles the like.

Accessibility

  • It's a toggle <button> with aria-pressed.
  • The accessible label includes the live count, for example “Like. 1,301 likes”.
  • The burst, ring and digits are aria-hidden decoration.

Sound & haptics

Silent by design: no audio and no vibration. All of the feedback is visual, so it works anywhere, muted or not.

Files

Written from scratch for sher.md and inspired by bencho.dev. It contains none of bencho's code or assets.