Builtin component

Select

Dropdown input.

Props

PropTypeDefaultDescription
namestring—Field name
labelstring—Label text
options{ label: string; value: string }[]—Available options
valuestring | null—Currently selected value
onChange(value: string | null) => void—Change callback (browser only)
placeholderstring—Placeholder text

Example

Select({
  name: "warehouse",
  label: "Warehouse",
  options: [
    { label: "Small", value: "SMALL" },
    { label: "Medium", value: "MEDIUM" },
    { label: "Large", value: "LARGE" },
  ],
  value: "MEDIUM",
})