Select
UI SDK Select: trigger, popup list, items with a check indicator, groups and separators, or `options` as data with a clearable none choice. Works inside Field; agents choose by label.
Example
select-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
SelectLabel
SelectTrigger
| Prop | Type | Default |
|---|---|---|
size | "default" | "sm" | "default" |
Also takes every prop of UI SDK SelectTrigger.
SelectValue
SelectContent
SelectItem
SelectItemIndicator
SelectGroupLabel
SelectSeparator
Select
Takes SelectProps<T, Multiple>.
Other exports
CheckIconChevronIconSelectGroupSelectListcreateSelectControllerlistGroupLabelClassNamelistIndicatorClassNamelistItemClassNamelistPopupClassNamelistSeparatorClassNameselectTriggerVariantstype ListDatatype SelectControllertype SelectItemStatetype SelectOptiontype SelectOptionGrouptype SelectOptionstype SelectPropstype SelectSizetype SelectTriggerPropsAccessibility
- A listbox popup with typeahead, arrow keys and Home/End; the trigger shows the selected label.
- Outside a Field, name it with aria-label.
Agent actions
Agents choose by value or by label; options are known before the list opens.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.