Bencho Originals
  • Lena OrtizDesign
  • Sam OkaforResearch
  • Ivy ChenEngineering
  • Theo GrantProduct

Features

  • Tick people in the list and their faces slide into the pill, overlapping in list order.
  • The pill eases its width over 300ms as faces come and go; each face springs and un-blurs in.
  • A soft highlight slides between rows as you hover or arrow through them.
  • The chevron opens and closes the list.
  • Stack: grid packs the faces into a 2×2 of smaller avatars instead of a row.

API reference

<Assignees /> from components/bencho/assignees.tsx

PropTypeDefaultDescription
people{ id, name, role, face }[]four sample peopleRows in the list. face is any CSS background.
defaultSelectedstring[]["lena", "sam"]Ids ticked at the start.
stack"row" | "grid""row"How faces sit in the pill.
defaultOpenbooleantrueStart with the list open.
outlinedbooleanfalseAdds a hairline ring around the card, for busy backgrounds.
onChange(ids: string[]) => void—Called with the new selection.

Keyboard interactions

TabFocuses the pill, then the list.
Enter / SpaceOn the pill, opens or closes the list. In the list, ticks the highlighted person.
↑ / ↓Moves the highlight.
Home / EndFirst or last person.
EscapeCloses the list.

Accessibility

  • The list is a role="listbox" with aria-multiselectable and aria-activedescendant; rows are options with aria-selected.
  • The pill is a button with aria-expanded and a label naming who's assigned.
  • Faces and check marks are 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.