Files
WRNexusJSDoc/app/pages/components/analytics-dashboard-preview.wrn
T

116 lines
9.1 KiB
Plaintext

page AnalyticsDashboardPreviewcomponent {
seo {
title = "AnalyticsDashboardPreview component"
description = "Reusable analytics dashboard 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.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">AnalyticsDashboardPreview</span></nav><section class="doc-intro"><span class="eyebrow">content component</span><h1>AnalyticsDashboardPreview</h1><p>Reusable analytics dashboard preview component.</p><div class="doc-meta"><span>@wrnexus/ui 0.3.3</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;AnalyticsDashboardPreview
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;AnalyticsDashboardPreview&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/AnalyticsDashboardPreview.wrn</code></p><pre data-language="wrn"><code>component AnalyticsDashboardPreview &#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;section class=&quot;px-4 py-10 sm:px-6 sm:py-12 lg:px-8 lg:py-14 &#123;class&#125;&quot;&gt;
&lt;div
class=&quot;mx-auto grid w-full max-w-7xl gap-8 overflow-hidden rounded-3xl border border-[var(--wire-color-border,#e2e8f0)] bg-[var(--wire-color-surface,#ffffff)] p-5 shadow-[var(--wire-shadow-1,0_12px_30px_rgb(0_0_0/0.08))] sm:p-7 lg:grid-cols-[minmax(0,1.15fr)_minmax(20rem,0.85fr)] lg:items-center lg:p-8&quot;
&gt;
&lt;div&gt;
&#123;#if image&#125;
&lt;img
src=&quot;&#123;image&#125;&quot;
alt=&quot;&#123;alt&#125;&quot;
class=&quot;aspect-[16/9] w-full rounded-2xl border border-[var(--wire-color-border,#e2e8f0)] object-cover&quot;
/&gt;
&#123;:else&#125;
&lt;div
class=&quot;rounded-2xl border border-[var(--wire-color-border,#e2e8f0)] bg-[var(--wire-color-surface-2,#f8fafc)] p-4 sm:p-5&quot;
role=&quot;img&quot;
aria-label=&quot;Delivery trend rising over seven days&quot;
&gt;
&lt;div class=&quot;flex items-center justify-between gap-4 text-sm&quot;&gt;
&lt;strong class=&quot;text-[var(--wire-color-text,#0f172a)]&quot;&gt;Delivery trend&lt;/strong&gt;
&lt;span class=&quot;font-bold text-[var(--wire-color-success,#059669)]&quot;&gt;↗ 18.4%&lt;/span&gt;
&lt;/div&gt;
&lt;svg
class=&quot;mt-4 h-auto w-full text-[var(--wire-color-primary,#059669)]&quot;
viewBox=&quot;0 0 700 250&quot;
aria-hidden=&quot;true&quot;
&gt;
&lt;defs&gt;
&lt;linearGradient
id=&quot;wire-analytics-area&quot;
x1=&quot;0&quot;
y1=&quot;0&quot;
x2=&quot;0&quot;
y2=&quot;1&quot;
&gt;
&lt;stop offset=&quot;0%&quot; stop-color=&quot;currentColor&quot; stop-opacity=&quot;.24&quot;&gt;
&lt;/stop&gt;
&lt;stop offset=&quot;100%&quot; stop-color=&quot;currentColor&quot; stop-opacity=&quot;0&quot;&gt;
&lt;/stop&gt;
&lt;/linearGradient&gt;
&lt;/defs&gt;
&lt;g fill=&quot;none&quot; stroke=&quot;var(--wire-color-border,#e2e8f0)&quot;&gt;
&lt;path d=&quot;M20 50H680M20 115H680M20 180H680M20 230H680&quot;&gt;
&lt;/path&gt;
&lt;/g&gt;
&lt;path fill=&quot;url(#wire-analytics-area)&quot; d=&quot;M20 210 C100 195 120 150 190 165 S310 195 370 120 S475 130 525 100 S610 90 680 32 L680 230 L20 230Z&quot;&gt;
&lt;/path&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;6&quot; stroke-linecap=&quot;round&quot; d=&quot;M20 210 C100 195 120 150 190 165 S310 195 370 120 S475 130 525 100 S610 90 680 32&quot;&gt;
&lt;/path&gt;
&lt;/svg&gt;
&lt;div class=&quot;mt-2 flex justify-between text-[0.7rem] text-[var(--wire-color-muted,#64748b)]&quot;&gt;
&lt;span&gt;Mon&lt;/span&gt;
&lt;span&gt;Tue&lt;/span&gt;
&lt;span&gt;Wed&lt;/span&gt;
&lt;span&gt;Thu&lt;/span&gt;
&lt;span&gt;Fri&lt;/span&gt;
&lt;span&gt;Sat&lt;/span&gt;
&lt;span&gt;Sun&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&#123;/if&#125;
&lt;/div&gt;
&lt;div&gt;
&#123;#if eyebrow&#125;&lt;p class=&quot;m-0 text-xs font-bold uppercase tracking-[0.16em] text-[var(--wire-color-primary,#059669)]&quot;&gt;&#123;eyebrow&#125;&lt;/p&gt;&#123;/if&#125;
&#123;#if title&#125;&lt;h2 class=&quot;mt-4 text-3xl font-semibold tracking-[-0.035em] text-[var(--wire-color-text,#0f172a)]&quot;&gt;&#123;title&#125;&lt;/h2&gt;&#123;/if&#125;
&#123;#if description&#125;&lt;p class=&quot;mt-4 leading-7 text-[var(--wire-color-muted,#64748b)]&quot;&gt;&#123;description&#125;&lt;/p&gt;&#123;/if&#125;
&lt;div class=&quot;mt-5&quot;&gt;
&lt;slot /&gt;
&lt;/div&gt;
&#123;#if href&#125;&lt;a href=&quot;&#123;href&#125;&quot; class=&quot;mt-6 inline-flex items-center gap-2 font-semibold text-[var(--wire-color-primary,#059669)] no-underline&quot;&gt;&#123;actionLabel&#125;&lt;span aria-hidden=&quot;true&quot;&gt;→&lt;/span&gt;
&lt;/a&gt;&#123;/if&#125;
&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>
}
}