# React drag and drop libraries

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.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [@dnd-kit/core](#dnd-kit-core) | 163.1M | 17.8K | Dec 2024 | MIT |
| [react-dropzone](#react-dropzone) | 75.9M | 11.0K | Nov 2026 | MIT |
| [react-draggable](#react-draggable) | 42.4M | 9.3K | Sep 2026 | MIT |
| [@use-gesture/react](#use-gesture-react) | 39.1M | 9.6K | Mar 2024 | MIT |
| [react-dnd](#react-dnd) | 26.4M | 21.6K | Apr 2022 | MIT |
| [react-grid-layout](#react-grid-layout) | 23.0M | 22.5K | Oct 2026 | MIT |
| [@hello-pangea/dnd](#hello-pangea-dnd) | 20.2M | 4.1K | Feb 2025 | Apache-2.0 |
| [@dnd-kit/react](#dnd-kit-react) | 10.8M | 17.8K | Oct 2026 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[@dnd-kit/core](#dnd-kit-core) has the most monthly downloads in this comparison, at 163.1M.

## Capabilities

| Library | Drop targets | Keyboard drag input |
| --- | --- | --- |
| [@dnd-kit/core](#dnd-kit-core) | Yes | Yes |
| [react-dropzone](#react-dropzone) | Yes | No |
| [react-draggable](#react-draggable) | No | No |
| [@use-gesture/react](#use-gesture-react) | No | Yes |
| [react-dnd](#react-dnd) | Yes | Via plugin |
| [react-grid-layout](#react-grid-layout) | Yes | No |
| [@hello-pangea/dnd](#hello-pangea-dnd) | Yes | Yes |
| [@dnd-kit/react](#dnd-kit-react) | Yes | Yes |

## Libraries

### @dnd-kit/core

[GitHub](https://github.com/clauderic/dnd-kit) · [npm](https://www.npmjs.com/package/@dnd-kit/core) · [Docs](https://github.com/clauderic/dnd-kit#readme)

@dnd-kit/core is the original React package of dnd kit, a drag and drop toolkit with no outside dependencies. The `useDraggable` and `useDroppable` hooks turn existing elements into draggable items and drop areas, and a `DndContext` provider reports drag events and holds the sensors for pointer, mouse, touch, and keyboard input. The `@dnd-kit/sortable` preset, built on the core, handles sortable lists and grids. The dnd kit quickstart now calls this package legacy and starts new projects on `@dnd-kit/react`.

- Downloads / mo: 163.1M
- Stars: 17.8K
- Last release: 6.3.1
- License: MIT
- Capabilities: [From the @dnd-kit/core docs](https://github.com/clauderic/dnd-kit#readme)

**Strengths**

- **Keyboard and screen readers.** Keyboard sensors, default `aria` attributes, and live region announcements are built in.
- **Sortable preset.** `@dnd-kit/sortable` adds sortable lists, grids, and multiple containers on top of the core.

**Watch out for**

- **Legacy package.** The dnd kit docs mark `@dnd-kit/core` as legacy and give a migration guide to `@dnd-kit/react`.
- **No desktop file drops.** The core doesn't handle dragging from the desktop or between windows.

```sh
npm install @dnd-kit/core@6.3.1
```

**ant-design/ant-design** (100.3K stars)

[ant-design/ant-design](https://github.com/ant-design/ant-design) 

```jsx
const App: React.FC = () => {
  const [dataSource, setDataSource] = React.useState<DataType[]>(initialData);

  const onDragEnd = ({ active, over }: DragEndEvent) => {
    if (active.id !== over?.id) {
      setDataSource((prevState) => {
        const activeIndex = prevState.findIndex((record) => record.key === active?.id);
        const overIndex = prevState.findIndex((record) => record.key === over?.id);
        return arrayMove(prevState, activeIndex, overIndex);
      });
    }
  };

  return (
    <DndContext modifiers={[restrictToVerticalAxis]} onDragEnd={onDragEnd}>
      <SortableContext items={dataSource.map((i) => i.key)} strategy={verticalListSortingStrategy}>
        <Table<DataType>
          rowKey="key"
          components={{ body: { row: Row } }}
          columns={columns}
          dataSource={dataSource}
        />
      </SortableContext>
    </DndContext>
  );
};

```

[components/table/demo/drag-sorting-handler.tsx](https://github.com/ant-design/ant-design/blob/b8db9c5193b8903eb846b46409eaf84f1aebeb5d/components/table/demo/drag-sorting-handler.tsx#L92-L117) · [More projects using @dnd-kit/core →](https://dashboard.exa.ai/playground/search?q=%40dnd-kit/core%20GitHub%20projects)

**Quickstart**

```jsx
import React from 'react';
import {DndContext, useDraggable} from '@dnd-kit/core';
function Draggable() {
  const {attributes, listeners, setNodeRef, transform} = useDraggable({id: 'draggable'});
  const style = transform ? {transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`} : undefined;
  return <button ref={setNodeRef} style={style} {...listeners} {...attributes}>Drag me</button>;
}
export default function App() {
  return <DndContext><Draggable /></DndContext>;
}

```

From [getting-started.md](https://docs.dndkit.com/introduction/getting-started)

### react-dropzone

[GitHub](https://github.com/react-dropzone/react-dropzone) · [npm](https://www.npmjs.com/package/react-dropzone)

react-dropzone is a React hook, `useDropzone`, that turns an element into a drop area for files dragged from the desktop and connects it to a hidden file input. `getRootProps` and `getInputProps` attach to the drop area and the input, `onDrop` receives the accepted files, and `isDragActive` reports when files hover over the area. A `Dropzone` component wraps the same hook. Sending the files to a server is left to another client.

- Downloads / mo: 75.9M
- Stars: 11.0K
- Last release: 20.2.1
- License: MIT
- Capabilities: [From the react-dropzone docs](https://github.com/react-dropzone/react-dropzone)

**Strengths**

- **Creates file drop areas.** Connect a root element and file input with the returned prop getters.
- **Opens the picker from keyboard.** Press Enter or Space when the dropzone root has focus.

**Watch out for**

- **Uploads need a separate client.** The hook hands over `File` objects, and another library or `fetch` uploads them.

```sh
npm install react-dropzone@20.2.1
```

**supabase/supabase** (115.0K stars)

[supabase/supabase](https://github.com/supabase/supabase) 

```tsx
const Dropzone = ({
  className,
  children,
  getRootProps,
  getInputProps,
  ...restProps
}: PropsWithChildren<DropzoneProps>) => {
  const isSuccess = restProps.isSuccess
  const isActive = restProps.isDragActive
  const isInvalid =
    (restProps.isDragActive && restProps.isDragReject) ||
    (restProps.errors.length > 0 && !restProps.isSuccess) ||
    restProps.files.some((file) => file.errors.length !== 0)

  return (
    <DropzoneContext.Provider value={{ ...restProps }}>
      <div
        {...getRootProps({
          className: cn(
            'border-2 border-gray-300 rounded-lg p-6 text-center bg-card transition-colors duration-300 text-foreground',
            className,
            isSuccess ? 'border-solid' : 'border-dashed',
            isActive && 'border-primary bg-primary/10',
            isInvalid && 'border-destructive bg-destructive/10'
          ),
        })}
      >
        <input {...getInputProps()} />
        {children}
      </div>
    </DropzoneContext.Provider>
  )
}

```

[apps/ui-library/registry/default/blocks/dropzone/components/dropzone.tsx](https://github.com/supabase/supabase/blob/a66aa7417a73bad89d4c3340d6590d7ca9f01833/apps/ui-library/registry/default/blocks/dropzone/components/dropzone.tsx#L32-L64) · [More projects using react-dropzone →](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)

**Quickstart**

```tsx
import React from "react";
import { useDropzone } from "react-dropzone";

export default function App() {
  const { getRootProps, getInputProps } = useDropzone({
    onDrop: files => console.log(files),
  });
  return (
    <div {...getRootProps()}>
      <input {...getInputProps()} />
      Drop or choose files
    </div>
  );
}

```

From [README.md](https://registry.npmjs.org/react-dropzone/latest)

### react-draggable

[GitHub](https://github.com/react-grid-layout/react-draggable) · [npm](https://www.npmjs.com/package/react-draggable)

react-draggable makes one element draggable by wrapping it in a `Draggable` component, which moves the element with a CSS transform and adds no wrapper element. Props limit movement to one `axis`, keep it inside `bounds`, or restrict dragging to a `handle`, and `onStart`, `onDrag`, and `onStop` report each move. `DraggableCore` reports the same drag events without moving anything. Passing a `nodeRef` that points to the child's DOM node avoids deprecation warnings in React Strict Mode.

- Downloads / mo: 42.4M
- Stars: 9.3K
- Last release: 4.7.2
- License: MIT
- Capabilities: [From the react-draggable docs](https://github.com/react-grid-layout/react-draggable)

**Strengths**

- **Moves an existing DOM element.** Wrap the element without adding a new DOM wrapper.
- **Offers controlled positions.** Set position when application state should choose the coordinates.

**Watch out for**

- **Overwrites the child's transform.** `Draggable` sets the child's CSS `transform`. An inner wrapper element keeps an existing transform.
- **Custom children forward props.** A custom child component passes the ref and event props through to its DOM element.
- **No drop targets.** The library moves elements; what happens where they land is up to the app.

```sh
npm install react-draggable@4.7.2
```

**ant-design/ant-design** (100.3K stars)

[ant-design/ant-design](https://github.com/ant-design/ant-design) 

```tsx
(modal) => (
          <Draggable
            bounds={bounds}
            nodeRef={draggleRef}
            handle={dragHandle}
            onStart={(event, uiData) => onStart(event, uiData)}
          >
            <div ref={draggleRef}>{modal}</div>
          </Draggable>
        )

```

[components/modal/demo/modal-render.tsx](https://github.com/ant-design/ant-design/blob/b8db9c5193b8903eb846b46409eaf84f1aebeb5d/components/modal/demo/modal-render.tsx#L50-L59) · [More projects using react-draggable →](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)

**Quickstart**

```tsx
import React, { useRef } from 'react';
import Draggable from 'react-draggable';
export default function App() {
  const nodeRef = useRef(null);
  return (
    <Draggable nodeRef={nodeRef}>
      <div ref={nodeRef}>Drag me!</div>
    </Draggable>
  );
}

```

From [README.md](https://cdn.jsdelivr.net/npm/react-draggable@4.7.2/README.md)

### @use-gesture/react

[GitHub](https://github.com/pmndrs/use-gesture) · [npm](https://www.npmjs.com/package/@use-gesture/react) · [Docs](https://use-gesture.netlify.app)

@use-gesture/react binds mouse and touch gestures, such as drag, pinch, wheel, scroll, move, and hover, to any element through hooks like `useDrag`. Each handler receives the gesture's state, such as `down` and `movement`, 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 `@use-gesture/vanilla`.

- Downloads / mo: 39.1M
- Stars: 9.6K
- Last release: 10.3.1
- License: MIT
- Capabilities: [From the @use-gesture/react docs](https://use-gesture.netlify.app)

**Strengths**

- **Many gestures.** Drag, pinch, wheel, scroll, move, and hover share one hook API.
- **Any animation library.** Gesture data can drive react-spring or any other animation code.

**Watch out for**

- **No drop targets.** The library reports pointer movement; drop areas and sorting are written by the app.
- **Touch needs touch-action.** Draggable elements set `touchAction: 'none'` so the page doesn't scroll during a drag.

```sh
npm install @use-gesture/react@10.3.1
```

**pmndrs/react-spring** (29.3K stars)

[pmndrs/react-spring](https://github.com/pmndrs/react-spring) 

```jsx
const Slider = ({ children }: { children: ReactNode }) => {
  const [{ x, bg, scale, justifySelf }, api] = useSpring(() => ({
    x: 0,
    scale: 1,
    ...left,
  }))
  const bind = useDrag(({ active, movement: [x] }) =>
    api.start({
      x: active ? x : 0,
      scale: active ? 1.1 : 1,
      ...(x < 0 ? left : right),
      immediate: name => active && name === 'x',
    })
  )

  const avSize = x.to({
    map: Math.abs,
    range: [50, 300],
    output: [0.5, 1],
    extrapolate: 'clamp',
  })

  return (
    <animated.div
      {...bind()}
      className={styles.item}
      style={{ background: bg }}
    >
      <animated.div
        className={styles.av}
        style={{ scale: avSize, justifySelf }}
      />
      <animated.div className={styles.fg} style={{ x, scale }}>
        {children}
      </animated.div>
    </animated.div>
  )
}

```

[demo/src/sandboxes/slide/src/App.tsx](https://github.com/pmndrs/react-spring/blob/83e476061290532ab517c4d4dfd60de21589e78e/demo/src/sandboxes/slide/src/App.tsx#L16-L53) · [More projects using @use-gesture/react →](https://dashboard.exa.ai/playground/search?q=%40use-gesture/react%20GitHub%20projects)

**Quickstart**

```jsx
import React, { useState } from "react";
import { useDrag } from "@use-gesture/react";

export default function App() {
  const [[x, y], setPosition] = useState([0, 0]);
  const bind = useDrag(({ down, movement: [mx, my] }) => {
    setPosition(down ? [mx, my] : [0, 0]);
  });
  return <div {...bind()} style={{ transform: `translate(${x}px, ${y}px)`, touchAction: "none" }}>Drag me</div>;
}

```

From [README.md](https://registry.npmjs.org/@use-gesture/react/latest)

### react-dnd

[GitHub](https://github.com/react-dnd/react-dnd) · [npm](https://www.npmjs.com/package/react-dnd) · [Docs](https://github.com/react-dnd/react-dnd#readme)

React DnD builds drag and drop from typed items. `useDrag` declares a drag source with an item type, and `useDrop` declares a target that accepts certain types and decides what a drop does. A backend translates browser events, and the app wraps itself in `DndProvider` 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 `NativeTypes.FILE`.

- Downloads / mo: 26.4M
- Stars: 21.6K
- Last release: 16.0.1
- License: MIT
- Capabilities: [From the react-dnd docs](https://github.com/react-dnd/react-dnd#readme)

**Strengths**

- **Supports custom drop-target types.** Choose which item types each useDrop target accepts.
- **Accepts native files through HTML5.** Use NativeTypes.FILE with the HTML5 backend for dropped files.

**Watch out for**

- **Touch needs another backend.** The HTML backend ignores touch events, and the touch backend handles phones and tablets.

```sh
npm install react-dnd@16.0.1 react-dnd-html5-backend@16.0.1
```

**jameskerr/react-arborist** (3.7K stars)

[jameskerr/react-arborist](https://github.com/jameskerr/react-arborist) 

```tsx
export function useDropHook(
  el: RefObject<HTMLElement | null>,
  node: NodeApi<any>,
): ConnectDropTarget {
  const tree = useTreeApi();
  const [_, dropRef] = useDrop<DragItem, DropResult | null, void>(
    () => ({
      accept: "NODE",
      canDrop: () => tree.canDrop(),
      hover: (_item, m) => {
        const offset = m.getClientOffset();
        if (!el.current || !offset) return;
        const { cursor, drop } = computeDrop({
          element: el.current,
          offset: offset,
          indent: tree.indent,
          node: node,
          prevNode: node.prev,
          nextNode: node.next,
        });
        tree.hover(drop, cursor);
      },
      drop: (_, m) => {
        if (!m.canDrop()) return null;
        tree.drop();
      },
    }),
    [node, el.current, tree.props],
  );

  return dropRef;
}

```

[modules/react-arborist/src/dnd/drop-hook.ts](https://github.com/jameskerr/react-arborist/blob/08e301db4d2fbb75ca1e5bfd8edae29cd6cfb5bd/modules/react-arborist/src/dnd/drop-hook.ts#L13-L44) · [More projects using react-dnd →](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)

**Quickstart**

```tsx
import React from 'react';
import {DndProvider, useDrag} from 'react-dnd';
import {HTML5Backend} from 'react-dnd-html5-backend';
function Box() {
  const [{isDragging}, drag] = useDrag(() => ({type: 'BOX', item: {id: 'box'}, collect: monitor => ({isDragging: monitor.isDragging()})}));
  return <div ref={node => {drag(node);}} style={{opacity: isDragging ? 0.5 : 1}}>Drag me</div>;
}
export default function App() {
  return <DndProvider backend={HTML5Backend}><Box /></DndProvider>;
}

```

From [useDrag.md](https://api.github.com/repos/react-dnd/react-dnd/contents/packages/docsite/markdown/docs/03%20Using%20Hooks/useDrag.md)

### react-grid-layout

[GitHub](https://github.com/react-grid-layout/react-grid-layout) · [npm](https://www.npmjs.com/package/react-grid-layout)

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 `layout` 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 `useContainerWidth`, which measures the container so the grid knows its width.

- Downloads / mo: 23.0M
- Stars: 22.5K
- Last release: 2.3.0
- License: MIT
- Capabilities: [From the react-grid-layout docs](https://github.com/react-grid-layout/react-grid-layout)

**Strengths**

- **Responsive breakpoints.** Each breakpoint gets its own layout, supplied by the app or generated.
- **Resizable items.** Tiles resize from a handle as well as move.

**Watch out for**

- **Needs a container width.** The grid takes its width from `useContainerWidth` or a `width` prop before it renders.
- **Stylesheets imported separately.** The grid and `react-resizable` CSS files are imported next to the component.

```sh
npm install react-grid-layout@2.3.0
```

**pinpoint-apm/pinpoint** (13.9K stars)

[pinpoint-apm/pinpoint](https://github.com/pinpoint-apm/pinpoint) 

```jsx
export const DashBoard = ({ children, ...props }: DashBoardProps) => {
  const { width, containerRef } = useContainerWidth();
  return (
    <div ref={containerRef}>
      <Responsive
        width={width}
        breakpoints={{ sm: screenPixels.sm, xxs: 0 }}
        cols={{ sm: DASH_BOARD_WIDTH, xxs: 1 }}
        className="[&>.react-grid-item.react-grid-placeholder]:bg-primary"
        // react-grid-layout 2 는 drag/resize 설정을 개별 prop 이 아니라 설정 객체로 받는다.
        // (`isResizable` → `resizeConfig.enabled`, `draggableHandle` → `dragConfig.handle`)
        resizeConfig={{ enabled: true }}
        dragConfig={{
          handle: `.${DRAGGABLE_HANDLE_CLASS}`,
          cancel: `.${DRAGGABLE_CANCEL_CLASS}`,
        }}
        {...props}
      >
        {children}
      </Responsive>
    </div>
  );
};

```

[web-frontend/src/main/v3/packages/ui/src/components/Dashboard/DashBoard.tsx](https://github.com/pinpoint-apm/pinpoint/blob/4615bb3ca824ac29dd7b8dcf08dcbfd636612408/web-frontend/src/main/v3/packages/ui/src/components/Dashboard/DashBoard.tsx#L17-L39) · [More projects using react-grid-layout →](https://dashboard.exa.ai/playground/search?q=react-grid-layout%20GitHub%20projects)

**Quickstart**

```jsx
import React from "react";
import GridLayout, { useContainerWidth } from "react-grid-layout";
import "react-grid-layout/css/styles.css";
import "react-resizable/css/styles.css";

export default function App() {
  const { width, containerRef, mounted } = useContainerWidth();
  const layout = [{ i: "a", x: 0, y: 0, w: 2, h: 2 }];
  return (
    <div ref={containerRef}>
      {mounted && <GridLayout width={width} layout={layout} gridConfig={{ cols: 12, rowHeight: 30 }}>
        <div key="a">Drag or resize me</div>
      </GridLayout>}
    </div>
  );
}

```

From [README.md](https://registry.npmjs.org/react-grid-layout/latest)

### @hello-pangea/dnd

[GitHub](https://github.com/hello-pangea/dnd) · [npm](https://www.npmjs.com/package/@hello-pangea/dnd) · [Docs](https://github.com/hello-pangea/dnd#readme)

@hello-pangea/dnd reorders items in vertical and horizontal lists and moves them between lists. A `DragDropContext` wraps the lists and reports the result in `onDragEnd`, each `Droppable` marks a list, and each `Draggable` 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.

- Downloads / mo: 20.2M
- Stars: 4.1K
- Last release: 18.0.1
- License: Apache-2.0
- Capabilities: [From the @hello-pangea/dnd docs](https://github.com/hello-pangea/dnd#readme)

**Strengths**

- **Keyboard and screen readers.** Keyboard dragging and screen reader announcements work without extra setup.
- **No wrapper elements.** Items render without extra wrapper DOM nodes.

**Watch out for**

- **Lists only.** Items move within and between lists; free-form grids take another library.

```sh
npm install @hello-pangea/dnd@18.0.1
```

**CherryHQ/cherry-studio** (53.7K stars)

[CherryHQ/cherry-studio](https://github.com/CherryHQ/cherry-studio) 

```jsx
function DraggableList<T>({
  children,
  list,
  style,
  listStyle,
  listProps,
  itemKey,
  droppableProps,
  onDragStart,
  onUpdate,
  onDragEnd
}: Props<T>) {
  const _onDragEnd = (result: DropResult, provided: ResponderProvided) => {
    onDragEnd?.(result, provided)
    if (result.destination) {
      const sourceIndex = result.source.index
      const destIndex = result.destination.index
      if (sourceIndex !== destIndex) {
        const reorderAgents = droppableReorder(list, sourceIndex, destIndex)
        onUpdate(reorderAgents)
      }
    }
  }

  const getId = useCallback(
    (item: T) => {
      if (typeof itemKey === 'function') return itemKey(item)
      if (itemKey) return item[itemKey] as Key
      if (typeof item === 'string') return item
      if (item && typeof item === 'object' && 'id' in item) return item.id as Key
      return undefined
    },
    [itemKey]
  )

  return (
    <DragDropContext onDragStart={onDragStart} onDragEnd={_onDragEnd}>
      <Droppable droppableId="droppable" {...droppableProps}>
        {(provided) => (
          <div {...provided.droppableProps} ref={provided.innerRef} style={style}>
            <div {...listProps} className="draggable-list-container">
              {list.map((item, index) => {
                const draggableId = String(getId(item) ?? index)
                return (
                  <Draggable key={`draggable_${draggableId}`} draggableId={draggableId} index={index}>
                    {(provided) => (
                      <div
                        ref={provided.innerRef}
                        {...provided.draggableProps}
                        {...provided.dragHandleProps}
                        style={{
                          ...listStyle,
                          ...provided.draggableProps.style,
                          marginBottom: 8
                        }}>
                        {children(item, index)}
                      </div>
                    )}
                  </Draggable>
                )
              })}
            </div>
            {provided.placeholder}
          </div>
        )}
      </Droppable>
    </DragDropContext>
  )
}

```

[packages/ui/src/components/composites/draggable-list/list.tsx](https://github.com/CherryHQ/cherry-studio/blob/f19aa72f969b782ed72f81be80976b237ae26605/packages/ui/src/components/composites/draggable-list/list.tsx#L39-L107) · [More projects using @hello-pangea/dnd →](https://dashboard.exa.ai/playground/search?q=%40hello-pangea/dnd%20GitHub%20projects)

**Quickstart**

```jsx
import React from 'react';
import {DragDropContext, Droppable, Draggable} from '@hello-pangea/dnd';
export default function App() {
  return (
    <DragDropContext onDragEnd={() => {}}>
      <Droppable droppableId="list">
        {provided => (
          <div ref={provided.innerRef} {...provided.droppableProps}>
            <Draggable draggableId="item" index={0}>
              {provided => <div ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps}>Drag me</div>}
            </Draggable>
            {provided.placeholder}
          </div>
        )}
      </Droppable>
    </DragDropContext>
  );
}

```

From [drag-drop-context.md](https://api.github.com/repos/hello-pangea/dnd/contents/docs/api/drag-drop-context.md)

### @dnd-kit/react

[GitHub](https://github.com/clauderic/dnd-kit) · [npm](https://www.npmjs.com/package/@dnd-kit/react) · [Docs](https://github.com/clauderic/dnd-kit#readme)

@dnd-kit/react is the current React package of dnd kit, a thin layer over its framework-independent core. `useDraggable` and `useDroppable` take an `id` and return a `ref` to attach to an element, and a `DragDropProvider` reports drag events such as `onDragEnd`. Sortable lists use `useSortable` from the `@dnd-kit/react/sortable` subpath, with the `move` helper from `@dnd-kit/helpers`.

- Downloads / mo: 10.8M
- Stars: 17.8K
- Last release: 0.5.3
- License: MIT
- Capabilities: [From the @dnd-kit/react docs](https://github.com/clauderic/dnd-kit#readme)

**Strengths**

- **Refs, not spread props.** Each hook returns a `ref` to attach to the element, with no listeners spread onto it.
- **Sortable subpath.** Sortable lists come from `@dnd-kit/react/sortable` in the same package.

**Watch out for**

- **Different API from the core.** Code written for `@dnd-kit/core` changes imports and events, following a migration guide.

```sh
npm install @dnd-kit/react@0.5.3
```

**clash-verge-rev/clash-verge-rev** (159.3K stars)

[clash-verge-rev/clash-verge-rev](https://github.com/clash-verge-rev/clash-verge-rev) 

```jsx
export const ConnectionColumnManager = ({
  open,
  columns,
  onClose,
  onOrderChange,
  onReset,
}: Props) => {
  const { t } = useTranslation()

  const visibleCount = useMemo(
    () => columns.filter((column) => column.visible).length,
    [columns],
  )

  const handleDragEnd = useCallback(
    (event: DragEndEvent) => {
      const { operation, canceled } = event
      const { source, target } = operation
      if (canceled || !target || !isSortable(source)) return

      const order = columns.map((column) => column.id)
      const { index: newIndex, initialIndex: oldIndex } = source.sortable
      if (
        oldIndex < 0 ||
        newIndex < 0 ||
        oldIndex >= order.length ||
        newIndex >= order.length ||
        oldIndex === newIndex
      ) {
        return
      }

      onOrderChange(arrayMove(order, oldIndex, newIndex))
    },
    [columns, onOrderChange],
  )

  return (
    <Dialog open={open} onClose={onClose} maxWidth="xs" fullWidth>
      <DialogTitle>
        {t('connections.components.columnManager.title')}
      </DialogTitle>
      <DialogContent sx={{ pt: 1 }}>
        <DragDropProvider
          sensors={[columnPointerSensor]}
          onDragEnd={handleDragEnd}
        >
          <List
            dense
            disablePadding
            sx={{ display: 'flex', flexDirection: 'column', gap: 1 }}
          >
            {columns.map((column, index) => (
              <SortableColumnItem
                key={column.id}
                id={column.id}
                index={index}
                column={column}
                dragHandleLabel={t(
                  'connections.components.columnManager.dragHandle',
                )}
                disableToggle={column.visible && visibleCount <= 1}
              />
            ))}
          </List>
        </DragDropProvider>
      </DialogContent>
      <DialogActions sx={{ px: 3, pb: 2 }}>
        <Button variant="text" onClick={onReset}>
          {t('shared.actions.resetToDefault')}
        </Button>
        <Button variant="contained" onClick={onClose}>
          {t('shared.actions.close')}
        </Button>
      </DialogActions>
    </Dialog>
  )
}

```

[src/components/connection/connection-column-manager.tsx](https://github.com/clash-verge-rev/clash-verge-rev/blob/3f7af9ab022d04ebc45d96b56b58cd67e90fe90d/src/components/connection/connection-column-manager.tsx#L43-L120) · [More projects using @dnd-kit/react →](https://dashboard.exa.ai/playground/search?q=%40dnd-kit/react%20GitHub%20projects)

**Quickstart**

```jsx
import React from "react";
import { DragDropProvider, useDraggable } from "@dnd-kit/react";

function Item() {
  const { ref } = useDraggable({ id: "item" });
  return <button ref={ref}>Drag me</button>;
}

export default function App() {
  return <DragDropProvider><Item /></DragDropProvider>;
}

```

From [quickstart.md](https://registry.npmjs.org/@dnd-kit/react/latest)

## FAQ

### Which React drag and drop library should I use?

For sortable lists, boards, and custom drop logic, use [dnd kit](#dnd-kit-react). To reorder lists with built-in keyboard and screen reader support, use [@hello-pangea/dnd](#hello-pangea-dnd). For dashboards of resizable tiles, use [react-grid-layout](#react-grid-layout), and for files dragged from the desktop, use [react-dropzone](#react-dropzone).

### dnd kit vs React DnD: which should I use?

dnd kit attaches drag behavior with hooks and ships pointer, touch, and keyboard input in one package. [React DnD](#react-dnd) 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.

### What happened to react-beautiful-dnd?

[@hello-pangea/dnd](#hello-pangea-dnd) continues react-beautiful-dnd under a new package name, with the same `DragDropContext`, `Droppable`, and `Draggable` components.

### How do I build a draggable dashboard grid in React?

[react-grid-layout](#react-grid-layout) places each tile by position and size in a `layout` array, lets tiles be dragged and resized, and supports a separate layout for each responsive breakpoint.

### How do I accept dragged files in React?

[react-dropzone](#react-dropzone) returns `getRootProps` and `getInputProps` from `useDropzone`. The first goes on the drop area and the second on a hidden file input, and `onDrop` receives the files.

### Which React library makes one element draggable?

[react-draggable](#react-draggable) wraps an element in `Draggable` and moves it with a CSS transform. [@use-gesture/react](#use-gesture-react) reports drag movement from a hook and leaves the moving to the app.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best React drag and drop libraries dnd-kit Sortable React DnD React Draggable react-dropzone code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
