Bencho Originals

Features

  • The active step is a 36px bar among 8px dots and fills white over each step's time.
  • When it's full, the width eases across to the next dot (520ms) and the fill restarts.
  • Playback wraps from the last step to the first.
  • With wake on, dots passed over by a jump give a small vertical hop, rippling out from where the bar left.
  • Click any dot to jump straight to it.

API reference

<StepPlayer /> from components/bencho/step-player.tsx

PropTypeDefaultDescription
stepsnumber (3–8)5Number of steps.
pacenumber3Seconds each step plays for.
wakebooleantrueDots hop as the bar jumps past them.
outlinedbooleanfalseAdds a hairline ring around the card, for busy backgrounds.
onStep(index: number) => void—Called whenever the step changes.

Keyboard interactions

TabFocuses the track, then Play.
← / → ↑ / ↓On the track, previous or next step.
Home / EndFirst or last step.
Enter / SpaceOn Play, plays or pauses.

Accessibility

  • The track is a role="slider" with aria-valuetext like “Step 2 of 5”.
  • Play is a toggle button with aria-pressed and a Play/Pause label.
  • Dots are labelled buttons for pointer users but sit outside the tab order, so the slider is a single stop.

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.