Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
pjb0811Public archive

About

draggable list app using react & react-motion.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

react-draggable-lists

draggable list app using react & react-motion.

NPM JavaScript Style Guide

This package is included in react-motion-components.

Warning

This repository is archived and no longer maintained. It was built on react-motion and React 15/16, both of which are now outdated. The npm package remains installable, but it will not receive updates or fixes.

react-motion-components, mentioned above, is archived as well.

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

About

draggable list app using react & react-motion.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages