Form Layout Styling
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.
Spacing
Form Layout allows you to configure the spacing between columns, rows, and between the label and input field when labels are positioned on the side.
Use the following CSS properties on individual vaadin-form-layout elements, or globally on the html element. The Flow API also provides setters for these properties.
| Spacing | CSS Property | Flow API |
|---|---|---|
Between columns |
|
|
Between rows |
|
|
Between side label and field |
|
|
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]