typesafe-react-drag-and-drop
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.6 • Public • Published

    typesafe-react-drag-and-drop

    NPM

    import { dragAndDrop } from "typesafe-react-drag-and-drop";
    
    const nameDragAndDrop = dragAndDrop<string>("name");
    
    <nameDragAndDrop.Droppable onDrop={(name: string) => null}>
        Hello
    </nameDragAndDrop.Droppable>
    
    <nameDragAndDrop.Draggable data="a name">
        Drag me
    </nameDragAndDrop.Draggable>
    

    Install

    npm i typesafe-react-drag-and-drop

    DownloadsWeekly Downloads

    6

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    5.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar