Bencho Originals

Features

  • Stroke width follows pen speed: slow curves swell, fast flicks go hairline.
  • Each stroke ends in a short taper, like a real nib lifting off.
  • Clear rewinds the ink, newest stroke first, each one retracting tail to head.
  • After a short pause the ink goes grey, and the card then springs into a ✓ Signed pill.
  • Tap the pill to reopen an empty pad.
  • Works with mouse, pen and touch through pointer events, and the pad stops touch scrolling while you draw.

API reference

<SignaturePad /> from components/bencho/signature-pad.tsx

PropTypeDefaultDescription
ink"auto" | "blue""auto"Ink colour. auto follows the theme foreground, blue is a ballpoint blue.
smoothingnumber (0–100)50How much the pointer path is steadied before it's inked.
pennumber (0–100)50Nib size. Sets the widest stroke, and the thinnest follows from it.
commitDelaynumber (ms)380How long the pen has to rest before the ink settles and the pad folds. 0 turns auto-commit off.
onSigned() => void—Called once the pad has folded into the Signed pill.

Keyboard interactions

TabMoves focus to Clear while there's ink on the pad.
Enter / SpaceOn Clear, rewinds the signature. On the Signed pill, reopens an empty pad.

Accessibility

  • The drawing surface is an SVG with role="img", labelled “Signature” or “Empty signature pad”.
  • A polite live region says “Signed” when the pad commits.
  • Once folded, the pill is a focusable role="button" with the label “Signed — tap to sign again”.
  • Drawing itself needs a pointer. If keyboard-only users have to sign, offer a typed-name fallback next to it.

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.