Files
WRNexusJSDoc/app/pages/components/product-hero.wrn
T

81 lines
6.1 KiB
Plaintext

page ProductHerocomponent {
seo {
title = "ProductHero component"
description = "Reusable product hero component."
}
view {
<div class="docs-shell">
<SkipLink label="Skip to content" href="#main" class="docs-skip-link" />
<header class="topbar">
<a class="brand" href="/"><span>W</span> WRNexusJS</a>
<nav aria-label="Primary"><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="/components">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a></nav>
<div class="topbar-actions"><a class="preview-pill" href="/access">Private preview · v0.3.3</a><button data-wire-theme-toggle class="theme-button" aria-label="Toggle color theme" title="Toggle color theme">◐</button></div>
</header>
<div class="mobile-doc-nav"><details><summary>Browse documentation</summary><nav><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="/components">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a><a href="/tutorial">Tutorial</a><a href="/guides/project-structure">Guides</a><a href="/examples">Examples</a><a href="/search">Search</a></nav></details></div>
<main class="portal-main docs-layout component-detail-page"><article id="main" class="documentation prose standalone"><nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span>/</span><a href="/components">Components</a><span>/</span><span aria-current="page">ProductHero</span></nav><section class="doc-intro"><span class="eyebrow">layout component</span><h1>ProductHero</h1><p>Reusable product hero component.</p><div class="doc-meta"><span>@wrnexus/ui 0.3.3</span><span>5 props</span><span>1 slots</span><span>0 events</span></div></section><section id="usage"><h2>Usage</h2><p>Components are auto-discovered. Use the component directly in any <code>.wrn</code> view:</p><pre data-language="wrn"><code>&lt;ProductHero
eyebrow=&quot;eyebrow&quot;
title=&quot;title&quot;
description=&quot;description&quot;
align=&quot;start&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;ProductHero&quot;</code>.</p></section><section id="props"><h2>Props and attributes</h2><div class="table-wrap"><table><thead><tr><th>Prop</th><th>Type</th><th>Requirement</th><th>Default</th></tr></thead><tbody><tr><td><code>eyebrow</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>description</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>align</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;start&quot;</code></td></tr><tr><td><code>class</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr></tbody></table></div></section><section id="slots"><h2>Slots</h2><ul><li><code>default</code></li></ul></section><section id="events"><h2>Events</h2><p>This component does not declare a custom event.</p></section><section id="source"><h2>Source contract</h2><p>Installed source: <code>components/ProductHero.wrn</code></p><pre data-language="wrn"><code>component ProductHero &#123;
props &#123;
eyebrow = &quot;&quot;
title = &quot;&quot;
description = &quot;&quot;
align = &quot;start&quot;
class = &quot;&quot;
&#125;
view &#123;
&lt;section
class=&quot; relative isolate overflow-hidden bg-[var(--wire-color-bg,#ffffff)] px-4 py-14 sm:px-6 sm:py-18 lg:px-8 lg:py-20 &#123;class&#125; &quot;
&gt;
&lt;div class=&quot;pointer-events-none absolute inset-0 -z-10 opacity-80&quot; style=&quot;background: radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--wire-color-primary, #059669) 16%, transparent), transparent 36%);&quot; aria-hidden=&quot;true&quot; &gt;
&lt;/div&gt;
&lt;div class=&quot;mx-auto w-full max-w-7xl&quot;&gt;
&lt;div
class=&quot;max-w-4xl&quot;
class:mx-auto='&#123;align === &quot;center&quot;&#125;'
class:text-center='&#123;align === &quot;center&quot;&#125;'
&gt;
&#123;#if eyebrow&#125;
&lt;p
class=&quot;mb-4 text-xs font-bold uppercase tracking-[0.18em] text-[var(--wire-color-primary,#059669)] sm:text-sm&quot;
&gt;
&#123;eyebrow&#125;
&lt;/p&gt;
&#123;/if&#125;
&#123;#if title&#125;
&lt;h1
class=&quot;m-0 max-w-[18ch] text-4xl font-semibold leading-[1.05] tracking-[-0.045em] text-[var(--wire-color-text,#0f172a)] sm:text-5xl lg:text-6xl&quot;
class:mx-auto='&#123;align === &quot;center&quot;&#125;'
&gt;
&#123;title&#125;
&lt;/h1&gt;
&#123;/if&#125;
&#123;#if description&#125;
&lt;p
class=&quot;mt-6 max-w-3xl text-base leading-8 text-[var(--wire-color-muted,#64748b)] sm:text-lg&quot;
class:mx-auto='&#123;align === &quot;center&quot;&#125;'
&gt;
&#123;description&#125;
&lt;/p&gt;
&#123;/if&#125;
&lt;/div&gt;
&lt;div class=&quot;mt-10 space-y-10&quot;&gt;
&lt;slot /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&#125;
&#125;
</code></pre></section></article><aside class="on-this-page"><h2>On this page</h2><nav><a href="#usage">Usage</a><a href="#props">Props and attributes</a><a href="#slots">Slots</a><a href="#events">Events</a><a href="#source">Source contract</a></nav></aside></main>
<footer><div class="footer-brand"><span class="footer-mark" aria-hidden="true">W</span><p><strong>WRNexusJS 0.3.3</strong><span>Complete API documentation generated from installed package declarations.</span></p></div><nav aria-label="Footer"><a href="/packages">All packages</a><a href="/getting-started">Get started</a><a href="/security">Security</a><a href="/support">Support</a><a href="/llms.txt">AI guide</a></nav><p class="footer-meta">Private Developer Preview · Bun-native</p></footer>
<BackToTop />
</div>
}
}