feat: add placeholder component

This commit is contained in:
Xyphyn committed 2023-08-05 12:48:15 -07:00
1 parent 92dfd91c23
commit 5c04bdb677
8 files changed
+48 -50

No files matched your search

+1
View File
@@ -18,6 +18,7 @@
<div
class="bg-white break-words
{getColor(cardColor)} rounded-md {clazz}"
{...$$restProps}
>
<slot />
</div>
+8
View File
@@ -0,0 +1,8 @@
<div
class="text-slate-600 dark:text-zinc-400 flex flex-col justify-center items-center"
>
<slot name="icon" />
{#if $$slots.title}
<h1 class="font-bold text-2xl"><slot name="title" /></h1>{/if}
<slot name="action" />
</div>