npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-drag-drop-kanban

v1.0.0

Published

React 18/19 drag and drop component with native HTML5 APIs - multiple columns support

Readme

react-drag-drop-kanban | A React component by Bibin Antony

A highly customizable, multiple-column drag-and-drop board component built with the native HTML5 drag-and-drop API.

Key Features:

  • Uses native HTML5 drag-and-drop—fully compatible with React 18/19 and StrictMode!
  • Board Dragging: Drag and reorder entire columns seamlessly!
  • Custom Rendering: Render absolutely anything inside the drag items using the renderItem prop.

Just send a JSON array to create draggable and droppable columns. The component will dynamically render the columns based on the provided data structure.

Demo

Live demo

Installation

npm install react-drag-drop-kanban

* Requires react and react-dom version 18+ or 19+ as peer dependencies

Compatible with:

  • ✅ React 18.0.0+
  • ✅ React 19.0.0+
  • ✅ Works with both React 18 and React 19 APIs
  • ✅ StrictMode compatible in both versions

Features

Zero external drag-drop dependencies - Uses native HTML5 APIs
React 18 & 19 compatible - Works seamlessly with modern React
Board Dragging - Reorder entire boards/columns by dragging them
Custom Rendering - Full control over item rendering with renderItem
Multiple item selection - Select and drag multiple items at once
Custom drag preview - Beautiful SVG badge shows item count when dragging multiple items
Rich animations - Smooth hover effects, pulse animations, and visual feedback
Cross-column dragging - Move items between different columns
Lightweight - No heavy dependencies

Visual Features

🎨 Custom Multi-Drag Badge - When dragging multiple items, see a stunning SVG badge with:

  • Stacked cards icon
  • Item count in a sleek badge
  • Beautiful shadow effects

🎯 Smart Hover Effects - Hover animations work on both selected and unselected items

Multi-Drag Animation - All selected items pulse during drag operations

🌈 Visual Feedback - Clear indicators for selected items, drop zones (for both items and boards), and drag states


Usage

import DragDropComponent from "react-drag-drop-kanban";

const data = [
  {
    id: "1",
    name: "Todo",
    data: [
      {
        id: "1",
        title: "Design System",
        description: "Create component library",
        priority: "high",
        assignee: "John Doe",
      },
      {
        id: "2",
        title: "API Integration",
        description: "Connect backend endpoints",
        priority: "medium",
        assignee: "Jane Smith",
      }
    ],
  },
  {
    id: "2",
    name: "In Progress",
    data: [
      {
        id: "3",
        title: "Authentication",
        description: "Implement OAuth2",
        priority: "high",
        assignee: "Alice Brown",
      }
    ],
  }
];

// Define your custom render function to render anything you want!
const renderTaskCard = (item, index, listId) => (
  <div style={{ padding: "16px", backgroundColor: "white", borderRadius: "8px", border: "1px solid #e0e0e0" }}>
    <h3>{item.title}</h3>
    <p>{item.description}</p>
    <div style={{ display: "flex", justifyContent: "space-between" }}>
      <span>👤 {item.assignee}</span>
      <span style={{ color: item.priority === "high" ? "#ff4757" : "#2ed573" }}>
        {item.priority}
      </span>
    </div>
  </div>
);

const App = () => (
  <DragDropComponent
    data={data}
    renderItem={renderTaskCard}
    onChange={(newData) => console.log(newData)}
    width="100%"
    height="600px"
    multiple={true} // Enable multi-drag
    boardDraggable={true} // Enable dragging entire columns
    title={true}
  />
);

export default App;

You can render:

  • 📋 Kanban cards with rich content
  • ✅ Task items with checkboxes and metadata
  • 📁 File manager items with icons
  • 🛒 Shopping cart products with images
  • 👥 User cards with avatars
  • Anything you can imagine!

Props

| Prop Name | Type | Default Value | Description | | ---------------- | ---------------------------------------- | ------------- | -------------------------------------------------------------------------------------------- | | data | array | required | Array of lists with items to display | | onChange | function | required | Callback function that receives updated data when items or boards are moved | | width | number/string | "100%" | Width of the component | | height | number/string | "100%" | Height of the component | | renderItem | (item, index, listId) => ReactNode | optional | Custom render function for each item - render anything you want! | | boardDraggable | boolean | false | Enable dragging and reordering entire columns/boards | | multiple | boolean | false | Enable multi-select mode (select and drag multiple items at once using checkboxes) | | title | boolean | false | Show list titles | | centerTitle | boolean | false | Center-align list titles | | draggerImg | boolean | false | Show drag handle image on items (only used when fallback rendering is active) | | children | ReactNode | optional | Legacy prop - use renderItem instead for custom rendering |


Bibin Antony