mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-16 04:58:53 +00:00
web/save: dynamic paste text & component clean up
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
<script lang="ts">
|
||||
export let id: string;
|
||||
export let text: string = "Button";
|
||||
export let click = () => { alert('no function assigned') };
|
||||
</script>
|
||||
|
||||
<button id={id} class="button" on:click={click}>
|
||||
<slot></slot>
|
||||
{text}
|
||||
</button>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user