docs(ui): publish complete component catalog

This commit is contained in:
2026-07-19 23:21:33 +05:30
parent b190bbf41c
commit 45f2820871
975 changed files with 49638 additions and 294 deletions
+34
View File
@@ -0,0 +1,34 @@
page Toastcomponent {
seo {
title = "Toast component"
description = "Reusable toast 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.64</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">Toast</span></nav><section class="doc-intro"><span class="eyebrow">core component</span><h1>Toast</h1><p>Reusable toast component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.64</span><span>5 props</span><span>0 slots</span><span>1 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;Toast title=&quot;Saved&quot; description=&quot;description&quot; variant=&quot;success&quot; duration=&quot;5000&quot; /&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;Toast&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>title</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Saved&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>variant</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;success&quot;</code></td></tr><tr><td><code>duration</code></td><td><code>number</code></td><td>Optional</td><td><code>5000</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><ul><li><code>click</code></li></ul></section><section id="source"><h2>Source contract</h2><p>Installed source: <code>components/Toast.wrn</code></p><pre data-language="wrn"><code>component Toast &#123;
props &#123;
class = &quot;&quot;
title = &quot;Saved&quot;
description = &quot;&quot;
variant = &quot;success&quot;
duration = 5000
&#125;
state visible = true
view &#123;
&lt;div data-show=&quot;visible&quot; role=&quot;status&quot; aria-live=&quot;polite&quot; class=&quot;pointer-events-auto flex w-full max-w-sm items-start gap-3 rounded-2xl border bg-white p-4 shadow-2xl dark:border-slate-800 dark:bg-slate-900 &#123;class&#125;&quot;&gt;&lt;span class=&quot;mt-0.5 flex size-8 items-center justify-center rounded-full &#123;variant === 'success' ? 'bg-emerald-100 text-emerald-700' : variant === 'danger' ? 'bg-red-100 text-red-700' : 'bg-blue-100 text-blue-700'&#125;&quot;&gt;&#123;variant === 'success' ? '✓' : variant === 'danger' ? '!' : 'i'&#125;&lt;/span&gt;&lt;div class=&quot;min-w-0 flex-1&quot;&gt;&lt;p class=&quot;font-semibold&quot;&gt;&#123;title&#125;&lt;/p&gt;&lt;p data-show=&quot;description&quot; class=&quot;mt-1 text-sm text-slate-500&quot;&gt;&#123;description&#125;&lt;/p&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; aria-label=&quot;Close&quot; @click=&quot;visible = false&quot; class=&quot;rounded-lg p-1 text-slate-400 hover:bg-slate-100&quot;&gt;×&lt;/button&gt;&lt;/div&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.64</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>
}
}