1.0.0 • Published 3 years ago

btz-dnd-component v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

btz-dnd-component

BTZ Drag n Drop Component

NPM JavaScript Style Guide

Install

npm install --save btz-dnd-component

Usage

import React, { Component } from 'react'

import DNDComponent from 'btz-dnd-component'

class Example extends Component {
  render() {
    return (
      <DNDComponent data={[
        {
          id: 1,
          content: 'Write a cool JS library',
        },
        {
          id: 2,
          content: 'Make it generic enough',
        },
        {
          id: 3,
          content: 'Write README',
        },
        {
          id: 4,
          content: 'Create some examples',
        },
        {
          id: 5,
          content: 'Spam in Twitter and IRC to promote it (note that this element is taller than the others)',
        },
        {
          id: 6,
          content: '???',
        },
        {
          id: 7,
          content: 'PROFIT',
        },
        {
          id: 8,
          content: 'AS IS AS',
        },
      ]} />
    )
  }
}

License

MIT © ganjardbc