west Back
home Home
light_mode
MumpUI / Component / Select
copy
code  Show code
Select
India
Select component with search or clear only
copy
code  Show code
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
onSearchfunctionShows search box only if search function is passed
clearableboolean
disabledboolean
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
Select.search function arguments
NameTypeUsage
searchstringSearched text
optionsarraySelect input field options
caseSensitiveboolean (Default: false)
A basic text based Search method is provied with Select component. For calling API or any other functionality, search method need to be implemented.