page StatusBannercomponent {
  seo {
    title = "StatusBanner component"
    description = "Reusable status banner 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.2</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">StatusBanner</span></nav><section class="doc-intro"><span class="eyebrow">core component</span><h1>StatusBanner</h1><p>Reusable status banner component.</p><div class="doc-meta"><span>@wrnexus/ui 0.3.2</span><span>9 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;StatusBanner
  type=&quot;info&quot;
  title=&quot;title&quot;
  description=&quot;description&quot;
  actionLabel=&quot;actionLabel&quot;
  actionHref=&quot;actionHref&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;StatusBanner&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>type</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;info&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>actionLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>actionHref</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>dismissible</code></td><td><code>boolean</code></td><td>Optional</td><td><code>true</code></td></tr><tr><td><code>compact</code></td><td><code>boolean</code></td><td>Optional</td><td><code>false</code></td></tr><tr><td><code>details</code></td><td><code>string</code></td><td>Optional</td><td><code>[]</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/StatusBanner.wrn</code></p><pre data-language="wrn"><code>component StatusBanner &#123;
    props &#123;
        class: string = &quot;&quot;
        type = &quot;info&quot;

        title = &quot;&quot;
        description = &quot;&quot;

        actionLabel = &quot;&quot;
        actionHref = &quot;&quot;

        dismissible = true
        compact = false

        details = []
    &#125;

    state visible = true

    view &#123;
        &lt;aside
            role=&quot;&#123;type === 'error' ? 'alert' : 'status'&#125;&quot;
            aria-live=&quot;&#123;type === 'error' ? 'assertive' : 'polite'&#125;&quot;
            class=&quot;relative overflow-hidden &#123;class&#125;&quot;
            class:hidden=&quot;!visible&quot;
        &gt;
        &lt;div
                class=&quot; relative overflow-hidden rounded-2xl &#123;compact ? 'px-4 py-3' : 'px-5 py-4 sm:px-6'&#125; &#123;type === 'success' ? 'bg-emerald-50 text-emerald-950 ring-1 ring-inset ring-emerald-200 dark:bg-emerald-500/10 dark:text-emerald-100 dark:ring-emerald-500/20' : type === 'warning' ? 'bg-amber-50 text-amber-950 ring-1 ring-inset ring-amber-200 dark:bg-amber-500/10 dark:text-amber-100 dark:ring-amber-500/20' : type === 'error' ? 'bg-rose-50 text-rose-950 ring-1 ring-inset ring-rose-200 dark:bg-rose-500/10 dark:text-rose-100 dark:ring-rose-500/20' : 'bg-indigo-50 text-indigo-950 ring-1 ring-inset ring-indigo-200 dark:bg-indigo-500/10 dark:text-indigo-100 dark:ring-indigo-500/20' &#125; &quot;
            &gt;
        &lt;!-- Decorative glow --&gt;
        &lt;div aria-hidden=&quot;true&quot; class=&quot; pointer-events-none absolute -right-16 -top-20 h-40 w-40 rounded-full blur-3xl &#123;type === 'success' ? 'bg-emerald-300/30 dark:bg-emerald-500/10' : type === 'warning' ? 'bg-amber-300/30 dark:bg-amber-500/10' : type === 'error' ? 'bg-rose-300/30 dark:bg-rose-500/10' : 'bg-indigo-300/30 dark:bg-indigo-500/10' &#125; &quot; &gt;
        &lt;/div&gt;
        &lt;div
                    class=&quot;relative flex gap-4&quot;
                    class:items-center=&quot;compact&quot;
                    class:items-start=&quot;!compact&quot;
                &gt;
        &lt;!-- Icon --&gt;
        &lt;span
                        class=&quot; grid shrink-0 place-items-center rounded-xl &#123;compact ? 'h-9 w-9' : 'h-10 w-10'&#125; &#123;type === 'success' ? 'bg-emerald-100 text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300' : type === 'warning' ? 'bg-amber-100 text-amber-700 dark:bg-amber-500/15 dark:text-amber-300' : type === 'error' ? 'bg-rose-100 text-rose-700 dark:bg-rose-500/15 dark:text-rose-300' : 'bg-indigo-100 text-indigo-700 dark:bg-indigo-500/15 dark:text-indigo-300' &#125; &quot;
                    &gt;
        &lt;span class=&quot; h-5 w-5 &#123;type === 'success' ? 'icon-[lucide--circle-check]' : type === 'warning' ? 'icon-[lucide--triangle-alert]' : type === 'error' ? 'icon-[lucide--circle-x]' : 'icon-[lucide--info]' &#125; &quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;!-- Content --&gt;
        &lt;div class=&quot;min-w-0 flex-1&quot;&gt;
        &lt;div
                            class=&quot;flex flex-col gap-3 sm:flex-row sm:justify-between&quot;
                            class:sm:items-center=&quot;compact&quot;
                            class:sm:items-start=&quot;!compact&quot;
                        &gt;
        &lt;div class=&quot;min-w-0&quot;&gt;
        &lt;h2
                                    class=&quot;font-bold&quot;
                                    class:text-sm=&quot;compact&quot;
                                    class:text-base=&quot;!compact&quot;
                                    class:hidden=&quot;title === ''&quot;
                                &gt;
                                    &#123;title&#125;
                                &lt;/h2&gt;
        &lt;p
                                    class=&quot;text-sm leading-6 opacity-80&quot;
                                    class:mt-1=&quot;title !== ''&quot;
                                    class:hidden=&quot;description === ''&quot;
                                &gt;
                                    &#123;description&#125;
                                &lt;/p&gt;
        &lt;/div&gt;
        &lt;!-- Actions --&gt;
        &lt;div class=&quot;flex shrink-0 items-center gap-2&quot;&gt;
        &lt;a
                                    href=&quot;&#123;actionHref&#125;&quot;
                                    class=&quot; h-9 items-center justify-center gap-1.5 rounded-lg px-3 text-xs font-bold transition &#123;type === 'success' ? 'bg-emerald-600 text-white hover:bg-emerald-500' : type === 'warning' ? 'bg-amber-600 text-white hover:bg-amber-500' : type === 'error' ? 'bg-rose-600 text-white hover:bg-rose-500' : 'bg-indigo-600 text-white hover:bg-indigo-500' &#125; &quot;
                                    class:hidden=&quot;actionLabel === ''&quot;
                                    class:inline-flex=&quot;actionLabel !== ''&quot;
                                &gt;
                                    &#123;actionLabel&#125;

                                    &lt;span class=&quot;icon-[lucide--arrow-up-right] h-3.5 w-3.5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/a&gt;
        &lt;button
                                    type=&quot;button&quot;
                                    @click=&quot;visible = false&quot;
                                    aria-label=&quot;Dismiss notice&quot;
                                    class=&quot;grid h-9 w-9 place-items-center rounded-lg opacity-60 transition hover:bg-black/5 hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-current dark:hover:bg-white/10&quot;
                                    class:hidden=&quot;!dismissible&quot;
                                &gt;
        &lt;span class=&quot;icon-[lucide--x] h-4 w-4&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/button&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- Dynamic details --&gt;
        &lt;div
                            class=&quot;mt-4 flex flex-wrap gap-x-5 gap-y-2 border-t pt-4 text-xs font-medium&quot;
                            class:hidden=&quot;compact || details.length === 0&quot;
                            class:border-emerald-200=&quot;type === 'success'&quot;
                            class:border-amber-200=&quot;type === 'warning'&quot;
                            class:border-rose-200=&quot;type === 'error'&quot;
                            class:border-indigo-200=&quot;type === 'info'&quot;
                            class:dark:border-emerald-500/20=&quot;type === 'success'&quot;
                            class:dark:border-amber-500/20=&quot;type === 'warning'&quot;
                            class:dark:border-rose-500/20=&quot;type === 'error'&quot;
                            class:dark:border-indigo-500/20=&quot;type === 'info'&quot;
                        &gt;
                            &#123;#each details.slice(0, 4) as detail&#125;
                            &lt;span class=&quot;inline-flex items-center gap-2 opacity-80&quot;&gt;
        &lt;span class=&quot;&#123;detail.iconClass&#125; h-3.5 w-3.5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;

                                &#123;detail.label&#125;
                            &lt;/span&gt;
                            &#123;/each&#125;
                        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/aside&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.2</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>
  }
}
