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

1.0.5 • Public • Published

react-beautiful-dnd-matrix

Installation

npm i react-beautiful-dnd-matrix --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}
  />
);

Readme

Keywords

Package Sidebar

Install

npm i react-beautiful-dnd-matrix

Weekly Downloads

2

Version

1.0.5

License

(ZAPCOM) UNLICENSED

Unpacked Size

41.9 kB

Total Files

51

Last publish

Collaborators

  • embededzeus