Docs

Documentation versions (currently viewingVaadin 25.4 (pre-release))

Wrap Components with a Layout

Group components by wrapping them with a horizontal, vertical, or flex layout.

To group components, wrap them with a layout. Copilot creates the layout and moves the components into it, in the view and in the code.

Put the first and last name side by side
  1. Select the components to wrap: click the first, then Ctrl-click the others (⌘-click on macOS).

  2. Open the menu, point at Wrap with, and choose a layout, here Horizontal Layout. The new layout takes their place in the form, with both fields in it.

Layouts to Wrap With

Wrap with offers Vertical Layout, Horizontal Layout, Flex Row, Flex Column, and Other…​ for more.