Select

One value or several, chosen from a list the field opens. Search, grouping, tags, custom option rendering and virtual scrolling.

Anotomy

Structure of the select and how its internal parts are composed. These are the select's semantic parts, so they are also what the classNames and styles objects accept. The popup's parts go in a nested popup object.

Single

Select anotomy in single mode
NameDescription
1rootThe field's box: border, background, radius and padding. variant, size and status change it here.
2prefixThe node from prefix, before the selection.
3contentThe area that holds the chosen label.
4clearThe button that empties the field, shown on hover when allowClear is set.
5suffixThe arrow at the end, or a search glyph while searching. suffixIcon replaces it.
6popup.rootThe dropdown panel. It is portalled to <body>, so these keys are how you reach it.
7popup.listThe scrolling list of options inside the panel.
8popup.listItemOne option, from options. The chosen one is highlighted.

Multiple

With mode="multiple" or mode="tags", each chosen value becomes a tag with its own three parts.
Select anotomy in multiple mode
NameDescription
1rootThe field's box. It grows in height when the tags wrap.
2prefixThe node from prefix, before the tags.
3contentThe area that holds the tags and the search input.
4itemOne tag for a chosen value. tagRender replaces it, and maxTagCount folds the rest into a "+N" tag.
5itemContentA tag's label.
6itemRemoveA tag's remove button. removeIcon replaces the glyph.
7clearThe button that removes every tag, shown on hover when allowClear is set.
8suffixThe arrow at the end, or a search glyph while the popup is open.
9popup.rootThe dropdown panel.
10popup.listItemOne option. A chosen one shows menuItemSelectedIcon.
11popup.listThe scrolling list of options inside the panel.