Files
WRNexusJSDoc/app/pages/components/conversation-preview.wrn
T
2026-07-22 01:56:18 +05:30

61 lines
7.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
page ConversationPreviewcomponent {
seo {
title = "ConversationPreview component"
description = "Reusable conversation preview 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.77</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">ConversationPreview</span></nav><section class="doc-intro"><span class="eyebrow">content component</span><h1>ConversationPreview</h1><p>Reusable conversation preview component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.77</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;ConversationPreview
eyebrow=&quot;eyebrow&quot;
title=&quot;title&quot;
description=&quot;description&quot;
href=&quot;href&quot;
actionLabel=&quot;Learn more&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;ConversationPreview&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>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;Learn more&quot;</code></td></tr><tr><td><code>image</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>alt</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&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/ConversationPreview.wrn</code></p><pre data-language="wrn"><code>component ConversationPreview &#123;
props &#123;
eyebrow = &quot;&quot;
title = &quot;&quot;
description = &quot;&quot;
href = &quot;&quot;
actionLabel = &quot;Learn more&quot;
image = &quot;&quot;
alt = &quot;&quot;
class = &quot;&quot;
&#125;
view &#123;
&lt;article class=&quot;wire-card wire-catalog-card &#123;class&#125;&quot;&gt;&#123;#if image&#125;&lt;img src=&quot;&#123;image&#125;&quot; alt=&quot;&#123;alt&#125;&quot; class=&quot;wire-catalog-card__image&quot; /&gt;&#123;:else&#125;&lt;div role=&quot;img&quot; aria-label=&quot;Shared inbox conversation moving from automation to a human teammate&quot; class=&quot;grid min-h-52 gap-3 rounded-xl border border-slate-200 bg-slate-50 p-4 dark:border-slate-800 dark:bg-slate-950/60&quot;&gt;
&lt;div class=&quot;flex items-center gap-3 border-b border-slate-200 pb-3 dark:border-slate-800&quot;&gt;
&lt;span class=&quot;grid size-9 place-items-center rounded-full bg-violet-500/10 text-violet-500&quot;&gt;
&lt;span class=&quot;icon-[lucide--message-circle] size-4&quot; aria-hidden=&quot;true&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;
&lt;span class=&quot;grid text-sm&quot;&gt;
&lt;strong&gt;Order support&lt;/strong&gt;
&lt;span class=&quot;text-xs text-slate-500&quot;&gt;Customer context attached&lt;/span&gt;
&lt;/span&gt;
&lt;span class=&quot;ml-auto size-2 rounded-full bg-emerald-500&quot;&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;max-w-[82%] rounded-2xl rounded-tl-sm bg-white p-3 text-sm shadow-sm dark:bg-slate-900&quot;&gt;Can I change the delivery address?&lt;/div&gt;
&lt;div class=&quot;ml-auto max-w-[82%] rounded-2xl rounded-tr-sm bg-violet-600 p-3 text-sm text-white&quot;&gt;Absolutely — Ill help with that now.&lt;/div&gt;
&lt;div class=&quot;inline-flex items-center gap-2 text-xs text-slate-500&quot;&gt;
&lt;span class=&quot;icon-[lucide--bot] size-4&quot; aria-hidden=&quot;true&quot;&gt;
&lt;/span&gt;Automation handed off to Maya&lt;/div&gt;
&lt;/div&gt;&#123;/if&#125;&#123;#if eyebrow&#125;&lt;span class=&quot;wire-eyebrow&quot;&gt;&#123;eyebrow&#125;&lt;/span&gt;&#123;/if&#125;&#123;#if title&#125;&lt;h3&gt;&#123;title&#125;&lt;/h3&gt;&#123;/if&#125;&#123;#if description&#125;&lt;p&gt;&#123;description&#125;&lt;/p&gt;&#123;/if&#125;&lt;slot /&gt;&#123;#if href&#125;&lt;a href=&quot;&#123;href&#125;&quot; class=&quot;wire-btn wire-btn--ghost&quot;&gt;&#123;actionLabel&#125;&lt;/a&gt;&#123;/if&#125;&lt;/article&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.77</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>
}
}