Skip to main content

Select

A widget for user to select options, often used for province/city selection

  • props
PropertyDescriptionTypeDefault
stylestyle for containe of Selectany-
statusshow different status of Selectsuccess | error | warning-
valuevalue of Selectstring-
onChangecallback when option changefunction-
optionsoptions for Select{label: string, value: string}[]-
textStylestyle of option textany-
disabledwhether disable the widgetbooleanfasle
<Select 
options={[
{
label: 'option 1',
value: 'option 1',
},
{
label: 'option 2',
value: 'option 2',
}
]}
/>

Select