web/save: dynamic paste text & component clean up

This commit is contained in:
wukko
2024-06-17 19:03:26 +06:00
parent 9aa2de9bfd
commit ddb52cfef7
2 changed files with 32 additions and 9 deletions

View File

@@ -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>