page MarketingSectionHeadercomponent { seo { title = "MarketingSectionHeader component" description = "Reusable marketing section header component." } view {
W WRNexusJS
layout component

MarketingSectionHeader

Reusable marketing section header component.

@wrnexus/ui 0.2.775 props1 slots0 events

Usage

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

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

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

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

component MarketingSectionHeader {
  props {
    eyebrow = ""
    title = ""
    description = ""
    align = "start"
    class = ""
  }

  view {
        <section class="px-4 py-16 sm:px-6 sm:py-20 lg:px-8 {class}">
        <div class="mx-auto w-full max-w-7xl">
        <header
          class="max-w-3xl"
          class:mx-auto='{align === "center"}'
          class:text-center='{align === "center"}'
        >
          {#if eyebrow}
            <p class="mb-3 text-xs font-bold uppercase tracking-[0.16em] text-[var(--wire-color-primary,#059669)] sm:text-sm">{eyebrow}</p>
          {/if}
          {#if title}
            <h2 class="m-0 text-3xl font-semibold tracking-[-0.035em] text-[var(--wire-color-text,#0f172a)] sm:text-4xl">{title}</h2>
          {/if}
          {#if description}
            <p class="mt-5 text-base leading-8 text-[var(--wire-color-text-muted,#64748b)] sm:text-lg">{description}</p>
          {/if}
        </header>
        <div class="mt-8">
        <slot />
        </div>
        </div>
        </section>
    }
}
} }