page ErrorCodecomponent { seo { title = "ErrorCode component" description = "Reusable error code component." } view {
W WRNexusJS
content component

ErrorCode

Reusable error code component.

@wrnexus/ui 0.2.648 props1 slots0 events

Usage

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

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

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

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

component ErrorCode {
  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> }
}
} }