refac: think tag

This commit is contained in:
Timothy Jaeryang Baek
2025-01-22 09:24:40 -08:00
parent cf470e70e2
commit 9feed97f22
4 changed files with 42 additions and 30 deletions

View File

@@ -16,7 +16,7 @@
export let buttonClassName =
'w-fit text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition';
export let title = null;
export let isLoading = false;
export let attributes = null;
export let grow = false;
@@ -37,12 +37,13 @@
}}
>
<div
class=" w-full font-medium flex items-center justify-between gap-2 {isLoading === true
class=" w-full font-medium flex items-center justify-between gap-2 {attributes?.done !==
'true'
? 'shimmer'
: ''}
"
>
{#if isLoading}
{#if attributes?.done !== 'true'}
<div>
<Spinner className="size-4" />
</div>