> Markdown version of [Wrap Components with a Layout](https://vaadin.com/docs/next/tools/copilot/features/wrap-with-layout). Section index: [llms.txt](https://vaadin.com/docs/next/tools/llms.txt)

# Wrap Components with a 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).

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/wrap-with-layout/01-select.jpg)](../../../vaadin/videos/copilot/wrap-with-layout/01-select.mp4)

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.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/wrap-with-layout/02-wrap.jpg)](../../../vaadin/videos/copilot/wrap-with-layout/02-wrap.mp4)

## <a id="layouts-to-wrap-with"></a>Layouts to Wrap With

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