Edit page

MultiSelect

MultiSelect allows users to choose one or more options from a prescribed list.

Import Syntax

Basic Usage

Advanced Usage

selectedItem={this.state.selectedValues}
fullWidth
appendToBody
closeOnSelect={false}

Custom Label Renderer

Minimal

Virtualized

With Formik

{
  "dogs": []
}

Props

PropertyTypeRequiredDefaultDescription
placeholderStringfalseSelect...Placeholder text for the input.
placementEnumfalsebottom-startPlacement of the popover in relation to the target.
closeOnSelectBoolfalsetrueWhether or not to close the menu on each selection.
virtualizedRowHeightUnionfalse42(virtualized only) Row height used to calculate how many rows to render in a virtualized Menu.
onChangeFuncfalse() => {}Callback function fired when the value of the Select changes.
onBlurFuncfalse() => {}Callback function fired when the Select element is blurred.
childrenNodefalse-Nodes to be used as options in the Select.
selectedItemNodefalse-The selected item of the Select.
selectedValueNodefalse-Value of the selected item.
renderValueFuncfalse-Function to run when determining how to display selected values in a collapsed MultiSelect.
fullWidthBoolfalse-Whether or not the Select will fill its container's width.
minimalBoolfalse-A style variant for Select inputs.
menuStyleObjectfalse-Style prop applied to the menu wrapper.
positionFixedBoolfalse-Uses `position: fixed` on the tooltip allowing it to show up outside of containers that have `overflow: hidden`.
virtualizedBoolfalse-Use react-virtualized to render rows as the user scrolls.
virtualizedMenuWidthNumberfalse-(virtualized only) Width of the menu; unloaded rows may be wider than the initial set.
popperModifiersObjectfalse-Modifiers to be passed to the Popper element