oks-ui

Forms

FormFieldSet type="select" -- single/multi select with a custom popover or native mode.

Preview

Type options

Content

Set to make the field show its invalid state.

Appearance

filled = borderless neutral fill at rest (text types); others fall back to bordered.

Layout & positioning

Behavior & states

Props

options

Array<{ label: ReactNode; value: string; disabled?; textValue?; startContent?; endContent? }>

Default: []

Items in the menu. textValue is used for filtering and native fallback.

placeholderOption

ReactNode

Default: "Select…"

Placeholder row shown when value is empty (single select).

renderOption / renderValue / renderChip

(…) => ReactNode

Default:

Custom option / selected-value / chip rendering.

startIcon / endIcon

ReactNode

Default:

Leading/trailing icon on the trigger.

prefix / suffix

ReactNode

Default:

Leading/trailing affix on the trigger.

label

ReactNode

Default:

Field label.

description

ReactNode

Default:

Helper text below the control.

error

ReactNode | boolean

Default:

Error message, or true for an invalid state with no message.