Skip to content
W WRNexusJS
content component

CampaignCard

Reusable campaign card component.

@wrnexus/ui 0.2.675 props1 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<CampaignCard
  title="title"
  description="description"
  href="href"
  icon="icon-[lucide--send]"
/>

Legacy mount name: data-component="CampaignCard".

Props and attributes

PropTypeRequirementDefault
titlestringOptional""
descriptionstringOptional""
hrefstringOptional""
iconstringOptional"icon-[lucide--send]"
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/CampaignCard.wrn

component CampaignCard {
  props {
    title = ""
    description = ""
    href = ""
    icon = "icon-[lucide--send]"
    class = ""
  }
  view {
        <article class="wire-card wire-catalog-card wire-catalog-card--campaign {class}">
        <span class="wire-catalog-card__icon">
        <span class="{icon} size-5" aria-hidden="true">
        </span>
        </span>{#if title}<h3>{title}</h3>{/if}{#if description}<p>{description}</p>{/if}<slot />{#if href}<a href="{href}" class="wire-catalog-card__link">
        <span class="wire-visually-hidden">Open {title}</span>
        </a>{/if}</article>
    }
}