Adding components to folders with drag & drop
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3540578. -->
Reported by: [balintbrews](https://www.drupal.org/user/613760)
Related to !116 !1509
>>>
<h3 id="overview">Overview</h3>
<p>Allow users to place components inside folders with drag & drop.</p>
<p>→ See: <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3540576" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3540576</a></span></p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<ol>
<li>Allow dragging components into new folders (either from the root level or from an existing folder) within <em>Components</em>, <em>Dynamic components</em>, and <em>Code</em>.</li>
<li>Keep the ordering within folders alphabetically. (We may introduce different sorting options in the future, but that is out of scope.)</li>
<li>Allow empty folders.</li>
</ol>
<h3 id="ui-changes">User interface changes</h3>
<p><img src="https://www.drupal.org/files/issues/2025-08-09/xb-library-folders-design.png" alt="Library organization with folders"></p>
> Related issue: [Issue #3540577](https://www.drupal.org/node/3540577)
> Related issue: [Issue #3540576](https://www.drupal.org/node/3540576)
issue