Message Input Styling
Style Variants
Message Input supports the following style variants:
| Variant | Description | Supported by |
|---|---|---|
| Renders the send button with an icon only | Aura |
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 |
| Lumo |
| Lumo |
| Lumo |
| Lumo |
| Lumo |
| Lumo |
|
Tip
|
Send Button Properties
The send button appearance can be adjusted using the Button style properties.
|
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-message-input - Disabled
-
vaadin-message-input[disabled]
Field
- Input field wrapper
-
vaadin-message-input> vaadin-text-area - Input field
-
vaadin-message-input> vaadin-text-area::part(input-field) - Hovered input field
-
vaadin-message-input> vaadin-text-area:hover - Focused input field
-
vaadin-message-input> vaadin-text-area[focused] - Non-empty input field
-
vaadin-message-input> vaadin-text-area[has-value]