chore: rewrite existing shared/ui stories using snippet template pattern
This commit is contained in:
@@ -29,13 +29,15 @@ const { Story } = defineMeta({
|
||||
animate: true,
|
||||
}}
|
||||
>
|
||||
<div class="flex flex-col gap-4 p-4 w-full">
|
||||
<div class="flex flex-col gap-2 p-4 border rounded-xl border-border-subtle bg-background-40">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<Skeleton class="h-8 w-1/3" />
|
||||
<Skeleton class="h-8 w-8 rounded-full" />
|
||||
{#snippet template(args)}
|
||||
<div class="flex flex-col gap-4 p-4 w-full">
|
||||
<div class="flex flex-col gap-2 p-4 border rounded-xl border-border-subtle bg-background-40">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<Skeleton class="h-8 w-1/3" {...args} />
|
||||
<Skeleton class="h-8 w-8 rounded-full" {...args} />
|
||||
</div>
|
||||
<Skeleton class="h-32 w-full" {...args} />
|
||||
</div>
|
||||
<Skeleton class="h-32 w-full" />
|
||||
</div>
|
||||
</div>
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
Reference in New Issue
Block a user