Prodular UI

Inputs

Native select

The browser's own select element with the Prodular surface, for forms where the system picker works best.

npx prodular-ui add native-select

With a field

Uses the operating system menu, so it works well on phones.

Sizes and disabled

Anatomy

<NativeSelect id="format" defaultValue="csv">  <NativeSelectOption value="csv">CSV</NativeSelectOption>  <NativeSelectOption value="pdf">PDF report</NativeSelectOption></NativeSelect>

Guidance

Use it when

  • Mobile-heavy flows, where the operating system picker is faster.
  • Plain HTML forms that post without JavaScript.

Avoid

  • Options with icons, descriptions or custom rendering. Use Select.

Rules for AI agents

Published in llms-full.txt and the registry, so coding agents follow them when they build with this component.

  • NativeSelect is not linked by Field automatically. Give it an id and pass the same value to FieldLabel htmlFor.
  • className goes on the wrapper, so set width with className (w-full) and the select fills it.
  • Use NativeSelectOptGroup with a label to group options.

API

NativeSelect

PropTypeDefaultDescription
size"sm" | "default" | "lg""default"Height. Matches Button and Input.
classNamestringApplied to the wrapper. Use it for width.