feat: add placeholder component
This commit is contained in:
1 parent
92dfd91c23
commit
5c04bdb677
8 files changed
+48
-50
No files matched your search
@@ -18,6 +18,7 @@
|
||||
<div
|
||||
class="bg-white break-words
|
||||
{getColor(cardColor)} rounded-md {clazz}"
|
||||
{...$$restProps}
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user