{
  "id": "task_libraries:drag-and-drop/react",
  "path": "/exapedia/react-drag-and-drop-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React drag and drop libraries",
  "answer": [
    {
      "t": "text",
      "text": "React drag and drop libraries let people move items on a page with a mouse, a finger, or the keyboard. These libraries handle the drag interactions in kanban boards, sortable lists, dashboards, and file uploads."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React drag and drop libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#dnd-kit-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F122"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F123"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-dropzone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-draggable",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#use-gesture-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-dnd",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-grid-layout",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hello-pangea-dnd",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dnd-kit-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#dnd-kit-core",
          "label": [
            {
              "t": "fact",
              "fact": "F122"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F123"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Drop targets",
            "Keyboard drag input"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#dnd-kit-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F122"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-dropzone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-draggable",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#use-gesture-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-dnd",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-grid-layout",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hello-pangea-dnd",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dnd-kit-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "dnd-kit-core",
          "name": [
            {
              "t": "fact",
              "fact": "F122"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/clauderic/dnd-kit"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@dnd-kit/core"
            },
            {
              "label": "Docs",
              "href": "https://github.com/clauderic/dnd-kit#readme"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "@dnd-kit/core is the original React package of dnd kit, a drag and drop toolkit with no outside dependencies. The "
            },
            {
              "t": "code",
              "text": "useDraggable"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "useDroppable"
            },
            {
              "t": "text",
              "text": " hooks turn existing elements into draggable items and drop areas, and a "
            },
            {
              "t": "code",
              "text": "DndContext"
            },
            {
              "t": "text",
              "text": " provider reports drag events and holds the sensors for pointer, mouse, touch, and keyboard input. The "
            },
            {
              "t": "code",
              "text": "@dnd-kit/sortable"
            },
            {
              "t": "text",
              "text": " preset, built on the core, handles sortable lists and grids. The dnd kit quickstart now calls this package legacy and starts new projects on "
            },
            {
              "t": "code",
              "text": "@dnd-kit/react"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F123"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/clauderic/dnd-kit#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F122"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Keyboard and screen readers"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Keyboard sensors, default "
                },
                {
                  "t": "code",
                  "text": "aria"
                },
                {
                  "t": "text",
                  "text": " attributes, and live region announcements are built in."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Sortable preset"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "@dnd-kit/sortable"
                },
                {
                  "t": "text",
                  "text": " adds sortable lists, grids, and multiple containers on top of the core."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Legacy package"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The dnd kit docs mark "
                },
                {
                  "t": "code",
                  "text": "@dnd-kit/core"
                },
                {
                  "t": "text",
                  "text": " as legacy and give a migration guide to "
                },
                {
                  "t": "code",
                  "text": "@dnd-kit/react"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "No desktop file drops"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The core doesn't handle dragging from the desktop or between windows."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "jsx",
              "code": "const App: React.FC = () => {\n  const [dataSource, setDataSource] = React.useState<DataType[]>(initialData);\n\n  const onDragEnd = ({ active, over }: DragEndEvent) => {\n    if (active.id !== over?.id) {\n      setDataSource((prevState) => {\n        const activeIndex = prevState.findIndex((record) => record.key === active?.id);\n        const overIndex = prevState.findIndex((record) => record.key === over?.id);\n        return arrayMove(prevState, activeIndex, overIndex);\n      });\n    }\n  };\n\n  return (\n    <DndContext modifiers={[restrictToVerticalAxis]} onDragEnd={onDragEnd}>\n      <SortableContext items={dataSource.map((i) => i.key)} strategy={verticalListSortingStrategy}>\n        <Table<DataType>\n          rowKey=\"key\"\n          components={{ body: { row: Row } }}\n          columns={columns}\n          dataSource={dataSource}\n        />\n      </SortableContext>\n    </DndContext>\n  );\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design/blob/b8db9c5193b8903eb846b46409eaf84f1aebeb5d/components/table/demo/drag-sorting-handler.tsx#L92-L117",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F137"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40dnd-kit/core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F122"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "jsx",
              "code": "import React from 'react';\nimport {DndContext, useDraggable} from '@dnd-kit/core';\nfunction Draggable() {\n  const {attributes, listeners, setNodeRef, transform} = useDraggable({id: 'draggable'});\n  const style = transform ? {transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`} : undefined;\n  return <button ref={setNodeRef} style={style} {...listeners} {...attributes}>Drag me</button>;\n}\nexport default function App() {\n  return <DndContext><Draggable /></DndContext>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.dndkit.com/introduction/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F127"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-dropzone",
          "name": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/react-dropzone/react-dropzone"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-dropzone"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "react-dropzone is a React hook, "
            },
            {
              "t": "code",
              "text": "useDropzone"
            },
            {
              "t": "text",
              "text": ", that turns an element into a drop area for files dragged from the desktop and connects it to a hidden file input. "
            },
            {
              "t": "code",
              "text": "getRootProps"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "getInputProps"
            },
            {
              "t": "text",
              "text": " attach to the drop area and the input, "
            },
            {
              "t": "code",
              "text": "onDrop"
            },
            {
              "t": "text",
              "text": " receives the accepted files, and "
            },
            {
              "t": "code",
              "text": "isDragActive"
            },
            {
              "t": "text",
              "text": " reports when files hover over the area. A "
            },
            {
              "t": "code",
              "text": "Dropzone"
            },
            {
              "t": "text",
              "text": " component wraps the same hook. Sending the files to a server is left to another client."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/react-dropzone/react-dropzone",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Uploads need a separate client"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The hook hands over "
                },
                {
                  "t": "code",
                  "text": "File"
                },
                {
                  "t": "text",
                  "text": " objects, and another library or "
                },
                {
                  "t": "code",
                  "text": "fetch"
                },
                {
                  "t": "text",
                  "text": " uploads them."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/supabase/supabase",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const Dropzone = ({\n  className,\n  children,\n  getRootProps,\n  getInputProps,\n  ...restProps\n}: PropsWithChildren<DropzoneProps>) => {\n  const isSuccess = restProps.isSuccess\n  const isActive = restProps.isDragActive\n  const isInvalid =\n    (restProps.isDragActive && restProps.isDragReject) ||\n    (restProps.errors.length > 0 && !restProps.isSuccess) ||\n    restProps.files.some((file) => file.errors.length !== 0)\n\n  return (\n    <DropzoneContext.Provider value={{ ...restProps }}>\n      <div\n        {...getRootProps({\n          className: cn(\n            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',\n            className,\n            isSuccess ? 'border-solid' : 'border-dashed',\n            isActive && 'border-primary bg-primary/10',\n            isInvalid && 'border-destructive bg-destructive/10'\n          ),\n        })}\n      >\n        <input {...getInputProps()} />\n        {children}\n      </div>\n    </DropzoneContext.Provider>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/supabase/supabase/blob/a66aa7417a73bad89d4c3340d6590d7ca9f01833/apps/ui-library/registry/default/blocks/dropzone/components/dropzone.tsx#L32-L64",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-dropzone%20for%20drag%20interactions%20and%20drop%20targets&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import React from \"react\";\nimport { useDropzone } from \"react-dropzone\";\n\nexport default function App() {\n  const { getRootProps, getInputProps } = useDropzone({\n    onDrop: files => console.log(files),\n  });\n  return (\n    <div {...getRootProps()}>\n      <input {...getInputProps()} />\n      Drop or choose files\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-dropzone/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-draggable",
          "name": [
            {
              "t": "fact",
              "fact": "F156"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/react-grid-layout/react-draggable"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-draggable"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "react-draggable makes one element draggable by wrapping it in a "
            },
            {
              "t": "code",
              "text": "Draggable"
            },
            {
              "t": "text",
              "text": " component, which moves the element with a CSS transform and adds no wrapper element. Props limit movement to one "
            },
            {
              "t": "code",
              "text": "axis"
            },
            {
              "t": "text",
              "text": ", keep it inside "
            },
            {
              "t": "code",
              "text": "bounds"
            },
            {
              "t": "text",
              "text": ", or restrict dragging to a "
            },
            {
              "t": "code",
              "text": "handle"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "onStart"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "onDrag"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "onStop"
            },
            {
              "t": "text",
              "text": " report each move. "
            },
            {
              "t": "code",
              "text": "DraggableCore"
            },
            {
              "t": "text",
              "text": " reports the same drag events without moving anything. Passing a "
            },
            {
              "t": "code",
              "text": "nodeRef"
            },
            {
              "t": "text",
              "text": " that points to the child's DOM node avoids deprecation warnings in React Strict Mode."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/react-grid-layout/react-draggable",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F156"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Overwrites the child's transform"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "Draggable"
                },
                {
                  "t": "text",
                  "text": " sets the child's CSS "
                },
                {
                  "t": "code",
                  "text": "transform"
                },
                {
                  "t": "text",
                  "text": ". An inner wrapper element keeps an existing transform."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Custom children forward props"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A custom child component passes the ref and event props through to its DOM element."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "No drop targets"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The library moves elements; what happens where they land is up to the app."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "(modal) => (\n          <Draggable\n            bounds={bounds}\n            nodeRef={draggleRef}\n            handle={dragHandle}\n            onStart={(event, uiData) => onStart(event, uiData)}\n          >\n            <div ref={draggleRef}>{modal}</div>\n          </Draggable>\n        )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ant-design/ant-design/blob/b8db9c5193b8903eb846b46409eaf84f1aebeb5d/components/modal/demo/modal-render.tsx#L50-L59",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-draggable%20for%20drag%20interactions%20and%20drop%20targets&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F156"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import React, { useRef } from 'react';\nimport Draggable from 'react-draggable';\nexport default function App() {\n  const nodeRef = useRef(null);\n  return (\n    <Draggable nodeRef={nodeRef}>\n      <div ref={nodeRef}>Drag me!</div>\n    </Draggable>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/react-draggable@4.7.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "use-gesture-react",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/use-gesture"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@use-gesture/react"
            },
            {
              "label": "Docs",
              "href": "https://use-gesture.netlify.app"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "@use-gesture/react binds mouse and touch gestures, such as drag, pinch, wheel, scroll, move, and hover, to any element through hooks like "
            },
            {
              "t": "code",
              "text": "useDrag"
            },
            {
              "t": "text",
              "text": ". Each handler receives the gesture's state, such as "
            },
            {
              "t": "code",
              "text": "down"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "movement"
            },
            {
              "t": "text",
              "text": ", and the app decides what to move. The README pairs it with an animation library such as react-spring. A plain JavaScript version ships as "
            },
            {
              "t": "code",
              "text": "@use-gesture/vanilla"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://use-gesture.netlify.app",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Many gestures"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Drag, pinch, wheel, scroll, move, and hover share one hook API."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Any animation library"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Gesture data can drive react-spring or any other animation code."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "No drop targets"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The library reports pointer movement; drop areas and sorting are written by the app."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Touch needs touch-action"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Draggable elements set "
                },
                {
                  "t": "code",
                  "text": "touchAction: 'none'"
                },
                {
                  "t": "text",
                  "text": " so the page doesn't scroll during a drag."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-spring",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "jsx",
              "code": "const Slider = ({ children }: { children: ReactNode }) => {\n  const [{ x, bg, scale, justifySelf }, api] = useSpring(() => ({\n    x: 0,\n    scale: 1,\n    ...left,\n  }))\n  const bind = useDrag(({ active, movement: [x] }) =>\n    api.start({\n      x: active ? x : 0,\n      scale: active ? 1.1 : 1,\n      ...(x < 0 ? left : right),\n      immediate: name => active && name === 'x',\n    })\n  )\n\n  const avSize = x.to({\n    map: Math.abs,\n    range: [50, 300],\n    output: [0.5, 1],\n    extrapolate: 'clamp',\n  })\n\n  return (\n    <animated.div\n      {...bind()}\n      className={styles.item}\n      style={{ background: bg }}\n    >\n      <animated.div\n        className={styles.av}\n        style={{ scale: avSize, justifySelf }}\n      />\n      <animated.div className={styles.fg} style={{ x, scale }}>\n        {children}\n      </animated.div>\n    </animated.div>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-spring/blob/83e476061290532ab517c4d4dfd60de21589e78e/demo/src/sandboxes/slide/src/App.tsx#L16-L53",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F188"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40use-gesture/react%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "jsx",
              "code": "import React, { useState } from \"react\";\nimport { useDrag } from \"@use-gesture/react\";\n\nexport default function App() {\n  const [[x, y], setPosition] = useState([0, 0]);\n  const bind = useDrag(({ down, movement: [mx, my] }) => {\n    setPosition(down ? [mx, my] : [0, 0]);\n  });\n  return <div {...bind()} style={{ transform: `translate(${x}px, ${y}px)`, touchAction: \"none\" }}>Drag me</div>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@use-gesture/react/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-dnd",
          "name": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/react-dnd/react-dnd"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-dnd"
            },
            {
              "label": "Docs",
              "href": "https://github.com/react-dnd/react-dnd#readme"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "React DnD builds drag and drop from typed items. "
            },
            {
              "t": "code",
              "text": "useDrag"
            },
            {
              "t": "text",
              "text": " declares a drag source with an item type, and "
            },
            {
              "t": "code",
              "text": "useDrop"
            },
            {
              "t": "text",
              "text": " declares a target that accepts certain types and decides what a drop does. A backend translates browser events, and the app wraps itself in "
            },
            {
              "t": "code",
              "text": "DndProvider"
            },
            {
              "t": "text",
              "text": " with a backend, such as the one built on the browser's HTML drag and drop events. That HTML backend also accepts files dragged from the desktop through "
            },
            {
              "t": "code",
              "text": "NativeTypes.FILE"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/react-dnd/react-dnd#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F79"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F80"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F81"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Touch needs another backend"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The HTML backend ignores touch events, and the touch backend handles phones and tablets."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jameskerr/react-arborist",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function useDropHook(\n  el: RefObject<HTMLElement | null>,\n  node: NodeApi<any>,\n): ConnectDropTarget {\n  const tree = useTreeApi();\n  const [_, dropRef] = useDrop<DragItem, DropResult | null, void>(\n    () => ({\n      accept: \"NODE\",\n      canDrop: () => tree.canDrop(),\n      hover: (_item, m) => {\n        const offset = m.getClientOffset();\n        if (!el.current || !offset) return;\n        const { cursor, drop } = computeDrop({\n          element: el.current,\n          offset: offset,\n          indent: tree.indent,\n          node: node,\n          prevNode: node.prev,\n          nextNode: node.next,\n        });\n        tree.hover(drop, cursor);\n      },\n      drop: (_, m) => {\n        if (!m.canDrop()) return null;\n        tree.drop();\n      },\n    }),\n    [node, el.current, tree.props],\n  );\n\n  return dropRef;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jameskerr/react-arborist/blob/08e301db4d2fbb75ca1e5bfd8edae29cd6cfb5bd/modules/react-arborist/src/dnd/drop-hook.ts#L13-L44",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-dnd%20for%20drag%20interactions%20and%20drop%20targets&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import React from 'react';\nimport {DndProvider, useDrag} from 'react-dnd';\nimport {HTML5Backend} from 'react-dnd-html5-backend';\nfunction Box() {\n  const [{isDragging}, drag] = useDrag(() => ({type: 'BOX', item: {id: 'box'}, collect: monitor => ({isDragging: monitor.isDragging()})}));\n  return <div ref={node => {drag(node);}} style={{opacity: isDragging ? 0.5 : 1}}>Drag me</div>;\n}\nexport default function App() {\n  return <DndProvider backend={HTML5Backend}><Box /></DndProvider>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/react-dnd/react-dnd/contents/packages/docsite/markdown/docs/03%20Using%20Hooks/useDrag.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "useDrag.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-grid-layout",
          "name": [
            {
              "t": "fact",
              "fact": "F207"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/react-grid-layout/react-grid-layout"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-grid-layout"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "react-grid-layout arranges items on a draggable, resizable grid, such as a dashboard of tiles, with a separate layout for each responsive breakpoint. A "
            },
            {
              "t": "code",
              "text": "layout"
            },
            {
              "t": "text",
              "text": " array gives each item a position and size in grid units, and a compactor packs items vertically, horizontally, or by a custom rule as others move. The current major version is a TypeScript rewrite with hooks such as "
            },
            {
              "t": "code",
              "text": "useContainerWidth"
            },
            {
              "t": "text",
              "text": ", which measures the container so the grid knows its width."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/react-grid-layout/react-grid-layout",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F207"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Responsive breakpoints"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each breakpoint gets its own layout, supplied by the app or generated."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Resizable items"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Tiles resize from a handle as well as move."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Needs a container width"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The grid takes its width from "
                },
                {
                  "t": "code",
                  "text": "useContainerWidth"
                },
                {
                  "t": "text",
                  "text": " or a "
                },
                {
                  "t": "code",
                  "text": "width"
                },
                {
                  "t": "text",
                  "text": " prop before it renders."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Stylesheets imported separately"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The grid and "
                },
                {
                  "t": "code",
                  "text": "react-resizable"
                },
                {
                  "t": "text",
                  "text": " CSS files are imported next to the component."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pinpoint-apm/pinpoint",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "jsx",
              "code": "export const DashBoard = ({ children, ...props }: DashBoardProps) => {\n  const { width, containerRef } = useContainerWidth();\n  return (\n    <div ref={containerRef}>\n      <Responsive\n        width={width}\n        breakpoints={{ sm: screenPixels.sm, xxs: 0 }}\n        cols={{ sm: DASH_BOARD_WIDTH, xxs: 1 }}\n        className=\"[&>.react-grid-item.react-grid-placeholder]:bg-primary\"\n        // react-grid-layout 2 는 drag/resize 설정을 개별 prop 이 아니라 설정 객체로 받는다.\n        // (`isResizable` → `resizeConfig.enabled`, `draggableHandle` → `dragConfig.handle`)\n        resizeConfig={{ enabled: true }}\n        dragConfig={{\n          handle: `.${DRAGGABLE_HANDLE_CLASS}`,\n          cancel: `.${DRAGGABLE_CANCEL_CLASS}`,\n        }}\n        {...props}\n      >\n        {children}\n      </Responsive>\n    </div>\n  );\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pinpoint-apm/pinpoint/blob/4615bb3ca824ac29dd7b8dcf08dcbfd636612408/web-frontend/src/main/v3/packages/ui/src/components/Dashboard/DashBoard.tsx#L17-L39",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-grid-layout%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F207"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "jsx",
              "code": "import React from \"react\";\nimport GridLayout, { useContainerWidth } from \"react-grid-layout\";\nimport \"react-grid-layout/css/styles.css\";\nimport \"react-resizable/css/styles.css\";\n\nexport default function App() {\n  const { width, containerRef, mounted } = useContainerWidth();\n  const layout = [{ i: \"a\", x: 0, y: 0, w: 2, h: 2 }];\n  return (\n    <div ref={containerRef}>\n      {mounted && <GridLayout width={width} layout={layout} gridConfig={{ cols: 12, rowHeight: 30 }}>\n        <div key=\"a\">Drag or resize me</div>\n      </GridLayout>}\n    </div>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/react-grid-layout/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F212"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "hello-pangea-dnd",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/hello-pangea/dnd"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@hello-pangea/dnd"
            },
            {
              "label": "Docs",
              "href": "https://github.com/hello-pangea/dnd#readme"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "@hello-pangea/dnd reorders items in vertical and horizontal lists and moves them between lists. A "
            },
            {
              "t": "code",
              "text": "DragDropContext"
            },
            {
              "t": "text",
              "text": " wraps the lists and reports the result in "
            },
            {
              "t": "code",
              "text": "onDragEnd"
            },
            {
              "t": "text",
              "text": ", each "
            },
            {
              "t": "code",
              "text": "Droppable"
            },
            {
              "t": "text",
              "text": " marks a list, and each "
            },
            {
              "t": "code",
              "text": "Draggable"
            },
            {
              "t": "text",
              "text": " marks an item with its index. Mouse, touch, and keyboard dragging, screen reader announcements, auto-scrolling, and virtual lists are supported. The package continues react-beautiful-dnd under a new name."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/hello-pangea/dnd#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Keyboard and screen readers"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Keyboard dragging and screen reader announcements work without extra setup."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "No wrapper elements"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Items render without extra wrapper DOM nodes."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Lists only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Items move within and between lists; free-form grids take another library."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/CherryHQ/cherry-studio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "jsx",
              "code": "function DraggableList<T>({\n  children,\n  list,\n  style,\n  listStyle,\n  listProps,\n  itemKey,\n  droppableProps,\n  onDragStart,\n  onUpdate,\n  onDragEnd\n}: Props<T>) {\n  const _onDragEnd = (result: DropResult, provided: ResponderProvided) => {\n    onDragEnd?.(result, provided)\n    if (result.destination) {\n      const sourceIndex = result.source.index\n      const destIndex = result.destination.index\n      if (sourceIndex !== destIndex) {\n        const reorderAgents = droppableReorder(list, sourceIndex, destIndex)\n        onUpdate(reorderAgents)\n      }\n    }\n  }\n\n  const getId = useCallback(\n    (item: T) => {\n      if (typeof itemKey === 'function') return itemKey(item)\n      if (itemKey) return item[itemKey] as Key\n      if (typeof item === 'string') return item\n      if (item && typeof item === 'object' && 'id' in item) return item.id as Key\n      return undefined\n    },\n    [itemKey]\n  )\n\n  return (\n    <DragDropContext onDragStart={onDragStart} onDragEnd={_onDragEnd}>\n      <Droppable droppableId=\"droppable\" {...droppableProps}>\n        {(provided) => (\n          <div {...provided.droppableProps} ref={provided.innerRef} style={style}>\n            <div {...listProps} className=\"draggable-list-container\">\n              {list.map((item, index) => {\n                const draggableId = String(getId(item) ?? index)\n                return (\n                  <Draggable key={`draggable_${draggableId}`} draggableId={draggableId} index={index}>\n                    {(provided) => (\n                      <div\n                        ref={provided.innerRef}\n                        {...provided.draggableProps}\n                        {...provided.dragHandleProps}\n                        style={{\n                          ...listStyle,\n                          ...provided.draggableProps.style,\n                          marginBottom: 8\n                        }}>\n                        {children(item, index)}\n                      </div>\n                    )}\n                  </Draggable>\n                )\n              })}\n            </div>\n            {provided.placeholder}\n          </div>\n        )}\n      </Droppable>\n    </DragDropContext>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/CherryHQ/cherry-studio/blob/f19aa72f969b782ed72f81be80976b237ae26605/packages/ui/src/components/composites/draggable-list/list.tsx#L39-L107",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40hello-pangea/dnd%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "jsx",
              "code": "import React from 'react';\nimport {DragDropContext, Droppable, Draggable} from '@hello-pangea/dnd';\nexport default function App() {\n  return (\n    <DragDropContext onDragEnd={() => {}}>\n      <Droppable droppableId=\"list\">\n        {provided => (\n          <div ref={provided.innerRef} {...provided.droppableProps}>\n            <Draggable draggableId=\"item\" index={0}>\n              {provided => <div ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps}>Drag me</div>}\n            </Draggable>\n            {provided.placeholder}\n          </div>\n        )}\n      </Droppable>\n    </DragDropContext>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/hello-pangea/dnd/contents/docs/api/drag-drop-context.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "drag-drop-context.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dnd-kit-react",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/clauderic/dnd-kit"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@dnd-kit/react"
            },
            {
              "label": "Docs",
              "href": "https://github.com/clauderic/dnd-kit#readme"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "@dnd-kit/react is the current React package of dnd kit, a thin layer over its framework-independent core. "
            },
            {
              "t": "code",
              "text": "useDraggable"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "useDroppable"
            },
            {
              "t": "text",
              "text": " take an "
            },
            {
              "t": "code",
              "text": "id"
            },
            {
              "t": "text",
              "text": " and return a "
            },
            {
              "t": "code",
              "text": "ref"
            },
            {
              "t": "text",
              "text": " to attach to an element, and a "
            },
            {
              "t": "code",
              "text": "DragDropProvider"
            },
            {
              "t": "text",
              "text": " reports drag events such as "
            },
            {
              "t": "code",
              "text": "onDragEnd"
            },
            {
              "t": "text",
              "text": ". Sortable lists use "
            },
            {
              "t": "code",
              "text": "useSortable"
            },
            {
              "t": "text",
              "text": " from the "
            },
            {
              "t": "code",
              "text": "@dnd-kit/react/sortable"
            },
            {
              "t": "text",
              "text": " subpath, with the "
            },
            {
              "t": "code",
              "text": "move"
            },
            {
              "t": "text",
              "text": " helper from "
            },
            {
              "t": "code",
              "text": "@dnd-kit/helpers"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/clauderic/dnd-kit#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Refs, not spread props"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each hook returns a "
                },
                {
                  "t": "code",
                  "text": "ref"
                },
                {
                  "t": "text",
                  "text": " to attach to the element, with no listeners spread onto it."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Sortable subpath"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Sortable lists come from "
                },
                {
                  "t": "code",
                  "text": "@dnd-kit/react/sortable"
                },
                {
                  "t": "text",
                  "text": " in the same package."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Different API from the core"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Code written for "
                },
                {
                  "t": "code",
                  "text": "@dnd-kit/core"
                },
                {
                  "t": "text",
                  "text": " changes imports and events, following a migration guide."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/clash-verge-rev/clash-verge-rev",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "jsx",
              "code": "export const ConnectionColumnManager = ({\n  open,\n  columns,\n  onClose,\n  onOrderChange,\n  onReset,\n}: Props) => {\n  const { t } = useTranslation()\n\n  const visibleCount = useMemo(\n    () => columns.filter((column) => column.visible).length,\n    [columns],\n  )\n\n  const handleDragEnd = useCallback(\n    (event: DragEndEvent) => {\n      const { operation, canceled } = event\n      const { source, target } = operation\n      if (canceled || !target || !isSortable(source)) return\n\n      const order = columns.map((column) => column.id)\n      const { index: newIndex, initialIndex: oldIndex } = source.sortable\n      if (\n        oldIndex < 0 ||\n        newIndex < 0 ||\n        oldIndex >= order.length ||\n        newIndex >= order.length ||\n        oldIndex === newIndex\n      ) {\n        return\n      }\n\n      onOrderChange(arrayMove(order, oldIndex, newIndex))\n    },\n    [columns, onOrderChange],\n  )\n\n  return (\n    <Dialog open={open} onClose={onClose} maxWidth=\"xs\" fullWidth>\n      <DialogTitle>\n        {t('connections.components.columnManager.title')}\n      </DialogTitle>\n      <DialogContent sx={{ pt: 1 }}>\n        <DragDropProvider\n          sensors={[columnPointerSensor]}\n          onDragEnd={handleDragEnd}\n        >\n          <List\n            dense\n            disablePadding\n            sx={{ display: 'flex', flexDirection: 'column', gap: 1 }}\n          >\n            {columns.map((column, index) => (\n              <SortableColumnItem\n                key={column.id}\n                id={column.id}\n                index={index}\n                column={column}\n                dragHandleLabel={t(\n                  'connections.components.columnManager.dragHandle',\n                )}\n                disableToggle={column.visible && visibleCount <= 1}\n              />\n            ))}\n          </List>\n        </DragDropProvider>\n      </DialogContent>\n      <DialogActions sx={{ px: 3, pb: 2 }}>\n        <Button variant=\"text\" onClick={onReset}>\n          {t('shared.actions.resetToDefault')}\n        </Button>\n        <Button variant=\"contained\" onClick={onClose}>\n          {t('shared.actions.close')}\n        </Button>\n      </DialogActions>\n    </Dialog>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/clash-verge-rev/clash-verge-rev/blob/3f7af9ab022d04ebc45d96b56b58cd67e90fe90d/src/components/connection/connection-column-manager.tsx#L43-L120",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40dnd-kit/react%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "jsx",
              "code": "import React from \"react\";\nimport { DragDropProvider, useDraggable } from \"@dnd-kit/react\";\n\nfunction Item() {\n  const { ref } = useDraggable({ id: \"item\" });\n  return <button ref={ref}>Drag me</button>;\n}\n\nexport default function App() {\n  return <DragDropProvider><Item /></DragDropProvider>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@dnd-kit/react/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React drag and drop library should I use?",
      "a": [
        {
          "t": "text",
          "text": "For sortable lists, boards, and custom drop logic, use "
        },
        {
          "t": "link",
          "href": "#dnd-kit-react",
          "label": [
            {
              "t": "text",
              "text": "dnd kit"
            }
          ]
        },
        {
          "t": "text",
          "text": ". To reorder lists with built-in keyboard and screen reader support, use "
        },
        {
          "t": "link",
          "href": "#hello-pangea-dnd",
          "label": [
            {
              "t": "text",
              "text": "@hello-pangea/dnd"
            }
          ]
        },
        {
          "t": "text",
          "text": ". For dashboards of resizable tiles, use "
        },
        {
          "t": "link",
          "href": "#react-grid-layout",
          "label": [
            {
              "t": "text",
              "text": "react-grid-layout"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and for files dragged from the desktop, use "
        },
        {
          "t": "link",
          "href": "#react-dropzone",
          "label": [
            {
              "t": "text",
              "text": "react-dropzone"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "dnd kit vs React DnD: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "dnd kit attaches drag behavior with hooks and ships pointer, touch, and keyboard input in one package. "
        },
        {
          "t": "link",
          "href": "#react-dnd",
          "label": [
            {
              "t": "text",
              "text": "React DnD"
            }
          ]
        },
        {
          "t": "text",
          "text": " routes events through a backend: the HTML backend handles the mouse and files dragged from the desktop, and touch screens need the separate touch backend."
        }
      ]
    },
    {
      "q": "What happened to react-beautiful-dnd?",
      "a": [
        {
          "t": "link",
          "href": "#hello-pangea-dnd",
          "label": [
            {
              "t": "text",
              "text": "@hello-pangea/dnd"
            }
          ]
        },
        {
          "t": "text",
          "text": " continues react-beautiful-dnd under a new package name, with the same "
        },
        {
          "t": "code",
          "text": "DragDropContext"
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "code",
          "text": "Droppable"
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "code",
          "text": "Draggable"
        },
        {
          "t": "text",
          "text": " components."
        }
      ]
    },
    {
      "q": "How do I build a draggable dashboard grid in React?",
      "a": [
        {
          "t": "link",
          "href": "#react-grid-layout",
          "label": [
            {
              "t": "text",
              "text": "react-grid-layout"
            }
          ]
        },
        {
          "t": "text",
          "text": " places each tile by position and size in a "
        },
        {
          "t": "code",
          "text": "layout"
        },
        {
          "t": "text",
          "text": " array, lets tiles be dragged and resized, and supports a separate layout for each responsive breakpoint."
        }
      ]
    },
    {
      "q": "How do I accept dragged files in React?",
      "a": [
        {
          "t": "link",
          "href": "#react-dropzone",
          "label": [
            {
              "t": "text",
              "text": "react-dropzone"
            }
          ]
        },
        {
          "t": "text",
          "text": " returns "
        },
        {
          "t": "code",
          "text": "getRootProps"
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "code",
          "text": "getInputProps"
        },
        {
          "t": "text",
          "text": " from "
        },
        {
          "t": "code",
          "text": "useDropzone"
        },
        {
          "t": "text",
          "text": ". The first goes on the drop area and the second on a hidden file input, and "
        },
        {
          "t": "code",
          "text": "onDrop"
        },
        {
          "t": "text",
          "text": " receives the files."
        }
      ]
    },
    {
      "q": "Which React library makes one element draggable?",
      "a": [
        {
          "t": "link",
          "href": "#react-draggable",
          "label": [
            {
              "t": "text",
              "text": "react-draggable"
            }
          ]
        },
        {
          "t": "text",
          "text": " wraps an element in "
        },
        {
          "t": "code",
          "text": "Draggable"
        },
        {
          "t": "text",
          "text": " and moves it with a CSS transform. "
        },
        {
          "t": "link",
          "href": "#use-gesture-react",
          "label": [
            {
              "t": "text",
              "text": "@use-gesture/react"
            }
          ]
        },
        {
          "t": "text",
          "text": " reports drag movement from a hook and leaves the moving to the app."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @dnd-kit/sortable",
      "display": "dnd-kit Sortable",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @dnd-kit/sortable",
      "display": "153.0M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @dnd-kit/sortable",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @dnd-kit/sortable",
      "display": "10.0.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @dnd-kit/sortable",
      "display": "v10.0.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @dnd-kit/sortable",
      "display": "17.8K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Touch input, @dnd-kit/sortable",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Keyboard controls, @dnd-kit/sortable",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Drop targets, @dnd-kit/sortable",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "OS file drops, @dnd-kit/sortable",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, @dnd-kit/sortable",
      "display": "npm install @dnd-kit/core @dnd-kit/sortable @dnd-kit/utilities",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, @dnd-kit/sortable",
      "display": "Provides sortable contexts and hooks built on the dnd-kit core primitives.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, @dnd-kit/sortable",
      "display": "Handles different sortable layouts",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, @dnd-kit/sortable",
      "display": "Choose a sorting strategy for lists, grids, or virtualized layouts.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, @dnd-kit/sortable",
      "display": "Provides drag and drop bindings",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, @dnd-kit/sortable",
      "display": "Use useSortable to connect the draggable element and its drop target.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, @dnd-kit/sortable",
      "display": "Desktop file dragging is unsupported",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, @dnd-kit/sortable",
      "display": "Use react-dropzone for files dragged from the desktop.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, @dnd-kit/sortable",
      "display": "Sort events come from DndContext",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, @dnd-kit/sortable",
      "display": "Handle drag events on the surrounding DndContext rather than useSortable.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, @dnd-kit/sortable",
      "display": "import React from 'react';\nimport {useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\n\nfunction SortableItem(props) {\n  const {\n    attributes,\n    listeners,\n    setNodeRef,\n    transform,\n    transition\n  } = useSortable({id: props.id});\n\n  const style = {\n    transform: CSS.Transform.toString(transform),\n    transition,\n  };\n\n  return (\n    <div ref={setNodeRef} style={style} {...attributes} {...listeners}>\n      ...\n    </div>\n  );\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, @dnd-kit/sortable",
      "display": "function DraggableRow({\n  row,\n}: {\n  row: Row<typeof features, z.infer<typeof schema>>\n}) {\n  const { transform, transition, setNodeRef, isDragging } = useSortable({\n    id: row.original.id,\n  })\n\n  return (\n    <TableRow\n      data-state={row.getIsSelected() && \"selected\"}\n      data-dragging={isDragging}\n      ref={setNodeRef}\n      className=\"relative z-0 data-[dragging=true]:z-10 data-[dragging=true]:opacity-80\"\n      style={{\n        transform: CSS.Transform.toString(transform),\n        transition: transition,\n      }}\n    >\n      {row.getVisibleCells().map((cell) => (\n        <TableCell key={cell.id}>\n          <FlexRender cell={cell} />\n        </TableCell>\n      ))}\n    </TableRow>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, @dnd-kit/sortable",
      "display": "data-table.tsx · DraggableRow()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, @dnd-kit/sortable",
      "display": "shadcn-ui/ui",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, shadcn-ui/ui",
      "display": "128.3K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, shadcn-ui/ui",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F27": {
      "label": "Library name, react-dropzone",
      "display": "react-dropzone",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, react-dropzone",
      "display": "73.6M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, react-dropzone",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, react-dropzone",
      "display": "20.2.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, react-dropzone",
      "display": "v20.2.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, react-dropzone",
      "display": "11.0K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Keyboard controls, react-dropzone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Drop targets, react-dropzone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "OS file drops, react-dropzone",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, react-dropzone",
      "display": "npm install react-dropzone",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, react-dropzone",
      "display": "Connects file drop areas and file-picker inputs through a React hook or component.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, react-dropzone",
      "display": "Creates file drop areas",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, react-dropzone",
      "display": "Connect a root element and file input with the returned prop getters.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, react-dropzone",
      "display": "Opens the picker from keyboard",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, react-dropzone",
      "display": "Press Enter or Space when the dropzone root has focus.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, react-dropzone",
      "display": "Uploads need a separate transport",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, react-dropzone",
      "display": "Send files to the server using another upload client.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, react-dropzone",
      "display": "import React, {useCallback} from \"react\";\nimport {useDropzone} from \"react-dropzone\";\n\nfunction MyDropzone() {\n  const onDrop = useCallback(acceptedFiles => {\n    // Do something with the files\n  }, []);\n  const {getRootProps, getInputProps, isDragActive} = useDropzone({onDrop});\n\n  return (\n    <div {...getRootProps()}>\n      <input {...getInputProps()} />\n      {isDragActive ? <p>Drop the files here ...</p> : <p>Drag 'n' drop some files here, or click to select files</p>}\n    </div>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, react-dropzone",
      "display": "const Dropzone = ({\n  className,\n  children,\n  getRootProps,\n  getInputProps,\n  ...restProps\n}: PropsWithChildren<DropzoneProps>) => {\n  const isSuccess = restProps.isSuccess\n  const isActive = restProps.isDragActive\n  const isInvalid =\n    (restProps.isDragActive && restProps.isDragReject) ||\n    (restProps.errors.length > 0 && !restProps.isSuccess) ||\n    restProps.files.some((file) => file.errors.length !== 0)\n\n  return (\n    <DropzoneContext.Provider value={{ ...restProps }}>\n      <div\n        {...getRootProps({\n          className: cn(\n            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',\n            className,\n            isSuccess ? 'border-solid' : 'border-dashed',\n            isActive && 'border-primary bg-primary/10',\n            isInvalid && 'border-destructive bg-destructive/10'\n          ),\n        })}\n      >\n        <input {...getInputProps()} />\n        {children}\n      </div>\n    </DropzoneContext.Provider>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, react-dropzone",
      "display": "dropzone.tsx · Dropzone()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, react-dropzone",
      "display": "supabase/supabase",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, supabase/supabase",
      "display": "115.0K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, supabase/supabase",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F50": {
      "label": "Library name, react-draggable",
      "display": "React Draggable",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Monthly downloads, react-draggable",
      "display": "41.1M",
      "asOf": "2026-11-15"
    },
    "F52": {
      "label": "License, react-draggable",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Package release, react-draggable",
      "display": "4.7.2",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Undated package release, react-draggable",
      "display": "v4.7.2",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Repository stars, react-draggable",
      "display": "9.3K",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Touch input, react-draggable",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Install, react-draggable",
      "display": "npm install react-draggable",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "What it does, react-draggable",
      "display": "Moves existing elements with a draggable component and lower-level drag callbacks.",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths lead, react-draggable",
      "display": "Moves an existing DOM element",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths, react-draggable",
      "display": "Wrap the element without adding a new DOM wrapper.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, react-draggable",
      "display": "Offers controlled positions",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, react-draggable",
      "display": "Set position when application state should choose the coordinates.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations lead, react-draggable",
      "display": "Overwrites the child’s CSS transform",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations, react-draggable",
      "display": "Add an intermediate wrapper to preserve an existing transform.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, react-draggable",
      "display": "Custom children must forward props",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, react-draggable",
      "display": "Forward the ref and event props to the underlying DOM element.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Quickstart, react-draggable",
      "display": "import React, { useRef } from 'react';\nimport Draggable from 'react-draggable';\n\nfunction App() {\n  const nodeRef = useRef(null);\n\n  return (\n    <Draggable nodeRef={nodeRef}>\n      <div ref={nodeRef}>Drag me!</div>\n    </Draggable>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Library name, react-dnd",
      "display": "React DnD",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Monthly downloads, react-dnd",
      "display": "25.6M",
      "asOf": "2026-11-15"
    },
    "F70": {
      "label": "License, react-dnd",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Package release, react-dnd",
      "display": "16.0.1",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Undated package release, react-dnd",
      "display": "v16.0.1",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Repository stars, react-dnd",
      "display": "21.6K",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Touch input, react-dnd",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Drop targets, react-dnd",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "OS file drops, react-dnd",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Install, react-dnd",
      "display": "npm install react-dnd react-dnd-html5-backend",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "What it does, react-dnd",
      "display": "Provides hooks and backends for data-oriented drag sources and drop targets in React.",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "strengths lead, react-dnd",
      "display": "Supports custom drop-target types",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "strengths, react-dnd",
      "display": "Choose which item types each useDrop target accepts.",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "strengths lead, react-dnd",
      "display": "Accepts native files through HTML5",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "strengths, react-dnd",
      "display": "Use NativeTypes.FILE with the HTML5 backend for dropped files.",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "limitations lead, react-dnd",
      "display": "Touch dragging needs another backend",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "limitations, react-dnd",
      "display": "Install the touch backend for mobile and tablet drag events.",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Quickstart, react-dnd",
      "display": "import type { Identifier, XYCoord } from 'dnd-core'\nimport type { FC } from 'react'\nimport { useRef } from 'react'\nimport { useDrag, useDrop } from 'react-dnd'\n\nimport { ItemTypes } from './ItemTypes.js'\n\nconst style = {\n\tborder: '1px dashed gray',\n\tpadding: '0.5rem 1rem',\n\tmarginBottom: '.5rem',\n\tbackgroundColor: 'white',\n\tcursor: 'move',\n}\n\nexport interface CardProps {\n\tid: any\n\ttext: string\n\tindex: number\n\tmoveCard: (dragIndex: number, hoverIndex: number) => void\n}\n\ninterface DragItem {\n\tindex: number\n\tid: string\n\ttype: string\n}\n\nexport const Card: FC<CardProps> = ({ id, text, index, moveCard }) => {\n\tconst ref = useRef<HTMLDivElement>(null)\n\tconst [{ handlerId }, drop] = useDrop<\n\t\tDragItem,\n\t\tvoid,\n\t\t{ handlerId: Identifier | null }\n\t>({\n\t\taccept: ItemTypes.CARD,\n\t\tcollect(monitor) {\n\t\t\treturn {\n\t\t\t\thandlerId: monitor.getHandlerId(),\n\t\t\t}\n\t\t},\n\t\thover(item: DragItem, monitor) {\n\t\t\tif (!ref.current) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst dragIndex = item.index\n\t\t\tconst hoverIndex = index\n\n\t\t\t// Don't replace items with themselves\n\t\t\tif (dragIndex === hoverIndex) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Determine rectangle on screen\n\t\t\tconst hoverBoundingRect = ref.current?.getBoundingClientRect()\n\n\t\t\t// Get vertical middle\n\t\t\tconst hoverMiddleY =\n\t\t\t\t(hoverBoundingRect.bottom - hoverBoundingRect.top) / 2\n\n\t\t\t// Determine mouse position\n\t\t\tconst clientOffset = monitor.getClientOffset()\n\n\t\t\t// Get pixels to the top\n\t\t\tconst hoverClientY = (clientOffset as XYCoord).y - hoverBoundingRect.top\n\n\t\t\t// Only perform the move when the mouse has crossed half of the items height\n\t\t\t// When dragging downwards, only move when the cursor is below 50%\n\t\t\t// When dragging upwards, only move when the cursor is above 50%\n\n\t\t\t// Dragging downwards\n\t\t\tif (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Dragging upwards\n\t\t\tif (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Time to actually perform the action\n\t\t\tmoveCard(dragIndex, hoverIndex)\n\n\t\t\t// Note: we're mutating the monitor item here!\n\t\t\t// Generally it's better to avoid mutations,\n\t\t\t// but it's good here for the sake of performance\n\t\t\t// to avoid expensive index searches.\n\t\t\titem.index = hoverIndex\n\t\t},\n\t})\n\n\tconst [{ isDragging }, drag] = useDrag({\n\t\ttype: ItemTypes.CARD,\n\t\titem: () => {\n\t\t\treturn { id, index }\n\t\t},\n\t\tcollect: (monitor: any) => ({\n\t\t\tisDragging: monitor.isDragging(),\n\t\t}),\n\t})\n\n\tconst opacity = isDragging ? 0 : 1\n\tdrag(drop(ref))\n\treturn (\n\t\t<div ref={ref} style={{ ...style, opacity }} data-handler-id={handlerId}>\n\t\t\t{text}\n\t\t</div>\n\t)\n}\n",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Project function, react-dnd",
      "display": "export function useDragHook<T>(node: NodeApi<T>): ConnectDragSource {\n  const tree = useTreeApi<T>();\n  const ids = tree.selectedIds;\n  const [_, ref, preview] = useDrag<DragItem<T>, DropResult, void>(\n    () => ({\n      canDrag: () => canDragNode(node),\n      type: dragTypeForNode(tree.props.dragType, node),\n      item: () => {\n        // This is fired once at the beginning of a drag operation\n        const dragIds = tree.isSelected(node.id) ? Array.from(ids) : [node.id];\n        tree.dispatch(dnd.dragStart(node.id, dragIds));\n        return { id: node.id, dragIds, data: node.data };\n      },\n      end: () => {\n        tree.cancelHover();\n        tree.hideCursor();\n        tree.redrawList();\n        tree.dispatch(dnd.dragEnd());\n      },\n    }),\n    [ids, node, tree.props.dragType],\n  );\n\n  useEffect(() => {\n    preview(getEmptyImage());\n  }, [preview]);\n\n  return ref;\n}\n",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Project function reference, react-dnd",
      "display": "drag-hook.ts · useDragHook()",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Project repository, react-dnd",
      "display": "jameskerr/react-arborist",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Project stars, jameskerr/react-arborist",
      "display": "3.7K",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Project push date, jameskerr/react-arborist",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F91": {
      "label": "Developer need",
      "display": "Sortable lists and layouts",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Why choose @dnd-kit/sortable",
      "display": "choosing a strategy for sortable layouts",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Developer need in introduction",
      "display": "sortable lists and layouts",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Developer need",
      "display": "Custom typed item drops",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Why choose react-dnd",
      "display": "matching drop targets to application item types",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need in introduction",
      "display": "custom typed item drops",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "Moving an existing element",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose react-draggable",
      "display": "dragging without an added DOM wrapper",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "moving an existing element",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "Desktop file drop areas",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose react-dropzone",
      "display": "connecting a file drop area and input",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "desktop file drop areas",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "When to consider react-dnd",
      "display": "targets must accept application-defined item types",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Page introduction",
      "display": "React drag and drop libraries let web developers build draggable interfaces.",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "FAQ: Which React drag-and-drop library fits the task?",
      "display": "dnd-kit Sortable supports list, grid, and virtualized sorting strategies.",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "FAQ: Which React drag-and-drop library fits the task?",
      "display": "React DnD supports typed drop targets.",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "FAQ: Which React drag-and-drop library fits the task?",
      "display": "React Draggable moves an existing element using CSS transforms.",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "FAQ: Which React drag-and-drop library fits the task?",
      "display": "react-dropzone connects a file input and a drop area.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Is this dnd-kit entry the newer React package?",
      "display": "This entry is the sortable preset layered on @dnd-kit/core.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Can dnd-kit Sortable accept files dragged from the desktop?",
      "display": "The documented core architecture does not support dragging from the desktop or between windows.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Where do dnd-kit Sortable drag callbacks belong?",
      "display": "Use DndContext callbacks; useSortable does not expose callback props.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: How does React DnD accept operating-system files?",
      "display": "The HTML5 backend exposes NativeTypes.FILE for native file drop targets.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Does React DnD’s browser-native backend cover touch dragging?",
      "display": "The HTML5 backend does not support touch events; use the touch backend for touch devices.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Does enabling keyboard events prove full keyboard dragging?",
      "display": "The touch backend exposes a keyboard-event-processing option.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does enabling keyboard events prove full keyboard dragging?",
      "display": "The sortable example configures a keyboard sensor and sortable coordinate getter for movement.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Does React Draggable add a wrapper element?",
      "display": "It extends the existing element with events and styles without adding a wrapper DOM element.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: What happens to an existing CSS transform on a draggable child?",
      "display": "Draggable overwrites that transform; use an intermediate wrapper to preserve it.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can application state control a React Draggable position?",
      "display": "The position prop supports programmatic repositioning.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does react-dropzone upload the selected files?",
      "display": "The library does not provide HTTP upload requests; use a separate transport.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does keyboard access mean the same operation for every library?",
      "display": "The sortable example uses keyboard coordinates for item movement.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Does keyboard access mean the same operation for every library?",
      "display": "react-dropzone opens its file dialog with Space or Enter on the root.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "Library name, @dnd-kit/core",
      "display": "@dnd-kit/core",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Monthly downloads, @dnd-kit/core",
      "display": "163.1M",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "License, @dnd-kit/core",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "Package release, @dnd-kit/core",
      "display": "6.3.1",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Package release date, @dnd-kit/core",
      "display": "Dec 2024",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Install, @dnd-kit/core",
      "display": "npm install @dnd-kit/core@6.3.1",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Quickstart, @dnd-kit/core",
      "display": "import React from 'react';\nimport {DndContext, useDraggable} from '@dnd-kit/core';\nfunction Draggable() {\n  const {attributes, listeners, setNodeRef, transform} = useDraggable({id: 'draggable'});\n  const style = transform ? {transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`} : undefined;\n  return <button ref={setNodeRef} style={style} {...listeners} {...attributes}>Drag me</button>;\n}\nexport default function App() {\n  return <DndContext><Draggable /></DndContext>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Official description, @dnd-kit/core",
      "display": "dnd kit – a lightweight React library for building performant and accessible drag and drop experiences",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Quickstart source file, @dnd-kit/core",
      "display": "getting-started",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Repository stars, @dnd-kit/core",
      "display": "17.8K",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Drop targets, @dnd-kit/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Keyboard drag input, @dnd-kit/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Primary interface, @dnd-kit/core",
      "display": "Legacy core primitives and optional sortable preset",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Counter boundary, @dnd-kit/core",
      "display": "163051677 core installs; optional sortable preset157346449 counted separately, never summed",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Project function, @dnd-kit/core",
      "display": "const App: React.FC = () => {\n  const [dataSource, setDataSource] = React.useState<DataType[]>(initialData);\n\n  const onDragEnd = ({ active, over }: DragEndEvent) => {\n    if (active.id !== over?.id) {\n      setDataSource((prevState) => {\n        const activeIndex = prevState.findIndex((record) => record.key === active?.id);\n        const overIndex = prevState.findIndex((record) => record.key === over?.id);\n        return arrayMove(prevState, activeIndex, overIndex);\n      });\n    }\n  };\n\n  return (\n    <DndContext modifiers={[restrictToVerticalAxis]} onDragEnd={onDragEnd}>\n      <SortableContext items={dataSource.map((i) => i.key)} strategy={verticalListSortingStrategy}>\n        <Table<DataType>\n          rowKey=\"key\"\n          components={{ body: { row: Row } }}\n          columns={columns}\n          dataSource={dataSource}\n        />\n      </SortableContext>\n    </DndContext>\n  );\n};\n",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Project source file, @dnd-kit/core",
      "display": "components/table/demo/drag-sorting-handler.tsx",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Project full_name, @dnd-kit/core",
      "display": "ant-design/ant-design",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project stargazers_count, @dnd-kit/core",
      "display": "100.3K",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Library name, react-dropzone",
      "display": "react-dropzone",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Monthly downloads, react-dropzone",
      "display": "75.9M",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "License, react-dropzone",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Package release, react-dropzone",
      "display": "20.2.1",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release date, react-dropzone",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Install, react-dropzone",
      "display": "npm install react-dropzone@20.2.1",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Quickstart, react-dropzone",
      "display": "import React from \"react\";\nimport { useDropzone } from \"react-dropzone\";\n\nexport default function App() {\n  const { getRootProps, getInputProps } = useDropzone({\n    onDrop: files => console.log(files),\n  });\n  return (\n    <div {...getRootProps()}>\n      <input {...getInputProps()} />\n      Drop or choose files\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Repository stars, react-dropzone",
      "display": "11.0K",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Drop targets, react-dropzone",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Keyboard drag input, react-dropzone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Primary interface, react-dropzone",
      "display": "Browser file selection/drop getters and validation options",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Transport boundary, react-dropzone",
      "display": "File selection is distinct from upload transport/storage integration",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project function, react-dropzone",
      "display": "const Dropzone = ({\n  className,\n  children,\n  getRootProps,\n  getInputProps,\n  ...restProps\n}: PropsWithChildren<DropzoneProps>) => {\n  const isSuccess = restProps.isSuccess\n  const isActive = restProps.isDragActive\n  const isInvalid =\n    (restProps.isDragActive && restProps.isDragReject) ||\n    (restProps.errors.length > 0 && !restProps.isSuccess) ||\n    restProps.files.some((file) => file.errors.length !== 0)\n\n  return (\n    <DropzoneContext.Provider value={{ ...restProps }}>\n      <div\n        {...getRootProps({\n          className: cn(\n            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',\n            className,\n            isSuccess ? 'border-solid' : 'border-dashed',\n            isActive && 'border-primary bg-primary/10',\n            isInvalid && 'border-destructive bg-destructive/10'\n          ),\n        })}\n      >\n        <input {...getInputProps()} />\n        {children}\n      </div>\n    </DropzoneContext.Provider>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project source file, react-dropzone",
      "display": "apps/ui-library/registry/default/blocks/dropzone/components/dropzone.tsx",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project full_name, react-dropzone",
      "display": "supabase/supabase",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project stargazers_count, react-dropzone",
      "display": "115.0K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Library name, react-draggable",
      "display": "react-draggable",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Monthly downloads, react-draggable",
      "display": "42.4M",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "License, react-draggable",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Package release, react-draggable",
      "display": "4.7.2",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Package release date, react-draggable",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Install, react-draggable",
      "display": "npm install react-draggable@4.7.2",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Quickstart, react-draggable",
      "display": "import React, { useRef } from 'react';\nimport Draggable from 'react-draggable';\nexport default function App() {\n  const nodeRef = useRef(null);\n  return (\n    <Draggable nodeRef={nodeRef}>\n      <div ref={nodeRef}>Drag me!</div>\n    </Draggable>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Repository stars, react-draggable",
      "display": "9.3K",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Drop targets, react-draggable",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Keyboard drag input, react-draggable",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Primary interface, react-draggable",
      "display": "Bounds, handle, axis, and drag-event controls",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "React host boundary, react-draggable",
      "display": "nodeRef must point to the real child DOM node; supplied Ant Design example already does so",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project function, react-draggable",
      "display": "(modal) => (\n          <Draggable\n            bounds={bounds}\n            nodeRef={draggleRef}\n            handle={dragHandle}\n            onStart={(event, uiData) => onStart(event, uiData)}\n          >\n            <div ref={draggleRef}>{modal}</div>\n          </Draggable>\n        )\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project source file, react-draggable",
      "display": "components/modal/demo/modal-render.tsx",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project full_name, react-draggable",
      "display": "ant-design/ant-design",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project stargazers_count, react-draggable",
      "display": "100.3K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, @use-gesture/react",
      "display": "@use-gesture/react",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, @use-gesture/react",
      "display": "39.1M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, @use-gesture/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, @use-gesture/react",
      "display": "10.3.1",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, @use-gesture/react",
      "display": "Mar 2024",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, @use-gesture/react",
      "display": "npm install @use-gesture/react@10.3.1",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, @use-gesture/react",
      "display": "import React, { useState } from \"react\";\nimport { useDrag } from \"@use-gesture/react\";\n\nexport default function App() {\n  const [[x, y], setPosition] = useState([0, 0]);\n  const bind = useDrag(({ down, movement: [mx, my] }) => {\n    setPosition(down ? [mx, my] : [0, 0]);\n  });\n  return <div {...bind()} style={{ transform: `translate(${x}px, ${y}px)`, touchAction: \"none\" }}>Drag me</div>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Official description, @use-gesture/react",
      "display": "React target for @use-gesture",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart source file, @use-gesture/react",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Repository stars, @use-gesture/react",
      "display": "9.6K",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Drop targets, @use-gesture/react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Keyboard drag input, @use-gesture/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Primary interface, @use-gesture/react",
      "display": "Drag/pinch/wheel/hover gesture state and event binders",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Rendering boundary, @use-gesture/react",
      "display": "Motion/visual state is applied by host code or an animation peer",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Touch boundary, @use-gesture/react",
      "display": "Publisher requires touchAction on draggable elements to avoid native scrolling conflicts",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project function, @use-gesture/react",
      "display": "const Slider = ({ children }: { children: ReactNode }) => {\n  const [{ x, bg, scale, justifySelf }, api] = useSpring(() => ({\n    x: 0,\n    scale: 1,\n    ...left,\n  }))\n  const bind = useDrag(({ active, movement: [x] }) =>\n    api.start({\n      x: active ? x : 0,\n      scale: active ? 1.1 : 1,\n      ...(x < 0 ? left : right),\n      immediate: name => active && name === 'x',\n    })\n  )\n\n  const avSize = x.to({\n    map: Math.abs,\n    range: [50, 300],\n    output: [0.5, 1],\n    extrapolate: 'clamp',\n  })\n\n  return (\n    <animated.div\n      {...bind()}\n      className={styles.item}\n      style={{ background: bg }}\n    >\n      <animated.div\n        className={styles.av}\n        style={{ scale: avSize, justifySelf }}\n      />\n      <animated.div className={styles.fg} style={{ x, scale }}>\n        {children}\n      </animated.div>\n    </animated.div>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project source file, @use-gesture/react",
      "display": "demo/src/sandboxes/slide/src/App.tsx",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project full_name, @use-gesture/react",
      "display": "pmndrs/react-spring",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project stargazers_count, @use-gesture/react",
      "display": "29.3K",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Library name, react-dnd",
      "display": "react-dnd",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Monthly downloads, react-dnd",
      "display": "26.4M",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "License, react-dnd",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Package release, react-dnd",
      "display": "16.0.1",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release date, react-dnd",
      "display": "Apr 2022",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Install, react-dnd",
      "display": "npm install react-dnd@16.0.1 react-dnd-html5-backend@16.0.1",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Quickstart, react-dnd",
      "display": "import React from 'react';\nimport {DndProvider, useDrag} from 'react-dnd';\nimport {HTML5Backend} from 'react-dnd-html5-backend';\nfunction Box() {\n  const [{isDragging}, drag] = useDrag(() => ({type: 'BOX', item: {id: 'box'}, collect: monitor => ({isDragging: monitor.isDragging()})}));\n  return <div ref={node => {drag(node);}} style={{opacity: isDragging ? 0.5 : 1}}>Drag me</div>;\n}\nexport default function App() {\n  return <DndProvider backend={HTML5Backend}><Box /></DndProvider>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Repository stars, react-dnd",
      "display": "21.6K",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Drop targets, react-dnd",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Keyboard drag input, react-dnd",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Primary interface, react-dnd",
      "display": "Typed drag sources, drop targets and monitors with configurable backend",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Keyboard boundary, react-dnd",
      "display": "Keyboard/screen-reader behavior needs an additional named backend and often multi-backend composition",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project function, react-dnd",
      "display": "export function useDropHook(\n  el: RefObject<HTMLElement | null>,\n  node: NodeApi<any>,\n): ConnectDropTarget {\n  const tree = useTreeApi();\n  const [_, dropRef] = useDrop<DragItem, DropResult | null, void>(\n    () => ({\n      accept: \"NODE\",\n      canDrop: () => tree.canDrop(),\n      hover: (_item, m) => {\n        const offset = m.getClientOffset();\n        if (!el.current || !offset) return;\n        const { cursor, drop } = computeDrop({\n          element: el.current,\n          offset: offset,\n          indent: tree.indent,\n          node: node,\n          prevNode: node.prev,\n          nextNode: node.next,\n        });\n        tree.hover(drop, cursor);\n      },\n      drop: (_, m) => {\n        if (!m.canDrop()) return null;\n        tree.drop();\n      },\n    }),\n    [node, el.current, tree.props],\n  );\n\n  return dropRef;\n}\n",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project source file, react-dnd",
      "display": "modules/react-arborist/src/dnd/drop-hook.ts",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project full_name, react-dnd",
      "display": "jameskerr/react-arborist",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project stargazers_count, react-dnd",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Library name, react-grid-layout",
      "display": "react-grid-layout",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Monthly downloads, react-grid-layout",
      "display": "23.0M",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "License, react-grid-layout",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Package release, react-grid-layout",
      "display": "2.3.0",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Package release date, react-grid-layout",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Install, react-grid-layout",
      "display": "npm install react-grid-layout@2.3.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Quickstart, react-grid-layout",
      "display": "import React from \"react\";\nimport GridLayout, { useContainerWidth } from \"react-grid-layout\";\nimport \"react-grid-layout/css/styles.css\";\nimport \"react-resizable/css/styles.css\";\n\nexport default function App() {\n  const { width, containerRef, mounted } = useContainerWidth();\n  const layout = [{ i: \"a\", x: 0, y: 0, w: 2, h: 2 }];\n  return (\n    <div ref={containerRef}>\n      {mounted && <GridLayout width={width} layout={layout} gridConfig={{ cols: 12, rowHeight: 30 }}>\n        <div key=\"a\">Drag or resize me</div>\n      </GridLayout>}\n    </div>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Official description, react-grid-layout",
      "display": "A draggable and resizable grid layout with responsive breakpoints, for React.",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Quickstart source file, react-grid-layout",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Repository stars, react-grid-layout",
      "display": "22.5K",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Drop targets, react-grid-layout",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Keyboard drag input, react-grid-layout",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Primary interface, react-grid-layout",
      "display": "Responsive draggable/resizable grid with layout geometry and compaction",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Migration boundary, react-grid-layout",
      "display": "v2 requires width and grouped configuration; explicit legacy import is the v1 migration path",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Measurement boundary, react-grid-layout",
      "display": "useContainerWidth observes width; initialWidth defaults1280 before measurement",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project function, react-grid-layout",
      "display": "export const DashBoard = ({ children, ...props }: DashBoardProps) => {\n  const { width, containerRef } = useContainerWidth();\n  return (\n    <div ref={containerRef}>\n      <Responsive\n        width={width}\n        breakpoints={{ sm: screenPixels.sm, xxs: 0 }}\n        cols={{ sm: DASH_BOARD_WIDTH, xxs: 1 }}\n        className=\"[&>.react-grid-item.react-grid-placeholder]:bg-primary\"\n        // react-grid-layout 2 는 drag/resize 설정을 개별 prop 이 아니라 설정 객체로 받는다.\n        // (`isResizable` → `resizeConfig.enabled`, `draggableHandle` → `dragConfig.handle`)\n        resizeConfig={{ enabled: true }}\n        dragConfig={{\n          handle: `.${DRAGGABLE_HANDLE_CLASS}`,\n          cancel: `.${DRAGGABLE_CANCEL_CLASS}`,\n        }}\n        {...props}\n      >\n        {children}\n      </Responsive>\n    </div>\n  );\n};\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project source file, react-grid-layout",
      "display": "web-frontend/src/main/v3/packages/ui/src/components/Dashboard/DashBoard.tsx",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project full_name, react-grid-layout",
      "display": "pinpoint-apm/pinpoint",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project stargazers_count, react-grid-layout",
      "display": "13.9K",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, @hello-pangea/dnd",
      "display": "@hello-pangea/dnd",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, @hello-pangea/dnd",
      "display": "20.2M",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, @hello-pangea/dnd",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, @hello-pangea/dnd",
      "display": "18.0.1",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, @hello-pangea/dnd",
      "display": "Feb 2025",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, @hello-pangea/dnd",
      "display": "npm install @hello-pangea/dnd@18.0.1",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, @hello-pangea/dnd",
      "display": "import React from 'react';\nimport {DragDropContext, Droppable, Draggable} from '@hello-pangea/dnd';\nexport default function App() {\n  return (\n    <DragDropContext onDragEnd={() => {}}>\n      <Droppable droppableId=\"list\">\n        {provided => (\n          <div ref={provided.innerRef} {...provided.droppableProps}>\n            <Draggable draggableId=\"item\" index={0}>\n              {provided => <div ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps}>Drag me</div>}\n            </Draggable>\n            {provided.placeholder}\n          </div>\n        )}\n      </Droppable>\n    </DragDropContext>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Official description, @hello-pangea/dnd",
      "display": "Beautiful and accessible drag and drop for lists with React",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Quickstart source file, @hello-pangea/dnd",
      "display": "drag-drop-context.md",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Repository stars, @hello-pangea/dnd",
      "display": "4.1K",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Drop targets, @hello-pangea/dnd",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Keyboard drag input, @hello-pangea/dnd",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Primary interface, @hello-pangea/dnd",
      "display": "Accessible list reordering via context/droppable/draggable render props",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Geometry boundary, @hello-pangea/dnd",
      "display": "List-oriented interface rather than an automatic two-dimensional grid layout system",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, @hello-pangea/dnd",
      "display": "function DraggableList<T>({\n  children,\n  list,\n  style,\n  listStyle,\n  listProps,\n  itemKey,\n  droppableProps,\n  onDragStart,\n  onUpdate,\n  onDragEnd\n}: Props<T>) {\n  const _onDragEnd = (result: DropResult, provided: ResponderProvided) => {\n    onDragEnd?.(result, provided)\n    if (result.destination) {\n      const sourceIndex = result.source.index\n      const destIndex = result.destination.index\n      if (sourceIndex !== destIndex) {\n        const reorderAgents = droppableReorder(list, sourceIndex, destIndex)\n        onUpdate(reorderAgents)\n      }\n    }\n  }\n\n  const getId = useCallback(\n    (item: T) => {\n      if (typeof itemKey === 'function') return itemKey(item)\n      if (itemKey) return item[itemKey] as Key\n      if (typeof item === 'string') return item\n      if (item && typeof item === 'object' && 'id' in item) return item.id as Key\n      return undefined\n    },\n    [itemKey]\n  )\n\n  return (\n    <DragDropContext onDragStart={onDragStart} onDragEnd={_onDragEnd}>\n      <Droppable droppableId=\"droppable\" {...droppableProps}>\n        {(provided) => (\n          <div {...provided.droppableProps} ref={provided.innerRef} style={style}>\n            <div {...listProps} className=\"draggable-list-container\">\n              {list.map((item, index) => {\n                const draggableId = String(getId(item) ?? index)\n                return (\n                  <Draggable key={`draggable_${draggableId}`} draggableId={draggableId} index={index}>\n                    {(provided) => (\n                      <div\n                        ref={provided.innerRef}\n                        {...provided.draggableProps}\n                        {...provided.dragHandleProps}\n                        style={{\n                          ...listStyle,\n                          ...provided.draggableProps.style,\n                          marginBottom: 8\n                        }}>\n                        {children(item, index)}\n                      </div>\n                    )}\n                  </Draggable>\n                )\n              })}\n            </div>\n            {provided.placeholder}\n          </div>\n        )}\n      </Droppable>\n    </DragDropContext>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, @hello-pangea/dnd",
      "display": "packages/ui/src/components/composites/draggable-list/list.tsx",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, @hello-pangea/dnd",
      "display": "CherryHQ/cherry-studio",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, @hello-pangea/dnd",
      "display": "53.7K",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, @dnd-kit/react",
      "display": "@dnd-kit/react",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, @dnd-kit/react",
      "display": "10.8M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, @dnd-kit/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, @dnd-kit/react",
      "display": "0.5.3",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, @dnd-kit/react",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, @dnd-kit/react",
      "display": "npm install @dnd-kit/react@0.5.3",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, @dnd-kit/react",
      "display": "import React from \"react\";\nimport { DragDropProvider, useDraggable } from \"@dnd-kit/react\";\n\nfunction Item() {\n  const { ref } = useDraggable({ id: \"item\" });\n  return <button ref={ref}>Drag me</button>;\n}\n\nexport default function App() {\n  return <DragDropProvider><Item /></DragDropProvider>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, @dnd-kit/react",
      "display": "Stable release",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, @dnd-kit/react",
      "display": "README.md; index.d.ts",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, @dnd-kit/react",
      "display": "17.8K",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Drop targets, @dnd-kit/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Keyboard drag input, @dnd-kit/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Primary interface, @dnd-kit/react",
      "display": "New React adapter with DragDropProvider and optional sortable subpath",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Generation boundary, @dnd-kit/react",
      "display": "New operation source/target events and ref-based hooks; not legacy DndContext/active-over imports",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Runtime/API boundary, @dnd-kit/react",
      "display": "isSortable narrows to SortableDraggable with sortable index and initialIndex",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project function, @dnd-kit/react",
      "display": "export const ConnectionColumnManager = ({\n  open,\n  columns,\n  onClose,\n  onOrderChange,\n  onReset,\n}: Props) => {\n  const { t } = useTranslation()\n\n  const visibleCount = useMemo(\n    () => columns.filter((column) => column.visible).length,\n    [columns],\n  )\n\n  const handleDragEnd = useCallback(\n    (event: DragEndEvent) => {\n      const { operation, canceled } = event\n      const { source, target } = operation\n      if (canceled || !target || !isSortable(source)) return\n\n      const order = columns.map((column) => column.id)\n      const { index: newIndex, initialIndex: oldIndex } = source.sortable\n      if (\n        oldIndex < 0 ||\n        newIndex < 0 ||\n        oldIndex >= order.length ||\n        newIndex >= order.length ||\n        oldIndex === newIndex\n      ) {\n        return\n      }\n\n      onOrderChange(arrayMove(order, oldIndex, newIndex))\n    },\n    [columns, onOrderChange],\n  )\n\n  return (\n    <Dialog open={open} onClose={onClose} maxWidth=\"xs\" fullWidth>\n      <DialogTitle>\n        {t('connections.components.columnManager.title')}\n      </DialogTitle>\n      <DialogContent sx={{ pt: 1 }}>\n        <DragDropProvider\n          sensors={[columnPointerSensor]}\n          onDragEnd={handleDragEnd}\n        >\n          <List\n            dense\n            disablePadding\n            sx={{ display: 'flex', flexDirection: 'column', gap: 1 }}\n          >\n            {columns.map((column, index) => (\n              <SortableColumnItem\n                key={column.id}\n                id={column.id}\n                index={index}\n                column={column}\n                dragHandleLabel={t(\n                  'connections.components.columnManager.dragHandle',\n                )}\n                disableToggle={column.visible && visibleCount <= 1}\n              />\n            ))}\n          </List>\n        </DragDropProvider>\n      </DialogContent>\n      <DialogActions sx={{ px: 3, pb: 2 }}>\n        <Button variant=\"text\" onClick={onReset}>\n          {t('shared.actions.resetToDefault')}\n        </Button>\n        <Button variant=\"contained\" onClick={onClose}>\n          {t('shared.actions.close')}\n        </Button>\n      </DialogActions>\n    </Dialog>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project source file, @dnd-kit/react",
      "display": "src/components/connection/connection-column-manager.tsx",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project full_name, @dnd-kit/react",
      "display": "clash-verge-rev/clash-verge-rev",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project stargazers_count, @dnd-kit/react",
      "display": "159.3K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React drag and drop libraries dnd-kit Sortable React DnD React Draggable react-dropzone code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
