From 26de12b070a55ac60c897e1d0b385a8aa621362c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 24 Jan 2024 21:29:56 -0800
Subject: feat(user): skeleton loading

---
 src/lib/Skeleton.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/lib/Skeleton.svelte')

diff --git a/src/lib/Skeleton.svelte b/src/lib/Skeleton.svelte
index 32182657..839d7985 100644
--- a/src/lib/Skeleton.svelte
+++ b/src/lib/Skeleton.svelte
@@ -2,10 +2,11 @@
 	export let count = 3;
 	export let width = '100%';
 	export let height = '100px';
+	export let card = true;
 </script>
 
 {#each Array(count) as _, i}
-	<div class="card card-small" style={`width: ${width};`}>
+	<div class={card ? 'card card-small' : ''} style={`width: ${width};`}>
 		<div class="skeleton-container">
 			<div class="skeleton" style={`width: ${width}; height: ${height};`} />
 		</div>
-- 
cgit v1.2.3

