Skip to content
W WRNexusJS
content component

WhatsAppComposer

Reusable whats app composer component.

@wrnexus/ui 0.2.678 props1 slots0 events

Usage

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

<WhatsAppComposer
  eyebrow="eyebrow"
  title="title"
  description="description"
  href="href"
  actionLabel="Learn more"
/>

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

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/WhatsAppComposer.wrn

component WhatsAppComposer {
  props {
    eyebrow = ""
    title = ""
    description = ""
    href = ""
    actionLabel = "Learn more"
    image = ""
    alt = ""
    class = ""
  }
  view {
        <article class="wire-card wire-catalog-card {class}">
        <img data-show="image" src="{image}" alt="{alt}" class="wire-catalog-card__image" />
        <span data-show="eyebrow" class="wire-eyebrow">{eyebrow}</span>
        <h3 data-show="title">{title}</h3>
        <p data-show="description">{description}</p>
        <slot />
        <a data-show="href" href="{href}" class="wire-btn wire-btn--ghost">{actionLabel}</a>
        </article>
    }
}