Select component with grouped options and labels
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: Fruits and vegetables in 2 labeled groups of 3 split by a rule, the prompt kept out of the open list
When to use
- Form fields that pick one value from a short fixed list, such as a fruit, timezone, country or size
- Pickers whose options carry a status dot, badge, avatar, flag, icon or one line description
- Toolbar filters and property pickers, such as status, priority, access level or assignee
When not to use
- Grouped choices the user would rather search by typing: use the Combobox component
- A plain form field that should open the phone or browser's own picker: use the Native Select component
- Options nested in levels, such as a category and then its subcategories: use the Cascader component
Agent notes
- On the base twin the trigger reads labels from
allItems, so a third option group must be spread into it besidefruitsandvegetables - Pass
alignItemWithTriggerfalse on the base twin orpositionpopper on radix to open the list below the trigger, not over it - With no children, base
SelectValueprints a string value raw unlessSelectgetsitems; radixSelectValuemirrors the chosenSelectItem - Base
SelectItemcan take a whole object asvalue, matched todefaultValueby reference; radix values must be non-empty strings
https://reui.io/components/select/c-select-3.mdget_example("c-select-3")npx shadcn@latest add @reui/c-select-3About Shadcn Select Grouped Labels
Select component with grouped options and labels. Built by composing Field, Select. A free, open source shadcn select example you can install with npx shadcn@latest add @reui/c-select-3 and edit as your own code.
What You Can Build With Shadcn Select Grouped Labels
- Composes Field, Select, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-select-3
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Select Examples
- Basic A basic select component with a list of options
- Icons Select with icons and placeholder state
- Large List Select component with a large list of options
- Small Trigger Select component with small trigger size
- Plan Picker Select component with a subscription plan style
- Disabled Item Select component with item alignment disabled
- Field With Label Select component within a Field with label and description
- Invalid Select component in an invalid state
- Disabled Select component in a disabled state
- In Dialog Select component inside a Dialog
- Multiple Selection Select component with multiple selection
- Inline With Input Select component inline with Input
Related Shadcn Component Categories
Open-source shadcn separator components for content grouping, toolbar dividers, and section breaks.
Open-source shadcn sheet components for slide-over details, side panels, and task flows.
Open-source shadcn sidebar components for app shells, collapsible side navigation, and dashboard layouts.
Open-source shadcn signature pad components for e-signature forms, agreements, and proof of delivery.
Open-source shadcn skeleton components for loading placeholders, perceived performance, and content previews.
Open-source shadcn slider components for range filters, pricing controls, and media settings.
Frequently Asked Questions
When should I use Shadcn Select Grouped Labels?
Use it for fruits and vegetables in 2 labeled groups of 3 split by a rule, the prompt kept out of the open list.
Shadcn Select as a whole fits:
- Form fields that pick one value from a short fixed list, such as a fruit, timezone, country or size
- Pickers whose options carry a status dot, badge, avatar, flag, icon or one line description
- Toolbar filters and property pickers, such as status, priority, access level or assignee
For grouped choices the user would rather search by typing, use the Combobox component. For a plain form field that should open the phone or browser's own picker, use the Native Select component. For options nested in levels, such as a category and then its subcategories, use the Cascader component.
How do I install Shadcn Select Grouped Labels?
Is Shadcn Select Grouped Labels free to use?
Which components does Shadcn Select Grouped Labels use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.