Select
A trigger that opens a fixed list of options for one or several choices, without typing to filter.
Paste this into your agent.
Select picks from a known, moderate list such as a region, role or team, where search adds nothing. It supports groups, icons, multiple selection and a ghost trigger for values inside rows.
Install
bashnpx shadcn@4.18.0 add @siteplane/select
Import it from @/siteplane/components/select. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Combobox when the list is long enough that people need to type to find an option.
- vs : Pick Autocomplete when the answer can be any text and the options are suggestions.
- vs : Pick Radio Group for a few options people should see side by side.
- vs : Pick Menu when the list holds actions instead of a value.
Rules
- Pass
itemsto Select so the trigger shows a stored ID's label before the popup opens. - Set
sizeandvariantonSelectTrigger, not on the root. - Use
SelectGroup,SelectGroupLabelandSelectSeparatorfor sections, andSelectLabelor FieldLabel to name the control. - Use
itemToStringValuefor object items so the form submits the right string. - Set
nameandrequiredand place it in a Field. Form then blocks an empty submit and FieldError explains why. - Don't use the placeholder as the label.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Form Field Validation Timingby UI Skillbook
Validate at the right moment — not on every keystroke, not only on submit.
Forms
Siteplane Attachmentby UI Skillbook
A card for a file or image attached to a message or draft, with upload states and actions.
Siteplane UI
Siteplane Autocompleteby UI Skillbook
A text input that suggests completions while still accepting whatever the person types.
Siteplane UI
Siteplane Calendarby UI Skillbook
An inline month grid for picking a single date, several dates or a range, with unavailable-day rules.
Siteplane UI