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-beautiful-dragify

v1.5.0

Published

React drag and drop library alternatie of react-beautiful-dnd

Readme

react-beautiful-dragify

A powerful, flexible, and accessible drag and drop library for React applications, alterntive of react-beautiful-dnd.

Features

Core Features

  • Drag and Drop between lists
  • Vertical and horizontal dragging
  • Touch device support
  • Screen reader accessibility
  • RTL support
  • Auto-scrolling
  • Customizable animations

🛠️ Developer Experience

  • TypeScript support
  • Modular architecture
  • Comprehensive documentation
  • Easy-to-use hooks API
  • Zero external dependencies
  • Small bundle size

🎨 Customization

  • Custom drag handles
  • Flexible styling options
  • Customizable animations
  • Conditional dragging/dropping
  • Custom drag previews

Live Demo

Try out react-beautiful-dragify in our interactive demo:

Edit react-beautiful-dragify-demo

Installation

npm install react-beautiful-dragify
# or
yarn add react-beautiful-dragify

Basic Usage

import { DragifyProvider, useDraggable, useDroppable } from 'react-beautiful-dragify';

// 1. Wrap your app with DragifyProvider
function App() {
  const handleDragEnd = (result) => {
    const { source, destination } = result;
    if (!destination) return;

    // Update your state here
    const items = Array.from(yourItems);
    const [removed] = items.splice(source.index, 1);
    items.splice(destination.index, 0, removed);
    setYourItems(items);
  };

  return (
    <DragifyProvider onDragEnd={handleDragEnd}>
      <YourDraggableList />
    </DragifyProvider>
  );
}

// 2. Create draggable items
function DraggableItem({ id, index, children }) {
  const { draggableProps, dragHandleProps } = useDraggable({
    id,
    type: 'item',
    index,
    isDragDisabled: false, // Optional
    data: {
      /* your custom data */
    }, // Optional
  });

  return (
    <div {...draggableProps}>
      <div {...dragHandleProps}>☰</div>
      {children}
    </div>
  );
}

// 3. Create droppable containers
function DroppableList({ id }) {
  const { droppableProps } = useDroppable({
    id,
    type: 'item',
    direction: 'vertical',
    isDropDisabled: false, // Optional
    isCombineEnabled: false, // Optional
    ignoreContainerClipping: false, // Optional
  });

  return <div {...droppableProps}>{/* Your draggable items */}</div>;
}

Advanced Features

Keyboard Navigation

  • Space/Enter: Start dragging
  • Arrow keys: Move item
  • Escape: Cancel drag
  • Tab: Navigate between draggable items

Touch Support

  • Long press to start dragging
  • Auto-scrolling on touch devices
  • Touch-friendly drag handles

Accessibility

  • ARIA attributes for screen readers
  • Role announcements during drag operations
  • Keyboard navigation support
  • High-contrast focus indicators

Performance

  • Optimized re-renders
  • Efficient DOM updates
  • Smooth animations
  • Minimal layout shifts
  • Well maintained

API Reference

DragifyProvider Props

| Prop | Type | Description | | ----------- | ---------------------------- | --------------------------------------------- | | onDragEnd | (result: DropResult) => void | Required. Called when a drag operation ends | | onDragStart | (start: DragStart) => void | Optional. Called when a drag operation starts | | children | ReactNode | Your app content |

useDraggable Options

| Option | Type | Description | | -------------- | ------- | ----------------------------------- | | id | string | Unique identifier for the draggable | | type | string | Type identifier for drag operations | | index | number | Position in the list | | isDragDisabled | boolean | Disable dragging for this item | | data | any | Custom data to be passed |

useDroppable Options

| Option | Type | Description | | ---------------- | -------------------------- | ----------------------------------- | | id | string | Unique identifier for the droppable | | type | string | Accepted draggable types | | direction | 'vertical' | 'horizontal' | List orientation | | isDropDisabled | boolean | Disable dropping in this container | | isCombineEnabled | boolean | Enable item combining |

License

MIT