Skip to main content

MultiSelect

The MultiSelect component allows for multiple options to be selected from a dropdown list. These options are collected as visual tags. The MultiSelect component can be searchable or non-searchable.

Uncontrolled

By default, MultiSelect is an uncontrolled component. The defaultSelectedKeys prop can be used to set the initial selected key.

Result
Loading...
Live Editor

With sections

Result
Loading...
Live Editor

Searchable

The searchable prop allows the user to search for items in the list. If the value is not found in the list the input value will be cleared on field blur.

Result
Loading...
Live Editor

Controlled

Controlled components are useful when responding to changes to the selected keys. For example, to update the selected key based on user input, use the onSelectionChange prop to update the selected key.

Result
Loading...
Live Editor

Analytics

The MultiSelect component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'MultiSelect',
actions: {
onSelectionChange: { type: 'MULTISELECT_CHANGE', payload: 'Change' },
},
};

Props