Setup some components

This commit is contained in:
2021-09-24 11:03:08 +02:00
parent bdbf511a75
commit bb8a67a82a
6 changed files with 37 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
<script lang="ts">
export let text: string
export let tag: string
</script>
{#if tag === 'button'}
<button class="{$$props.class}">
{text}
</button>
{/if}