west Home
light_mode
MumpUI / Component / Select
copy
code  Show code
Select
India
Select with search
India
Select with clear
India
Select with search & clear
India
⭐ Native select component
copy
code  Show code
Native Select

Native select component is better for mobile devices as it open a native modal for selection.

Select component props
NameTypeUsage
..All div element props
optionsarrayArray of option objects containing key & label
valueobjectObject of key & label
onChangefunction
placeholderstring
simpleSearchfunctionShow search box in dropdown
onSearchfunctionFor advanced search implementation
clearableboolean
disabledboolean
optionsSpacebooleanLeave margin for dropdown options
loadingbooleanTo show loader in place of dropdown options
valueHOCfunctionSelected value HOC to customize selected option
optionHOCfunctionOption HOC to customize option in list
Select.Native component props
NameTypeUsage
..All input element props
optionsarrayArray of option objects containing key & label
valuestringSelected option key
onChangefunction
disabledboolean

A basic text based Search method is provied with Select component. For calling API or any other functionality, search method need to be implemented with onSearch.