Setup some components
This commit is contained in:
10
src/components/atoms/Button.svelte
Normal file
10
src/components/atoms/Button.svelte
Normal 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}
|
||||
Reference in New Issue
Block a user