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.
For AI agents: the documentation index is at /dnd-grid/docs/llms.txt. Append .md to any page URL, or send Accept: text/markdown, for the Markdown version of that page.
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.
Switch between vertical, horizontal, and none.
A compactor decides where items settle once a drag ends. This example switches between vertical compaction, which pulls everything toward the top, horizontal compaction, which pulls toward the left, and no compaction at all, which leaves items exactly where they were dropped.
Vertical is the right default for feeds and dashboards where gaps look like bugs. Horizontal suits toolbars and timelines. No compaction suits freeform boards. Because the compactor is a prop, you can expose the choice to users as this demo does.
npx shadcn@latest add https://blode.co/dnd-grid/r/compactor-showcase-example.jsonimport { CompactorShowcaseExample } from "@/components/dnd-grid-compactor-showcase-example";
export default function Page() {
return <CompactorShowcaseExample />;
}Published with Edda