Skip to content
W WRNexusJS
content component

FeatureChecklist

Reusable feature checklist component.

@wrnexus/ui 0.2.678 props1 slots0 events

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

PropTypeRequirementDefault
eyebrowstringOptional""
titlestringOptional""
descriptionstringOptional""
hrefstringOptional""
actionLabelstringOptional"Learn more"
imagestringOptional""
altstringOptional""
classstringOptional""

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>
    }
}