page CodeHeadercomponent { seo { title = "CodeHeader component" description = "Reusable code header component." } view {
W WRNexusJS
layout component

CodeHeader

Reusable code header component.

@wrnexus/ui 0.2.655 props1 slots0 events

Usage

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

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

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

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

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