{
+ $selectedComponent = [component.id]
+ }}
+ on:keypress
+ >
+
+ {component.id}
+
-
- {#if component.type == 'buttoncomponent'}
- Button
- {:else if component.type == 'selectcomponent'}
- Select
- {:else if component.type == 'checkboxcomponent'}
- Toggle
- {/if}
-
-
-
+ {/each}
+
+ addComponent('buttoncomponent')}
+ title="Add Button"
+ >
+ +
+
+ addComponent('checkboxcomponent')}
+ title="Add Toggle"
+ >
+ +
+
+ addComponent('selectcomponent')}
+ title="Add Select"
+ >
+ +
+
- {/each}
-
- addComponent('buttoncomponent')}
- title="Add Button"
- >
- +
-
- addComponent('checkboxcomponent')}
- title="Add Toggle"
- >
- +
-
- addComponent('selectcomponent')}
- title="Add Select"
- >
- +
-
-
-
+
+{/if}