Skip to content
Eskais UI

Forms

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

Installation

npx shadcn@latest add @eskais/native-select
npm packageslucide-react

Usage

Import
import { NativeSelect } from "@/components/ui/native-select"import { nativeSelect } from "@/components/ui/native-select-primitive"

API reference

NativeSelect

Takes Omit< ComponentProps<"select">, "value" | "defaultValue" | "onChange" | "children" | "multiple" > &.

Other exports

nativeSelecttype NativeSelectOptiontype NativeSelectOptionGrouptype NativeSelectOptionListtype NativeSelectPropstype NativeSelectChangeReasontype NativeSelectItemtype NativeSelectOptions

Accessibility

  • 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.