1.0.2 • Published 5 months ago

react-rough-dnd v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

react-rough-dnd

The simple and easy react drag and drop library

Install

npm install react-rough-dnd

Usage

import React, { FC } from "react";
import { DnD } from "react-rough-dnd";

const Home: FC = () => {
  return (
    <main>
      <DnD.Container>
          <div>Item 1</div>
          <div>Item 2</div>
          <div>Item 3</div>
          <div>Item 4</div>          
      </DnD.Container>
    </main>
  );
};

export default Home;

Props

nametype
draggableboolean , undefined
onDragAndDrop(dragIndex: number, dropIndex: number) => void
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago