Skip to content
Entangle UI v0.13.0

SelectProps

SelectProps<T> = Prettify<SelectBaseProps<T> & SelectNonClearableProps<T>> | Prettify<SelectBaseProps<T> & SelectClearableProps<T>>

Defined in: src/components/controls/Select/Select.types.ts:194

Props for the Select component.

clearable discriminates the onChange contract: a non-clearable select never emits null, so its onChange value is T; a clearable select can emit null from the clear button, so its onChange value is T | null.

T extends string = string