Use data-bs-toggle="bootstrap-nice-select" to transform a select from an existing, unformat html select field for multiple="multiple" select field or a single select field. To size the created select field, wrap it with a <div> tag and set the width and height CSS style of it.
The overlay which will be shown when clicked on the add icon is keyboard navigable with the Tab key to switch between the input and the first founded option. In addition, the Arrow keys can be used to navigate through the founded options, when you want to add it to the list.
Possible options to search for are: Banana, Apple, Orange, Lemon, Pepper, Mushrooms, Cabbages, Celery, Brocoli, Garlic
Single Select
Multiple Select
With group tag
When using <optgroup> tags, you can search for this labels in the search container to get a list of all possible options for the selected label.
Disabled Component
You can set disabled="disabled" for the whole <select> field or for a single <option> element, so it can not be removed or new items can not be added. Setting the disabled tags works for remote data too, so they can be first time added but not removed afterwards.