Docs

Documentation versions (currently viewingVaadin 24)

Form Layout

Styling API reference for the Form Layout component.

Lumo Properties

The following Lumo style properties can be used to easily change the styling of the component. See the Styling documentation for more details on how to style components.

Feature Property Default Value

Spacing between columns

--vaadin-form-layout-column-spacing

--lumo-space-l

Spacing between rows

--vaadin-form-layout-row-spacing

0

Spacing between side label and field

--vaadin-form-layout-label-spacing

1em

Side label width

--vaadin-form-layout-label-width

8em

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.

Form Layout

vaadin-form-layout

Form Row

vaadin-form-row

Form Item

vaadin-form-item

Form Item Label

vaadin-form-item::part(label)

Form Item Label Text

vaadin-form-item > label

Form Item Required Indicator

vaadin-form-item::part(required-indicator)

Form Item with Required Field

vaadin-form-item[required]