react-beautiful-dnd-grid
TypeScript icon, indicating that this package has built-in type declarations

0.1.3-alpha • Public • Published

react-beautiful-dnd-grid

Installation

npm i react-beautiful-dnd-grid --save-dev

Usage

import React from "react";
import { ListManager } from "react-beautiful-dnd-grid";
 
const noop = function() {};
 
const list = [{ id: "0" }, { id: "1" }, { id: "2" }, { id: "3" }, { id: "4" }];
 
const ListElement = props => <div>id: {props.item.id}</div>;
 
const Component = () => (
  <ListManager
    items={list}
    direction="horizontal"
    maxItems={3}
    render={item => <ListElement item={item} />}
    onDragEnd={noop}
  />
);

/react-beautiful-dnd-grid/

    Package Sidebar

    Install

    npm i react-beautiful-dnd-grid

    Weekly Downloads

    2,090

    Version

    0.1.3-alpha

    License

    MIT

    Unpacked Size

    38.1 kB

    Total Files

    46

    Last publish

    Collaborators

    • mathieueveillard