Bencho Originals

Features

  • Hold the pill to record: it springs open into a live waveform with a blinking red dot and a timer.
  • Slide left while holding to cancel. The pill stays put and fades as you pull (the timer first), and past 90px the take is thrown away.
  • Release and the take becomes a clip: a play button, the whole recording squeezed into the waveform, and its length.
  • Play lights the bars left to right; drag across the waveform to seek.
  • × deletes the clip and brings back the record pill.
  • Nothing touches the microphone. The waveform is synthesised, so the demo works anywhere.

API reference

<VoiceNote /> from components/bencho/voice-note.tsx

PropTypeDefaultDescription
barsnumber (12–40)28Bars in the waveform. The recording pill widens to fit.
sensitivitynumber (0–100)60How tall bars get for the same level.
bouncenumber (0–100)40Overshoot of the pill as it opens and closes.
cornernumber28Corner radius in px. 28 is a full pill.
outlinedbooleanfalseAdds a hairline ring around the card, for busy backgrounds.
onSend(seconds: number) => void—Called with the take's length when recording ends.

Keyboard interactions

TabFocuses Hold to record.
Hold Space / EnterRecords while held; releasing finishes the clip.
EscapeCancels a recording in progress.
← / →On the waveform, seek by 10%.
Home / EndOn the waveform, jump to the start or end.

Accessibility

  • Hold to record is a real button; while recording, a role="status" region announces the time and how to finish or cancel.
  • The waveform is a slider with aria-valuetext like “0:01 of 0:03”.
  • Play/Pause and Delete are labelled buttons.

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.