Add ability to drag new blocks into app preview
This commit is contained in:
parent
3325b7b62b
commit
6656a89f18
|
@ -240,8 +240,11 @@
|
|||
<Layout noPadding gap="XS">
|
||||
{#each blocks as block}
|
||||
<div
|
||||
draggable="true"
|
||||
class="component"
|
||||
on:click={() => addComponent(block.component)}
|
||||
on:dragstart={() => onDragStart(block.component)}
|
||||
on:dragend={onDragEnd}
|
||||
>
|
||||
<Icon name={block.icon} />
|
||||
<Body size="XS">{block.name}</Body>
|
||||
|
|
Loading…
Reference in New Issue