1.0.4 • Published 3 years ago
copyable-blocks v1.0.4
@lyonbot/interactive-blocks
Make your Block and Slot components interactive!
[ ▶️ Try the Demo ] [ 📁 View on GitHub ]
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 preact and works with React too.
Please read https://github.com/lyonbot/interactive-blocks/#how-to-integrate