Select
Installation
import {Select} from 'uxp/components';Examples
// options
let [selectedOption, setSelectedOption] = React.useState<string>(null)
let options = [
{label: "Sri Lanka", value: "SL"},
{label: "India", value: "IN"},
{label: "United State", value: "US"},
]
<Select
options={options}
selected={selectedOption}
onChange={(newValue, option) => {
setSelectedOption(value)
}}
/>Properties
Name
Type
Description
options
type
labelField
type
valueField
type
iconField
type
selected
type
onChange
type
placeholder
type
className
type
isValid
type
showEndOfContent
type
renderOption
type
addNewValues
type
dropdownClassname
type
spacingMode
type
onClear
type
renderCustomDropdownContent
type
renderPlaceholder
type
dropdownMinWidth
type
dropdownMinHeight
type
Last updated