Files
WRNexusJSDoc/app/pages/components/ctasection.wrn
T

51 lines
6.1 KiB
Plaintext

page CTASectioncomponent {
seo {
title = "CTASection component"
description = "Reusable c t a section 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.2.78</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">CTASection</span></nav><section class="doc-intro"><span class="eyebrow">layout component</span><h1>CTASection</h1><p>Reusable c t a section component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.78</span><span>8 props</span><span>0 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;CTASection
eyebrow=&quot;Ready?&quot;
title=&quot;Start building today&quot;
description=&quot;description&quot;
primaryLabel=&quot;Get started&quot;
primaryHref=&quot;#&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;CTASection&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>class</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>eyebrow</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Ready?&quot;</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Start building today&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>primaryLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Get started&quot;</code></td></tr><tr><td><code>primaryHref</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;#&quot;</code></td></tr><tr><td><code>secondaryLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Contact sales&quot;</code></td></tr><tr><td><code>secondaryHref</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><p>This component does not declare a slot.</p></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/CTASection.wrn</code></p><pre data-language="wrn"><code>component CTASection &#123;
props &#123;
class = &quot;&quot;
eyebrow = &quot;Ready?&quot;
title = &quot;Start building today&quot;
description = &quot;&quot;
primaryLabel = &quot;Get started&quot;
primaryHref = &quot;#&quot;
secondaryLabel = &quot;Contact sales&quot;
secondaryHref = &quot;#&quot;
&#125;
view &#123;
&lt;section class=&quot;overflow-hidden rounded-3xl bg-gradient-to-br from-violet-600 via-violet-700 to-fuchsia-700 text-center text-white shadow-2xl &#123;class&#125;&quot;&gt;
&lt;p class=&quot;text-sm font-bold uppercase tracking-[0.18em] text-violet-100&quot;&gt;&#123;eyebrow&#125;&lt;/p&gt;
&lt;h2 class=&quot;mx-auto mt-3 max-w-3xl text-3xl font-black sm:text-4xl&quot;&gt;&#123;title&#125;&lt;/h2&gt;
&lt;p data-show=&quot;description&quot; class=&quot;mx-auto mt-4 max-w-2xl text-violet-100&quot;&gt;&#123;description&#125;&lt;/p&gt;
&lt;div class=&quot;mt-8 flex flex-wrap justify-center gap-3&quot;&gt;
&lt;a href=&quot;&#123;primaryHref&#125;&quot; class=&quot;inline-flex min-h-12 items-center rounded-xl bg-white px-5 font-semibold text-violet-700 shadow-lg transition hover:-translate-y-0.5&quot;&gt;&#123;primaryLabel&#125;&lt;/a&gt;
&lt;a data-show=&quot;secondaryLabel&quot; href=&quot;&#123;secondaryHref&#125;&quot; class=&quot;inline-flex min-h-12 items-center rounded-xl border border-white/30 px-5 font-semibold text-white transition hover:bg-white/10&quot;&gt;&#123;secondaryLabel&#125;&lt;/a&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.2.78</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>
}
}