For AI agents: the documentation index is at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Portal
Render the grid into a portal container.
How it works
The grid measures its own container, so rendering it through createPortal into a different part of the DOM works as long as that container exists before the grid mounts. This example portals the whole grid into a separate bordered region.
Portals are how you keep a grid inside a modal, a drawer, or a resizable split pane without moving it in the React tree. The mounted flag here avoids rendering the portal during the server pass, when the target ref is still null.
Installation
npx shadcn@latest add https://blode.co/dnd-grid/r/portal-example.jsonPublished with Edda