refactor(docs): remove card shells and format examples

This commit is contained in:
2026-07-19 23:38:50 +05:30
parent 65366d48b6
commit 7013019e99
904 changed files with 35527 additions and 4439 deletions
+18 -10
View File
@@ -13,7 +13,13 @@ page ApiEndpointCardcomponent {
<div class="topbar-actions"><a class="preview-pill" href="/access">Private preview · v0.2.65</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">ApiEndpointCard</span></nav><section class="doc-intro"><span class="eyebrow">content component</span><h1>ApiEndpointCard</h1><p>Reusable api endpoint card component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.65</span><span>8 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;ApiEndpointCard method=&quot;GET&quot; path=&quot;/api/example&quot; eyebrow=&quot;eyebrow&quot; title=&quot;title&quot; description=&quot;description&quot; /&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;ApiEndpointCard&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>method</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;GET&quot;</code></td></tr><tr><td><code>path</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;/api/example&quot;</code></td></tr><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>href</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>actionLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;View endpoint&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/ApiEndpointCard.wrn</code></p><pre data-language="wrn"><code>component ApiEndpointCard &#123;
<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">ApiEndpointCard</span></nav><section class="doc-intro"><span class="eyebrow">content component</span><h1>ApiEndpointCard</h1><p>Reusable api endpoint card component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.65</span><span>8 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;ApiEndpointCard
method=&quot;GET&quot;
path=&quot;/api/example&quot;
eyebrow=&quot;eyebrow&quot;
title=&quot;title&quot;
description=&quot;description&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;ApiEndpointCard&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>method</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;GET&quot;</code></td></tr><tr><td><code>path</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;/api/example&quot;</code></td></tr><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>href</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>actionLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;View endpoint&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/ApiEndpointCard.wrn</code></p><pre data-language="wrn"><code>component ApiEndpointCard &#123;
props &#123;
class = &quot;&quot;
method = &quot;GET&quot;
@@ -29,26 +35,28 @@ page ApiEndpointCardcomponent {
&lt;article
class=&quot;rounded-2xl border border-slate-200 bg-white p-5 dark:border-slate-800 dark:bg-slate-900 &#123;class&#125;&quot;
&gt;
&lt;div class=&quot;flex flex-wrap items-center gap-3&quot; &gt;
&lt;span
&lt;div class=&quot;flex flex-wrap items-center gap-3&quot; &gt;
&lt;span
class=&quot;rounded-lg px-2.5 py-1 font-mono text-xs font-bold &#123;method === 'GET' ? 'bg-emerald-100 text-emerald-700' : method === 'POST' ? 'bg-blue-100 text-blue-700' : method === 'DELETE' ? 'bg-red-100 text-red-700' : 'bg-amber-100 text-amber-700'&#125;&quot;
&gt;
&#123;method&#125;
&lt;/span&gt;
&lt;code class=&quot;text-sm font-semibold&quot;&gt;
&lt;code class=&quot;text-sm font-semibold&quot;&gt;
&#123;title || path&#125;
&lt;/code&gt;
&lt;/div&gt;
&lt;p
&lt;/div&gt;
&lt;p
data-show=&quot;description&quot;
class=&quot;mt-3 text-sm text-slate-500&quot;
&gt;
&#123;description&#125;
&lt;/p&gt;
&lt;div class=&quot;mt-4&quot;&gt;
&lt;slot /&gt;
&lt;/div&gt;
&#123;#if href&#125;&lt;a href=&quot;&#123;href&#125;&quot; class=&quot;mt-5 inline-flex items-center gap-2 text-sm font-bold text-violet-600 dark:text-violet-300&quot;&gt;&#123;actionLabel&#125;&lt;span class=&quot;icon-[lucide--arrow-right] size-4&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;/a&gt;&#123;/if&#125;
&lt;div class=&quot;mt-4&quot;&gt;
&lt;slot /&gt;
&lt;/div&gt;
&#123;#if href&#125;&lt;a href=&quot;&#123;href&#125;&quot; class=&quot;mt-5 inline-flex items-center gap-2 text-sm font-bold text-violet-600 dark:text-violet-300&quot;&gt;&#123;actionLabel&#125;&lt;span class=&quot;icon-[lucide--arrow-right] size-4&quot; aria-hidden=&quot;true&quot;&gt;
&lt;/span&gt;
&lt;/a&gt;&#123;/if&#125;
&lt;/article&gt;
&#125;
&#125;