shadcn.io is not affiliated with official shadcn/ui
Combobox examples · Grouped
Groups with Item Counts Combobox for React
A combobox whose group headings show how many roles each group holds.
A role picker in three groups, Development, Design and Management, with the number of roles at the end of each heading. Use it when the size of each group helps people decide where to look, as in team or category pickers.
Preview
Installation
FAQ
How is the count placed in the heading?
The group label is flex items-center justify-between, with the group name in one span and the count in another, text-muted-foreground text-xs.
Where does the number come from?
From the length of the group's items. The list passes each group with the items left after the search, so the count drops as you type.
Which roles are listed?
Development: Frontend, Backend and Fullstack Developer. Design: UI and UX Designer. Management: Product, Project and Engineering Manager.
Related
- Multiple Groups with Labels ComboboxA combobox with Frontend and Backend
- Nested/Hierarchical Groups ComboboxA combobox that lists countries under
- Recent Selections Section ComboboxA combobox with a Recent section of files
- Sidebar with Counts CollapsibleAn Inbox sidebar item with a count badge
- Categories with Separators ComboboxA combobox whose pages are split into
- Simple Single Select ComboboxA single-select combobox that opens from