Multi-Select Combo Box Styling
Style Variants
The following style variants can be applied:
| Variant | Description | Supported by |
|---|---|---|
| Renders a more compact field | Aura, Lumo |
| Uses a solid background color for hovered and active items in the overlay | Aura |
| Renders the helper above the field, and below the label | Aura, Lumo |
Style Properties
The following style properties can be used in CSS stylesheets to customize the appearance of this component.
To apply values to these properties globally in your application UI, place them in a CSS block using the html {…} selector.
See Component Style Properties for more information on style properties.
|
Note
|
Input Field Components Shared Styles
Style properties whose names start with --vaadin-input-field are shared among all input field components. To apply them only to a specific type of component, use an element selector like vaadin-text-field {…}
|
Field Surface
Common Properties
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura |
| Lumo |
| Aura |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
Field States
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura |
| Lumo |
| Lumo |
| Lumo |
| Lumo |
| Lumo |
| Lumo |
Label
| Property | Supported by |
|---|---|
| Lumo |
| Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
Helper
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Lumo |
Error Message
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
| Aura, Lumo |
Field Buttons
| Property | Supported by |
|---|---|
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Lumo |
| Lumo |
Chips
| Property | Supported by |
|---|---|
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
Overlay
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
Overlay Items
| Property | Supported by |
|---|---|
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura, Lumo |
| Aura, Lumo |
Animation
The overlay has a built-in opening and closing animation, which is disabled until an animation
duration is set. The closed properties define the state that the overlay animates from when it
opens, and to when it closes. The Aura theme sets these properties for some components. Lumo has its
own overlay animations, which these properties don’t affect.
While an animation runs, the component has the opening or closing state attribute, so separate
values can be applied to each direction. The backdrop always fades, and only the opacity is animated
when the user prefers reduced motion.
| Property | Value syntax | Initial value |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSS Selectors
The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.
|
Important
|
Not for Shadow DOM
These selectors should be used in styles.css or another stylesheet loaded with the @StyleSheet annotation or the @import CSS rule.
They do not work in the shadow DOM of Vaadin components, such as in stylesheets in the components sub-folder or loaded with the @CssImport annotation’s themeFor property.
|
- Root element
-
vaadin-multi-select-combo-box
States
- Required
-
vaadin-multi-select-combo-box[required] - Focused
-
vaadin-multi-select-combo-box[focused] - Keyboard focused
-
vaadin-multi-select-combo-box[focus-ring] - Read-only
-
vaadin-multi-select-combo-box[readonly] - Disabled
-
vaadin-multi-select-combo-box[disabled] - Not empty
-
vaadin-multi-select-combo-box[has-value] - With open overlay
-
vaadin-multi-select-combo-box[opened] - Loading items
-
vaadin-multi-select-combo-box[loading] - Hovered
-
vaadin-multi-select-combo-box:hover
Field
- Field surface (background, border)
-
vaadin-multi-select-combo-box::part(input-field) - Native input element
-
vaadin-multi-select-combo-box> input - Input field with placeholder shown
-
vaadin-multi-select-combo-box> input:placeholder-shown - Clear and Toggle buttons
-
vaadin-multi-select-combo-box::part(field-button) - Toggle Button
-
vaadin-multi-select-combo-box::part(toggle-button) - Clear button
-
vaadin-multi-select-combo-box::part(clear-button) - Clear button icon
-
vaadin-multi-select-combo-box::part(clear-button)::before - Prefix element
-
vaadin-multi-select-combo-box> [slot="prefix"] - Suffix element
-
vaadin-multi-select-combo-box> [slot="suffix"]
Label
- Field with label
-
vaadin-multi-select-combo-box[has-label] - Label
-
vaadin-multi-select-combo-box::part(label) - Label text
-
vaadin-multi-select-combo-box> label - Required indicator
-
vaadin-multi-select-combo-box::part(required-indicator)
Helper and Validation Error
- Field with helper
-
vaadin-multi-select-combo-box[has-helper] - Helper
-
vaadin-multi-select-combo-box::part(helper-text) - Helper text
-
vaadin-multi-select-combo-box> [slot="helper"] - Invalid field
-
vaadin-multi-select-combo-box[invalid] - Field with error message
-
vaadin-multi-select-combo-box[has-error-message] - Error message
-
vaadin-multi-select-combo-box::part(error-message) - Error message text
-
vaadin-multi-select-combo-box> [slot="error-message"]
Chips
- Chip element
-
vaadin-multi-select-combo-box-chip - Focused chip
-
vaadin-multi-select-combo-box-chip[focused] - Hovered chip
-
vaadin-multi-select-combo-box-chip:hover - Chip label
-
vaadin-multi-select-combo-box-chip::part(label) - Chip remove button
-
vaadin-multi-select-combo-box-chip::part(remove-button) - Chip remove button icon
-
vaadin-multi-select-combo-box-chip::part(remove-button)::before - Overflow Chip
-
vaadin-multi-select-combo-box-chip[slot="overflow"] - Overflow-chip with 2 items
-
vaadin-multi-select-combo-box-chip[count="2"] - Chip container inside field
-
vaadin-multi-select-combo-box::part(chips)
Overlay
- Overlay background
-
vaadin-multi-select-combo-box::part(overlay) - Overlay content wrapper
-
vaadin-multi-select-combo-box::part(content) - Overlay loading indicator
-
vaadin-multi-select-combo-box::part(loader)
Items
- Item element
-
vaadin-multi-select-combo-box-item - Selected item
-
vaadin-multi-select-combo-box-item[selected] - Item selection indicator
-
vaadin-multi-select-combo-box-item::part(checkmark) - Item selection indicator icon
-
vaadin-multi-select-combo-box-item::part(checkmark)::before - Focused item
-
vaadin-multi-select-combo-box-item[focused] - Item content wrapper
-
vaadin-multi-select-combo-box-item::part(content) - Hovered item
-
vaadin-multi-select-combo-box-item:hover