Select
Installation
import { Select } from 'uxp/components';Signature
const Select: React.MemoExoticComponent<React.FunctionComponent<ISelectProps>>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
Mandatory
Default Value
Example Value
Related Types
Last updated