Docs

Hilla is now an integrated part of Vaadin 24 – AnnouncementHilla Documentation

Text Area

Styling API reference for the Text Area component.

CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component.

Root element

vaadin-text-area

States

Required

vaadin-text-area[required]

Focused

vaadin-text-area[focused]

Keyboard focused

vaadin-text-area[focus-ring]

Read-only

vaadin-text-area[readonly]

Disabled

vaadin-text-area[disabled]

Not empty

vaadin-text-area[has-value]

Hovered

vaadin-text-area:hover

Field

Field surface (background, border)

vaadin-text-area::part(input-field)

Native input element

vaadin-text-area > textarea

Input field with placeholder shown

vaadin-text-area > textarea:placeholder-shown

Clear button

vaadin-text-area::part(clear-button)

Clear button icon

vaadin-text-area::part(clear-button)::before

Prefix element

vaadin-text-area > [slot="prefix"]

Suffix element

vaadin-text-area > [slot="suffix"]

Label

Field with label

vaadin-text-area[has-label]

Label

vaadin-text-area::part(label)

Label text

vaadin-text-area > label

Required indicator

vaadin-text-area::part(required-indicator)

Helper and Validation Error

Field with helper

vaadin-text-area[has-helper]

Helper

vaadin-text-area::part(helper-text)

Helper text

vaadin-text-area > [slot="helper"]

Invalid field

vaadin-text-area[invalid]

Error message

vaadin-text-area::part(error-message)

Error message text

vaadin-text-area > [slot="error-message"]