1.0.0 • Published 3 years ago
btz-dnd-component v1.0.0
btz-dnd-component
BTZ Drag n Drop Component
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
1.0.0
3 years ago