page AnnouncementBarcomponent {
  seo {
    title = "AnnouncementBar component"
    description = "Reusable announcement bar 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.71</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">AnnouncementBar</span></nav><section class="doc-intro"><span class="eyebrow">core component</span><h1>AnnouncementBar</h1><p>Reusable announcement bar component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.71</span><span>7 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;AnnouncementBar
  badge=&quot;New&quot;
  message=&quot;WRNexusJS Organizations is now available.&quot;
  description=&quot;Build secure multi-tenant applications with teams, roles, domains, and enterprise SSO.&quot;
  href=&quot;/organizations&quot;
  actionLabel=&quot;Explore organizations&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;AnnouncementBar&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>badge</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;New&quot;</code></td></tr><tr><td><code>message</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;WRNexusJS Organizations is now available.&quot;</code></td></tr><tr><td><code>description</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Build secure multi-tenant applications with teams, roles, domains, and enterprise SSO.&quot;</code></td></tr><tr><td><code>href</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;/organizations&quot;</code></td></tr><tr><td><code>actionLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Explore organizations&quot;</code></td></tr><tr><td><code>ariaLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Announcement&quot;</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/AnnouncementBar.wrn</code></p><pre data-language="wrn"><code>component AnnouncementBar &#123;
    props &#123;
        class: string = &quot;&quot;
        badge: string = &quot;New&quot;
        message: string = &quot;WRNexusJS Organizations is now available.&quot;
        description: string = &quot;Build secure multi-tenant applications with teams, roles, domains, and enterprise SSO.&quot;
        href: string = &quot;/organizations&quot;
        actionLabel: string = &quot;Explore organizations&quot;
        ariaLabel: string = &quot;Announcement&quot;
        badgeIcon: string = &quot;icon-[lucide--sparkles]&quot;
        actionIcon: string = &quot;icon-[lucide--arrow-right]&quot;
        dismissLabel: string = &quot;Dismiss announcement&quot;
        showBadge: boolean = true
        showDescription: boolean = true
        showAction: boolean = true
        dismissible: boolean = true
    &#125;

    state visible = true

    view &#123;
        &lt;aside
            role=&quot;region&quot;
            aria-label=&quot;&#123;ariaLabel&#125;&quot;
            class=&quot;relative z-[70] overflow-hidden border-b border-indigo-200 bg-indigo-50 text-slate-900 dark:border-indigo-500/20 dark:bg-indigo-500/10 dark:text-white &#123;class&#125;&quot;
            class:hidden=&quot;!visible&quot;
        &gt;
        &lt;!-- Decorative background --&gt;
        &lt;div
                aria-hidden=&quot;true&quot;
                class=&quot;pointer-events-none absolute inset-0 overflow-hidden&quot;
            &gt;
        &lt;div class=&quot;absolute -left-20 -top-24 h-40 w-40 rounded-full bg-indigo-300/30 blur-3xl dark:bg-indigo-500/10&quot;&gt;
        &lt;/div&gt;
        &lt;div class=&quot;absolute -right-20 -bottom-24 h-40 w-40 rounded-full bg-violet-300/30 blur-3xl dark:bg-violet-500/10&quot;&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;div
                class=&quot;relative flex min-h-11 w-full items-center justify-between gap-4 px-4 py-2.5 sm:px-6 lg:px-10 xl:px-12&quot;
            &gt;
        &lt;div class=&quot;flex min-w-0 flex-1 items-center justify-center gap-3&quot;&gt;
        &lt;!-- Badge --&gt;
        &lt;span data-show=&quot;showBadge&quot;
                        class=&quot;hidden shrink-0 items-center gap-1.5 rounded-full bg-indigo-600 px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.12em] text-white shadow-sm sm:inline-flex&quot;
                    &gt;
        &lt;span class=&quot;&#123;badgeIcon&#125; h-3 w-3&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;

                        &#123;badge&#125;
                    &lt;/span&gt;
        &lt;!-- Message --&gt;
        &lt;p
                        class=&quot;min-w-0 text-center text-xs font-medium leading-5 text-slate-700 dark:text-slate-300 sm:text-sm&quot;
                    &gt;
        &lt;span class=&quot;font-semibold text-slate-950 dark:text-white&quot;&gt;
                            &#123;message&#125;
                        &lt;/span&gt;
        &lt;span data-show=&quot;showDescription&quot; class=&quot;hidden md:inline&quot;&gt;
                            &#123;description&#125;
                        &lt;/span&gt;
        &lt;/p&gt;
        &lt;!-- CTA --&gt;
        &lt;a data-show=&quot;showAction&quot;
                        href=&quot;&#123;href&#125;&quot;
                        class=&quot;group hidden shrink-0 items-center gap-1.5 text-xs font-bold text-indigo-700 transition hover:text-indigo-900 dark:text-indigo-300 dark:hover:text-indigo-200 sm:inline-flex&quot;
                    &gt;
                        &#123;actionLabel&#125;

                        &lt;span class=&quot;&#123;actionIcon&#125; h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/a&gt;
        &lt;/div&gt;
        &lt;!-- Mobile CTA --&gt;
        &lt;a data-show=&quot;showAction&quot;
                    href=&quot;&#123;href&#125;&quot;
                    aria-label=&quot;&#123;actionLabel&#125;&quot;
                    class=&quot;grid h-8 w-8 shrink-0 place-items-center rounded-lg bg-indigo-100 text-indigo-700 transition hover:bg-indigo-200 dark:bg-indigo-500/15 dark:text-indigo-300 dark:hover:bg-indigo-500/25 sm:hidden&quot;
                &gt;
        &lt;span class=&quot;icon-[lucide--arrow-up-right] h-4 w-4&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/a&gt;
        &lt;!-- Close --&gt;
        &lt;button data-show=&quot;dismissible&quot;
                    type=&quot;button&quot;
                    @click=&quot;visible = false&quot;
                    aria-label=&quot;&#123;dismissLabel&#125;&quot;
                    class=&quot;grid h-8 w-8 shrink-0 place-items-center rounded-lg text-slate-500 transition hover:bg-indigo-100 hover:text-slate-950 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:text-slate-400 dark:hover:bg-white/10 dark:hover:text-white&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;/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.2.71</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>
  }
}
