-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bc5f7f
commit 0db8bcb
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
packages/ui-components/src/lib/components/ButtonLoading.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<script lang="ts"> | ||
import { Button, Spinner } from 'flowbite-svelte'; | ||
import { Button, Spinner } from 'flowbite-svelte'; | ||
export let loading = false; | ||
export let disabled = false; | ||
export let loading = false; | ||
export let disabled = false; | ||
</script> | ||
|
||
<Button disabled={loading || disabled} {...$$props} on:click> | ||
{#if loading} | ||
<Spinner class="mr-2 h-4 w-4" color="white" /> | ||
{/if} | ||
<slot /> | ||
{#if loading} | ||
<Spinner class="mr-2 h-4 w-4" color="white" /> | ||
{/if} | ||
<slot /> | ||
</Button> |