{"schemaVersion":1,"id":"react-dnd","name":"React DnD","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/react-dnd/","officialUrl":"https://github.com/react-dnd/react-dnd","isCatalog":false,"description":"A drag-and-drop library for React: connects drag sources and drop targets and helps build editors and sortable interfaces.","tasks":["Add dragging an object between React areas","Connect the drop callback to editor data changes"],"categoryIds":["frontend","design"],"subcategoryIds":["frontend.components","design.systems"],"tags":["React DnD","UI","Development"],"aliases":["react-dnd/react-dnd","react-drag-and-drop","react-dnd-library"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Add dragging an object between React areas","chooseWhen":["Add dragging an object between React areas","Connect the drop callback to editor data changes"],"considerInstead":[],"requirements":["Wrap the drag-and-drop area in DndProvider with the selected backend or an existing DragDropManager."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","The DndProvider API requires a backend or manager: merely displaying a draggable element is not enough to establish a shared drag-and-drop context."],"faq":[{"question":"What can you use for free in React DnD?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with React DnD?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for React DnD?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with React DnD?","answer":"Define drag sources, drop targets, and the drag payload. Connect the drop callback to editor data changes. Configure styles and check empty, loading, and error states."},{"question":"Can you supply your own manager to React DnD?","answer":"In the primary DndProvider.tsx source, props are represented as two alternatives: manager, or backend with context/options. In the first case, the provider uses the supplied DragDropManager; in the second, it creates one from the backend. This allows explicit integration control rather than assuming an automatically selected engine."}],"related":[],"sources":["https://github.com/react-dnd/react-dnd","https://raw.githubusercontent.com/react-dnd/react-dnd/HEAD/README.md","https://raw.githubusercontent.com/react-dnd/react-dnd/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/react-dnd/react-dnd/main/packages/react-dnd/src/core/DndProvider.tsx"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Add dragging an object between React areas.","inputs":["The component's design, states, and data.","A compatible framework and the project's styles."],"steps":["Define drag sources, drop targets, and the drag payload.","Connect the drop callback to editor data changes.","Configure styles and check empty, loading, and error states."],"checks":["The keyboard, focus indicators, and a screen reader let users complete the action.","The component works on a narrow screen and with long data values."]},"sources":["https://github.com/react-dnd/react-dnd","https://raw.githubusercontent.com/react-dnd/react-dnd/HEAD/README.md","https://raw.githubusercontent.com/react-dnd/react-dnd/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/react-dnd/react-dnd/main/packages/react-dnd/src/core/DndProvider.tsx"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/react-dnd/react-dnd","label":"Official source"},{"url":"https://raw.githubusercontent.com/react-dnd/react-dnd/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/react-dnd/react-dnd/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://raw.githubusercontent.com/react-dnd/react-dnd/main/packages/react-dnd/src/core/DndProvider.tsx","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}