Native Select
A styled native <select> for mobile-heavy forms, with the same options shape as Select, a placeholder and a clearable none choice. A small primitive reports it to agents, which a bare <select> is not.
Example
native-select-demo.tsxCopy code
Installation
Copy code
npm packages
lucide-reactUsage
ImportCopy code
API reference
NativeSelect
Takes Omit< ComponentProps<"select">, "value" | "defaultValue" | "onChange" | "children" | "multiple" > &.
Other exports
nativeSelecttype NativeSelectOptiontype NativeSelectOptionGrouptype NativeSelectOptionListtype NativeSelectPropstype NativeSelectChangeReasontype NativeSelectItemtype NativeSelectOptionsAccessibility
- The platform's own picker, best on touch screens and for long lists.
- Native required and form submit work.
Agent actions
Rendered through its own primitive so agents can list and set its choices; a bare <select> is invisible.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.