Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Dec 10, 2024
1 parent 9bc5f7f commit 0db8bcb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/ui-components/src/lib/components/ButtonLoading.svelte
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>

0 comments on commit 0db8bcb

Please sign in to comment.