Files
WRNexusJS/packages/ui/components/FeatureChecklist.wrn
T

16 lines
1.1 KiB
Plaintext

component FeatureChecklist {
props {
eyebrow = ""
title = ""
description = ""
href = ""
actionLabel = "Learn more"
image = ""
alt = ""
class = ""
}
view {
<article class="wire-card wire-catalog-card {class}">{#if image}<img src="{image}" alt="{alt}" class="wire-catalog-card__image" />{:else}<div role="presentation" class="grid grid-cols-[auto_1fr] gap-4 rounded-xl border border-slate-200 bg-slate-50 p-4 dark:border-slate-800 dark:bg-slate-950/60"><span class="grid size-10 place-items-center rounded-xl bg-violet-500/10 text-violet-500"><span class="icon-[lucide--list-checks] size-5" aria-hidden="true"></span></span><div class="grid gap-2"><span class="h-2 w-4/5 rounded-full bg-slate-200 dark:bg-slate-800"></span><span class="h-2 w-3/5 rounded-full bg-slate-200 dark:bg-slate-800"></span><span class="h-2 w-2/3 rounded-full bg-slate-200 dark:bg-slate-800"></span></div></div>{/if}{#if eyebrow}<span class="wire-eyebrow">{eyebrow}</span>{/if}{#if title}<h3>{title}</h3>{/if}{#if description}<p>{description}</p>{/if}<slot />{#if href}<a href="{href}" class="wire-btn wire-btn--ghost">{actionLabel}</a>{/if}</article>
}
}