Combobox
People Picker
A person picker: an initials avatar, a second line with the email and the role, and a search that runs over both lines at once.
What you can change
- the list content through people and the initial choice through defaultValue
- the field caption through label and the empty text through placeholder
- the empty-result text through emptyLabel
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/combobox-004?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own --vibeui-combobox-004-* palette. Client component: useState holds the query, the selected name and the cursor, and useMemo filters the people over the concatenation of the name and the second line. The avatar hue is computed from the name with an FNV-1a hash and arrives in an inline style as a single --vibeui-combobox-004-hue variable, from which oklch assembles the background and the text colour — that keeps the palette manageable instead of turning it into a set of hard-coded colours. The row is laid out with flex: a fixed-width avatar, two-storey text with overflow:hidden, and the check mark of the selected row pushed over by margin-left:auto. The ARIA roles are complete: role="combobox" with aria-controls and aria-activedescendant on the field, role="listbox" and role="option" with aria-selected on the list.
Tags
- combobox
- people
- avatar
- search
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…