The current Dropdown component only allows for a single selection. To build more powerful and flexible plugins, we need a way to let users select multiple options.
I propose adding a new, separate component, MultiSelectDropdown, with the following features:
- Multi-value support: The
value prop would accept an array of strings (string[]), and the onChange handler would return an array of all selected values.
- Clear user interface: Visually display selected items in the input field, perhaps using "tags" or "pills."
- Familiar API: The component should be easy to use and consistent with the existing
Dropdown component's API.
Creating a new component would keep the existing Dropdown lightweight for single-select use cases while providing a robust solution for multi-select needs like filtering or tagging.
References:
The current
Dropdowncomponent only allows for a single selection. To build more powerful and flexible plugins, we need a way to let users select multiple options.I propose adding a new, separate component,
MultiSelectDropdown, with the following features:valueprop would accept an array of strings (string[]), and theonChangehandler would return an array of all selected values.Dropdowncomponent's API.Creating a new component would keep the existing
Dropdownlightweight for single-select use cases while providing a robust solution for multi-select needs like filtering or tagging.References:
Dropdowncomponent