From dc760040587dcf9946898a45ef47db2fcde22d6a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 31 Jan 2024 00:57:18 -0800 Subject: refactor(skeleton): move to loading module --- src/lib/Loading/Skeleton.svelte | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/lib/Loading/Skeleton.svelte (limited to 'src/lib/Loading') diff --git a/src/lib/Loading/Skeleton.svelte b/src/lib/Loading/Skeleton.svelte new file mode 100644 index 00000000..f42e5a75 --- /dev/null +++ b/src/lib/Loading/Skeleton.svelte @@ -0,0 +1,69 @@ + + +{#if grid} +
+ {#each Array(count) as _} +
+
+
+
+
+ {/each} +
+{:else} + {#each Array(count) as _, i} +
+
+
+
+
+ + {#if !list && i < count - 1} +

+ {/if} + {/each} +{/if} + + -- cgit v1.2.3