page SuccessCardcomponent { seo { title = "SuccessCard component" description = "Reusable success card component." } view {
W WRNexusJS
content component

SuccessCard

Reusable success card component.

@wrnexus/ui 0.2.644 props1 slots0 events

Usage

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

<SuccessCard title="title" description="description" href="href" />

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

Props and attributes

PropTypeRequirementDefault
titlestringOptional""
descriptionstringOptional""
hrefstringOptional""
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/SuccessCard.wrn

component SuccessCard {
  props {
    title = ""
    description = ""
    href = ""
    class = ""
  }
  view { <article class="wire-card wire-catalog-card wire-catalog-card--success {class}"><h3 data-show="title">{title}</h3><p data-show="description">{description}</p><slot /><a data-show="href" href="{href}" class="wire-catalog-card__link"><span class="wire-visually-hidden">Open {title}</span></a></article> }
}
} }