JSPM

react-draggable-lists

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 207
  • Score
    100M100P100Q84106F
  • License MIT

draggable list app using react & react-motion.

Package Exports

  • react-draggable-lists

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-draggable-lists) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-draggable-lists

draggable list app using react & react-motion.

NPM JavaScript Style Guide

This package is included in react-motion-components.

Install

npm install --save react-draggable-lists

Usage

demo

import * as React from 'react';

import DraggableList from 'react-draggable-lists';

class Example extends React.Component {
  render() {
    return (
      <div>
        <hi>react-draggable-lists</hi>
        <div style={{ width: 300, margin: '0 auto' }}>
          <DraggableList width={300} height={300} rowSize={1}>
            <div style={{ width: 300, height: 300, background: 'green' }}>
              1
            </div>
            <div style={{ width: 300, height: 300, background: 'blue' }}>2</div>
            <div style={{ width: 300, height: 300, background: 'red' }}>3</div>
          </DraggableList>
        </div>
      </div>
    );
  }
}

License

MIT © pjb0811