options
options: string | SelectOption[] | { T }
Options for Select dropdown.
example
// Example of {[key: string]: (string | SelectOption)} usage:
<Select options={{
option1: "Option 1",
option2: "Option 2",
option3: {label: "Option 3", disabled: true},
}} />
// Example of (string | SelectOption)[] usage: <Select options={[ "Option 1", "Option 2", {label: "Option 3", value: "option3", disabled: true}, ]} /> }
Defined in
Last Updated: 30 November, 2023