项目作者: pjb0811

项目描述 :
draggable list app using react & react-motion.
高级语言: TypeScript
项目地址: git://github.com/pjb0811/react-draggable-lists.git
创建时间: 2018-08-24T09:20:54Z
项目社区:https://github.com/pjb0811/react-draggable-lists

开源协议:

下载


react-draggable-lists

draggable list app using react & react-motion.

NPM JavaScript Style Guide

This package is included in react-motion-components.

Install

  1. npm install --save react-draggable-lists

Usage

demo

  1. import * as React from 'react';
  2. import DraggableList from 'react-draggable-lists';
  3. class Example extends React.Component {
  4. render() {
  5. return (
  6. <div>
  7. <hi>react-draggable-lists</hi>
  8. <div style={{ width: 300, margin: '0 auto' }}>
  9. <DraggableList width={300} height={300} rowSize={1}>
  10. <div style={{ width: 300, height: 300, background: 'green' }}>
  11. 1
  12. </div>
  13. <div style={{ width: 300, height: 300, background: 'blue' }}>2</div>
  14. <div style={{ width: 300, height: 300, background: 'red' }}>3</div>
  15. </DraggableList>
  16. </div>
  17. </div>
  18. );
  19. }
  20. }

License

MIT © pjb0811