page DeveloperHerocomponent { seo { title = "DeveloperHero component" description = "Reusable developer hero component." } view {
W WRNexusJS
layout component

DeveloperHero

Reusable developer hero component.

@wrnexus/ui 0.2.645 props1 slots0 events

Usage

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

<DeveloperHero eyebrow="eyebrow" title="title" description="description" align="start" />

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

Props and attributes

PropTypeRequirementDefault
eyebrowstringOptional""
titlestringOptional""
descriptionstringOptional""
alignstringOptional"start"
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/DeveloperHero.wrn

component DeveloperHero {
  props {
    eyebrow = ""
    title = ""
    description = ""
    align = "start"
    class = ""
  }
  view { <section class="wire-catalog-section wire-text--{align} {class}"><header data-show="eyebrow || title || description"><span data-show="eyebrow" class="wire-eyebrow">{eyebrow}</span><h2 data-show="title">{title}</h2><p data-show="description" class="wire-muted">{description}</p></header><slot /></section> }
}
} }