Spaces:
Running
Running
File size: 637 Bytes
9f7a203 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<script>
import Spinner from './Spinner.svelte';
export let show = false;
export let content = '';
export let opacity = 1;
</script>
<div class="relative">
{#if show}
<div class="absolute w-full h-full flex">
<div
class="absolute rounded"
style="inset: -10px; opacity: {opacity}; backdrop-filter: blur(5px);"
/>
<div class="flex w-full flex-col justify-center">
<div class=" py-3">
<Spinner className="ml-2" />
</div>
{#if content !== ''}
<div class="text-center text-gray-100 text-xs font-medium z-50">
{content}
</div>
{/if}
</div>
</div>
{/if}
<slot />
</div>
|