> Markdown version of [Move Components with Drag & Drop](https://vaadin.com/docs/next/tools/copilot/features/drag-and-drop). Section index: [llms.txt](https://vaadin.com/docs/next/tools/llms.txt)

# Move Components with Drag & Drop

Rearrange a view by dragging its components, in the view itself or in the Outline. Copilot moves the lines of code that add them.

Reorder a form, in the view and in the Outline

1. In **Edit** mode, click a component to select it. Its badge names the component type. Drag the component by the badge.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/drag-and-drop/01-select.jpg)](../../../vaadin/videos/copilot/drag-and-drop/01-select.mp4)

2. Drag it to its new place and release. In a form, aim for the thin strip at the left edge of a field: the component goes before that field.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/drag-and-drop/02-drag.jpg)](../../../vaadin/videos/copilot/drag-and-drop/02-drag.mp4)

3. When the target is small or crowded, open the Outline. It shows the view’s components as a tree.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/drag-and-drop/03-outline-open.jpg)](../../../vaadin/videos/copilot/drag-and-drop/03-outline-open.mp4)

4. Drag a row in the Outline to move that component. Here, Birthday moves to the top of the form.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/drag-and-drop/04-outline-drag.jpg)](../../../vaadin/videos/copilot/drag-and-drop/04-outline-drag.mp4)

## <a id="where-a-component-goes"></a>Where a Component Goes

While you drag, drop zones show where the component can go. In a form layout, the drop zone before a field is a narrow strip at the field’s left edge. When the drop zone you want is hard to hit, drag in the Outline instead.
