Keep drag math correct when scaling the grid.
View source on GitHub
Copynpx shadcn@latest add https://dnd-grid.com/r/scale-example.json
npx shadcn@latest add https://dnd-grid.com/r/scale-example.json
Copyimport { ScaleExample } from "@/components/dnd-grid-scale-example"; export default function Page() { return <ScaleExample />; }
import { ScaleExample } from "@/components/dnd-grid-scale-example"; export default function Page() { return <ScaleExample />; }
On This Page