List Box
An always-visible list where one row is selected, with rich multiline rows and typeahead.
Paste this into your agent.
List Box holds a single choice from a short to medium list that stays on screen, such as a workspace or template with descriptions. It fits side panels and pickers inside dialogs.
Install
bashnpx shadcn@4.18.0 add @siteplane/list-box
Import it from @/siteplane/components/list-box. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Select when the options should hide in a popup until needed.
- vs : Pick Radio Group for a plain form question that must submit natively.
- vs : Pick Combobox when the list needs text search.
- vs : Pick Menu when the rows trigger actions and hold no selection.
Rules
- Give each
ListBoxItema stable stringvalueand control selection withvalueandonValueChange. - Name the list with a visible
FieldLabelreferenced byaria-labelledby, or anaria-label. - Set
textValueon rich items so typeahead matches the title only. - Serialize the selection yourself. List Box submits no native form value and has no multiple mode.
- Use
selectionAppearance="row"when the check mark adds noise to rich rows.
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