Skip to content
W WRNexusJS
content component

IntegrationCard

Reusable integration card component.

@wrnexus/ui 0.2.675 props1 slots0 events

Usage

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

<IntegrationCard
  title="title"
  description="description"
  href="href"
  icon="icon-[lucide--plug-zap]"
/>

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

Props and attributes

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

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/IntegrationCard.wrn

component IntegrationCard {
  props {
    title = ""
    description = ""
    href = ""
    icon = "icon-[lucide--plug-zap]"
    class = ""
  }
  view {
        <article class="wire-card wire-catalog-card wire-catalog-card--integration {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>
    }
}