{"id":41651594,"url":"https://github.com/mblode/dnd-grid","last_synced_at":"2026-01-24T16:12:46.578Z","repository":{"id":329507687,"uuid":"1119742312","full_name":"mblode/dnd-grid","owner":"mblode","description":"A draggable and resizable grid layout for React.","archived":false,"fork":false,"pushed_at":"2026-01-02T22:13:24.000Z","size":2431,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-09T10:56:20.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dnd-grid.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mblode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"mblode"}},"created_at":"2025-12-19T19:12:00.000Z","updated_at":"2026-01-02T22:12:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mblode/dnd-grid","commit_stats":null,"previous_names":["mblode/dnd-grid"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mblode/dnd-grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdnd-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdnd-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdnd-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdnd-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mblode","download_url":"https://codeload.github.com/mblode/dnd-grid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdnd-grid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28731223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-24T16:12:41.862Z","updated_at":"2026-01-24T16:12:46.573Z","avatar_url":"https://github.com/mblode.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mblode"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://dnd-grid.com\"\u003e\n    \u003cimg alt=\"dnd-grid – A drag-and-drop, resizable grid layout for React\" src=\".github/assets/banner.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@dnd-grid/react\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@dnd-grid/react.svg\" alt=\"npm version\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT Licence\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n- **Drag + resize:** smooth interactions with weighted drag physics and configurable handles.\n- **Responsive layouts:** breakpoint helpers and automatic container width measurement.\n- **Compaction + constraints:** packing strategies, collision handling, and bounds control.\n- **Edge auto-scroll:** keep dragging near scroll boundaries.\n- **Touch-friendly:** configurable touch drag delay.\n- **Styling defaults + hooks:** `base.css`/`theme.css`, CSS variables, data attributes, and item state hook.\n- **Accessible grid:** grid semantics plus configurable aria-live announcements.\n- **Headless core engine:** `@dnd-grid/core` handles layout math with a React adapter on top.\n- **Layout persistence:** add/remove widgets and serialize/restore layouts.\n\n## Documentation\n\nTo learn how to get started with **dnd-grid**, visit the official documentation website for API docs, guides, and examples.\n\n\u003cp\u003e\n\u003ca href=\"https://dnd-grid.com/docs\"\u003e\n\u003cimg alt=\"Visit dnd-grid documentation\" src=\".github/assets/documentation.svg\" width=\"200\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n## Demo\n\nTry the live demo.\n\n\u003cp\u003e\n\u003ca href=\"https://dnd-grid.com\"\u003e\n\u003cimg alt=\"View dnd-grid demo\" src=\".github/assets/demo.svg\" width=\"200\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\nnpm install @dnd-grid/react\n```\n\nAdd the styles to your global CSS:\n\n```css\n@import \"@dnd-grid/react/styles.css\";\n```\n\n## Usage\n\n```tsx\nimport { DndGrid, type Layout } from \"@dnd-grid/react\";\n\n\u003cDndGrid layout={layout} cols={12} rowHeight={50} onLayoutChange={setLayout}\u003e\n  {layout.map((item) =\u003e (\n    \u003cdiv key={item.id}\u003e{item.id}\u003c/div\u003e\n  ))}\n\u003c/DndGrid\u003e;\n```\n\n## Acknowledgements\n\nBased on [react-grid-layout](https://github.com/react-grid-layout/react-grid-layout) by Samuel Reed (STRML). Differences: weighted drag physics, better styling defaults (`base.css`/`theme.css`, CSS vars, data attributes), touch drag delay, edge auto-scroll, item state hook.\n\n## Licence\n\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmblode%2Fdnd-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmblode%2Fdnd-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmblode%2Fdnd-grid/lists"}