FeatureChecklist
Reusable feature checklist component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<FeatureChecklist
eyebrow="eyebrow"
title="title"
description="description"
href="href"
actionLabel="Learn more"
/>Legacy mount name: data-component="FeatureChecklist".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
eyebrow | string | Optional | "" |
title | string | Optional | "" |
description | string | Optional | "" |
href | string | Optional | "" |
actionLabel | string | Optional | "Learn more" |
image | string | Optional | "" |
alt | string | Optional | "" |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/FeatureChecklist.wrn
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>
}
}