Select allows users to make a single selection or multiple selections from a list of options.
Preview
Usage
The Combobox Multi-Select component combines an input element with a dropdown list, allowing users to select multiple items. Selected items appear as chips within the input field. It is commonly used for multi-select user pickers where selected items display avatars alongside names — for example, selecting team members, recipients, or participants with avatar chips.
Closing the list after selection
When not passing showList and hasSuggestionList is true, to close the list with the select event, use the closeComboboxList method:
methods: {
onSelect (i) {
this.$refs.comboboxMultiSelect.closeComboboxList();
},
}
With Max Selected Validation
Adds validation for max selection. Make sure to provide the following props:
maxSelectedthe maximum number of selections you can make. 0 is unlimitedmaxSelectedMessageshould be the message that shown if max selection has been reached
Vue API
Slots
Props
Events
Accessibility
A screen reader visible only close button is added by default.
Keyboard Support
- User can navigate between chips pressing the
LEFTandRIGHTkey. - Pressing
LEFTkey when you have chips in the input and you are at the start of the text would select the last chip. - Pressing
RIGHTkey when you are at the last chip would focus on the start of the input. - Pressing
BACKSPACEkey would focus the chip. - When a chip is focused, pressing
BACKSPACEorDELETEkey would remove the chip. - User can navigate the popover list pressing
UPandDOWNkey.
See full Keyboard Support for popover list.