plastiq-draggabilly

1.0.0 • Public • Published

plastiq-draggabilly

A plastiq component that makes elements draggable using draggabilly.

Demo

Example

var plastiq = require('plastiq');
var draggable = require('plastiq-draggabilly');
var h = plastiq.html;

function render(model) {
  return h('.page',
    draggable(h('.red', 'Animal')),
    draggable({ grid: [20, 20] }, h('.green', 'Vegetable')),
    draggable({ axis: 'x' }, h('.blue', 'Mineral'))
  );
}

plastiq.append(document.body, render, {});

License

MIT

Package Sidebar

Install

npm i plastiq-draggabilly

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joshski