@lyonbot/interactive-blocks
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@lyonbot/interactive-blocks

GitHub Workflow Status npm npm bundle size (version) npm bundle size (version) npm type definitions

Make interactive selectable, drag-and-drop, copy-and-paste ready, Block and Slot components easily! Works with Vue, React and any MV* framework.

[ ▶️ Try the Demo ] [ 📁 View on GitHub ] [ 📖 Document ]

How Interactive?

  • (multiple) selectable!
  • copy and paste! with system clipboard
  • keyboard shortcuts!
  • drag and drop! (optional)

These keyboard shortcuts are supported!

  • Ctrl+X, Ctrl+C, Ctrl+V
  • Navigate with arrow keys
  • Select multiple blocks with Shift + arrow keys
  • Select all blocks with Ctrl+A
  • Delete, Backspace

How to Integrate

This lib works with any framework, including React and Vue. Example is written with React.

📖 Read document with Docsify

  1. Basic Setup

  2. Drag and Drop -- read "basic setup" first

/@lyonbot/interactive-blocks/

    Package Sidebar

    Install

    npm i @lyonbot/interactive-blocks

    Weekly Downloads

    9

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    440 kB

    Total Files

    23

    Last publish

    Collaborators

    • lyonbot