page CookieConsentcomponent {
  seo {
    title = "CookieConsent component"
    description = "Reusable cookie consent 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">CookieConsent</span></nav><section class="doc-intro"><span class="eyebrow">core component</span><h1>CookieConsent</h1><p>Reusable cookie consent component.</p><div class="doc-meta"><span>@wrnexus/ui 0.3.2</span><span>1 props</span><span>0 slots</span><span>2 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;CookieConsent /&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;CookieConsent&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></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><li><code>change</code></li></ul></section><section id="source"><h2>Source contract</h2><p>Installed source: <code>components/CookieConsent.wrn</code></p><pre data-language="wrn"><code>component CookieConsent &#123;
    props &#123;
        class: string = &quot;&quot;
    &#125;
    state bannerOpen = false
    state preferencesOpen = false

    state analyticsCookies = false
    state personalizationCookies = false
    state marketingCookies = false

    view &#123;
        &lt;div class=&quot;&#123;class&#125;&quot; class:hidden=&quot;!bannerOpen&quot;&gt;
        &lt;!-- Cookie consent banner --&gt;
        &lt;section
                role=&quot;dialog&quot;
                aria-modal=&quot;false&quot;
                aria-labelledby=&quot;cookie-consent-title&quot;
                aria-describedby=&quot;cookie-consent-description&quot;
                class=&quot;fixed inset-x-0 bottom-0 z-[80] p-4 sm:p-5 lg:p-6 &#123;class&#125;&quot;
                class:hidden=&quot;!bannerOpen || preferencesOpen&quot;
                class:block=&quot;bannerOpen &amp;&amp; !preferencesOpen&quot;
            &gt;
        &lt;div
                    class=&quot;mx-auto w-full max-w-7xl overflow-hidden rounded-3xl border border-slate-200 bg-white/95 shadow-2xl shadow-slate-950/20 backdrop-blur-xl dark:border-white/10 dark:bg-slate-900/95 dark:shadow-black/40&quot;
                &gt;
        &lt;div class=&quot;grid items-center gap-6 p-5 sm:p-6 lg:grid-cols-[minmax(0,1fr)_auto] lg:p-7&quot;&gt;
        &lt;!-- Message --&gt;
        &lt;div class=&quot;flex items-start gap-4&quot;&gt;
        &lt;span
                                class=&quot;grid h-11 w-11 shrink-0 place-items-center rounded-2xl bg-indigo-100 text-indigo-700 dark:bg-indigo-500/15 dark:text-indigo-300&quot;
                            &gt;
        &lt;span class=&quot;icon-[lucide--cookie] h-5 w-5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;div class=&quot;min-w-0&quot;&gt;
        &lt;div class=&quot;flex flex-wrap items-center gap-2&quot;&gt;
        &lt;h2
                                        id=&quot;cookie-consent-title&quot;
                                        class=&quot;text-base font-bold text-slate-950 dark:text-white&quot;
                                    &gt;
                                        Your privacy matters
                                    &lt;/h2&gt;
        &lt;span
                                        class=&quot;inline-flex items-center rounded-full bg-emerald-100 px-2.5 py-1 text-[10px] font-bold uppercase tracking-wide text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300&quot;
                                    &gt;
                                        Privacy first
                                    &lt;/span&gt;
        &lt;/div&gt;
        &lt;p
                                    id=&quot;cookie-consent-description&quot;
                                    class=&quot;mt-2 max-w-3xl text-sm leading-6 text-slate-600 dark:text-slate-400&quot;
                                &gt;
                                    We use essential cookies to operate WRNexusJS. With your
                                    permission, we also use analytics and personalization cookies
                                    to improve your experience.
                                &lt;/p&gt;
        &lt;div class=&quot;mt-3 flex flex-wrap items-center gap-x-4 gap-y-2&quot;&gt;
        &lt;a
                                        href=&quot;/cookies&quot;
                                        class=&quot;inline-flex items-center gap-1.5 text-xs font-semibold text-indigo-600 transition hover:text-indigo-800 dark:text-indigo-400 dark:hover:text-indigo-300&quot;
                                    &gt;
                                        Cookie policy

                                        &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;a
                                        href=&quot;/privacy&quot;
                                        class=&quot;inline-flex items-center gap-1.5 text-xs font-semibold text-slate-500 transition hover:text-indigo-700 dark:text-slate-400 dark:hover:text-indigo-300&quot;
                                    &gt;
                                        Privacy policy
                                    &lt;/a&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- Actions --&gt;
        &lt;div class=&quot;grid gap-2 sm:grid-cols-3 lg:flex lg:items-center&quot;&gt;
        &lt;button
                                type=&quot;button&quot;
                                @click=&quot; analyticsCookies = false; personalizationCookies = false; marketingCookies = false; bannerOpen = false &quot;
                                data-cookie-action=&quot;essential&quot;
                                class=&quot;inline-flex h-11 items-center justify-center rounded-xl border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-700 transition hover:border-slate-300 hover:bg-slate-100 hover:text-slate-950 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:border-white/10 dark:bg-white/5 dark:text-slate-200 dark:hover:border-white/20 dark:hover:bg-white/10 dark:hover:text-white&quot;
                            &gt;
                                Essential only
                            &lt;/button&gt;
        &lt;button
                                type=&quot;button&quot;
                                @click=&quot;preferencesOpen = true&quot;
                                class=&quot;inline-flex h-11 items-center justify-center gap-2 rounded-xl border border-indigo-200 bg-indigo-50 px-4 text-sm font-semibold text-indigo-700 transition hover:border-indigo-300 hover:bg-indigo-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:border-indigo-500/20 dark:bg-indigo-500/10 dark:text-indigo-300 dark:hover:border-indigo-500/30 dark:hover:bg-indigo-500/15&quot;
                            &gt;
        &lt;span class=&quot;icon-[lucide--settings-2] h-4 w-4&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;

                                Preferences
                            &lt;/button&gt;
        &lt;button
                                type=&quot;button&quot;
                                @click=&quot; analyticsCookies = true; personalizationCookies = true; marketingCookies = true; bannerOpen = false &quot;
                                data-cookie-action=&quot;accept-all&quot;
                                class=&quot;inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-indigo-600 px-5 text-sm font-bold text-white shadow-lg shadow-indigo-600/20 transition hover:-translate-y-0.5 hover:bg-indigo-500 hover:shadow-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-slate-900&quot;
                            &gt;
                                Accept all

                                &lt;span class=&quot;icon-[lucide--check] h-4 w-4&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/button&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/section&gt;
        &lt;!-- Preferences backdrop --&gt;
        &lt;button type=&quot;button&quot; @click=&quot;preferencesOpen = false&quot; aria-label=&quot;Close cookie preferences&quot; class=&quot;fixed inset-0 z-[90] bg-slate-950/50 backdrop-blur-sm&quot; class:hidden=&quot;!preferencesOpen&quot; class:block=&quot;preferencesOpen&quot; &gt;
        &lt;/button&gt;
        &lt;!-- Preferences modal --&gt;
        &lt;section
                role=&quot;dialog&quot;
                aria-modal=&quot;true&quot;
                aria-labelledby=&quot;cookie-preferences-title&quot;
                aria-describedby=&quot;cookie-preferences-description&quot;
                class=&quot;fixed inset-0 z-[100] overflow-y-auto p-4 sm:p-6&quot;
                class:hidden=&quot;!preferencesOpen&quot;
                class:block=&quot;preferencesOpen&quot;
            &gt;
        &lt;div class=&quot;flex min-h-full items-end justify-center sm:items-center&quot;&gt;
        &lt;div
                        class=&quot;relative w-full max-w-2xl overflow-hidden rounded-t-3xl border border-slate-200 bg-white shadow-2xl shadow-slate-950/30 dark:border-white/10 dark:bg-slate-900 dark:shadow-black/50 sm:rounded-3xl&quot;
                    &gt;
        &lt;!-- Modal header --&gt;
        &lt;header class=&quot;border-b border-slate-200 px-5 py-5 dark:border-white/10 sm:px-6&quot;&gt;
        &lt;div class=&quot;flex items-start justify-between gap-4&quot;&gt;
        &lt;div class=&quot;flex items-start gap-4&quot;&gt;
        &lt;span
                                        class=&quot;grid h-11 w-11 shrink-0 place-items-center rounded-2xl bg-indigo-100 text-indigo-700 dark:bg-indigo-500/15 dark:text-indigo-300&quot;
                                    &gt;
        &lt;span class=&quot;icon-[lucide--sliders-horizontal] h-5 w-5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;div&gt;
        &lt;h2
                                            id=&quot;cookie-preferences-title&quot;
                                            class=&quot;text-lg font-bold tracking-tight text-slate-950 dark:text-white&quot;
                                        &gt;
                                            Cookie preferences
                                        &lt;/h2&gt;
        &lt;p
                                            id=&quot;cookie-preferences-description&quot;
                                            class=&quot;mt-1 text-sm leading-6 text-slate-500 dark:text-slate-400&quot;
                                        &gt;
                                            Choose which optional cookies WRNexusJS may use.
                                        &lt;/p&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;button
                                    type=&quot;button&quot;
                                    @click=&quot;preferencesOpen = false&quot;
                                    aria-label=&quot;Close cookie preferences&quot;
                                    class=&quot;grid h-10 w-10 shrink-0 place-items-center rounded-xl border border-slate-200 bg-white text-slate-500 transition hover:bg-slate-100 hover:text-slate-950 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:border-white/10 dark:bg-white/5 dark:text-slate-400 dark:hover:bg-white/10 dark:hover:text-white&quot;
                                &gt;
        &lt;span class=&quot;icon-[lucide--x] h-4.5 w-4.5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/button&gt;
        &lt;/div&gt;
        &lt;/header&gt;
        &lt;!-- Preference groups --&gt;
        &lt;div class=&quot;max-h-[60dvh] space-y-3 overflow-y-auto p-5 sm:p-6&quot;&gt;
        &lt;!-- Essential --&gt;
        &lt;article
                                class=&quot;rounded-2xl bg-emerald-500/10 p-4 ring-1 ring-inset ring-emerald-500/15 transition dark:bg-emerald-500/10 dark:ring-emerald-400/10&quot;
                            &gt;
        &lt;div class=&quot;flex items-start justify-between gap-4&quot;&gt;
        &lt;div class=&quot;flex items-start gap-3&quot;&gt;
        &lt;span
                                            class=&quot;grid h-10 w-10 shrink-0 place-items-center rounded-xl bg-emerald-500/15 text-emerald-700 dark:bg-emerald-400/10 dark:text-emerald-300&quot;
                                        &gt;
        &lt;span class=&quot;icon-[lucide--shield-check] h-4.5 w-4.5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;div&gt;
        &lt;div class=&quot;flex flex-wrap items-center gap-2&quot;&gt;
        &lt;h3 class=&quot;text-sm font-bold text-slate-950 dark:text-white&quot;&gt;
                                                    Essential cookies
                                                &lt;/h3&gt;
        &lt;span
                                                    class=&quot;rounded-full bg-emerald-500/15 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-emerald-700 dark:bg-emerald-400/10 dark:text-emerald-300&quot;
                                                &gt;
                                                    Always active
                                                &lt;/span&gt;
        &lt;/div&gt;
        &lt;p class=&quot;mt-1.5 text-xs leading-5 text-slate-600 dark:text-slate-400&quot;&gt;
                                                Required for authentication, security, sessions, preferences, and core website functionality.
                                            &lt;/p&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;span
                                        class=&quot;relative inline-flex h-6 w-11 shrink-0 cursor-not-allowed rounded-full bg-emerald-500&quot;
                                        aria-hidden=&quot;true&quot;
                                    &gt;
        &lt;span class=&quot;absolute right-1 top-1 h-4 w-4 rounded-full bg-white shadow-sm&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;/div&gt;
        &lt;/article&gt;
        &lt;!-- Analytics --&gt;
        &lt;article
                                class=&quot;rounded-2xl p-4 transition-all duration-200 &#123;analyticsCookies ? 'bg-indigo-50 ring-1 ring-inset ring-indigo-200 dark:bg-indigo-500/10 dark:ring-indigo-500/20' : 'bg-slate-50 ring-1 ring-inset ring-slate-200 dark:bg-white/5 dark:ring-white/10' &#125;&quot;
                            &gt;
        &lt;label class=&quot;flex cursor-pointer items-start justify-between gap-4&quot;&gt;
        &lt;span class=&quot;flex min-w-0 items-start gap-3&quot;&gt;
        &lt;span
                                            class=&quot;grid h-10 w-10 shrink-0 place-items-center rounded-xl transition-all duration-200 &#123;analyticsCookies ? 'bg-indigo-100 text-indigo-700 dark:bg-indigo-500/15 dark:text-indigo-300' : 'bg-slate-200 text-slate-500 dark:bg-white/10 dark:text-slate-400' &#125;&quot;
                                        &gt;
        &lt;span class=&quot;icon-[lucide--chart-no-axes-combined] h-5 w-5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;span class=&quot;min-w-0&quot;&gt;
        &lt;span class=&quot;block text-sm font-bold text-slate-950 dark:text-white&quot;&gt;
                                                Analytics cookies
                                            &lt;/span&gt;
        &lt;span class=&quot;mt-1 block text-xs leading-5 text-slate-600 dark:text-slate-400&quot;&gt;
                                                Help us understand website usage, performance, and navigation patterns.
                                            &lt;/span&gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;span class=&quot;relative mt-0.5 shrink-0&quot;&gt;
        &lt;input
                                            type=&quot;checkbox&quot;
                                            name=&quot;analytics&quot;
                                            checked=&quot;&#123;analyticsCookies&#125;&quot;
                                            @change=&quot;analyticsCookies = event.target.checked&quot;
                                            class=&quot;peer sr-only&quot;
                                        /&gt;
        &lt;span class=&quot;block h-6 w-11 rounded-full bg-slate-300 transition-colors duration-200 peer-checked:bg-indigo-600 peer-focus-visible:ring-4 peer-focus-visible:ring-indigo-500/20 dark:bg-slate-700&quot; &gt;
        &lt;/span&gt;
        &lt;span class=&quot;absolute left-1 top-1 h-4 w-4 rounded-full bg-white shadow-sm transition-transform duration-200 peer-checked:translate-x-5&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;/label&gt;
        &lt;/article&gt;
        &lt;!-- Personalization --&gt;
        &lt;article
                                class=&quot;rounded-2xl p-4 transition-all duration-200 &#123;personalizationCookies ? 'bg-violet-50 ring-1 ring-inset ring-violet-200 dark:bg-violet-500/10 dark:ring-violet-500/20' : 'bg-slate-50 ring-1 ring-inset ring-slate-200 dark:bg-white/5 dark:ring-white/10' &#125;&quot;
                            &gt;
        &lt;label class=&quot;flex cursor-pointer items-start justify-between gap-4&quot;&gt;
        &lt;span class=&quot;flex min-w-0 items-start gap-3&quot;&gt;
        &lt;span
                                            class=&quot;grid h-10 w-10 shrink-0 place-items-center rounded-xl transition-all duration-200 &#123;personalizationCookies ? 'bg-violet-100 text-violet-700 dark:bg-violet-500/15 dark:text-violet-300' : 'bg-slate-200 text-slate-500 dark:bg-white/10 dark:text-slate-400' &#125;&quot;
                                        &gt;
        &lt;span class=&quot;icon-[lucide--sparkles] h-5 w-5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;span class=&quot;min-w-0&quot;&gt;
        &lt;span class=&quot;block text-sm font-bold text-slate-950 dark:text-white&quot;&gt;
                                                Personalization cookies
                                            &lt;/span&gt;
        &lt;span class=&quot;mt-1 block text-xs leading-5 text-slate-600 dark:text-slate-400&quot;&gt;
                                                Remember your choices and provide a more relevant website experience.
                                            &lt;/span&gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;span class=&quot;relative mt-0.5 shrink-0&quot;&gt;
        &lt;input
                                            type=&quot;checkbox&quot;
                                            name=&quot;personalization&quot;
                                            checked=&quot;&#123;personalizationCookies&#125;&quot;
                                            @change=&quot;personalizationCookies = event.target.checked&quot;
                                            class=&quot;peer sr-only&quot;
                                        /&gt;
        &lt;span class=&quot;block h-6 w-11 rounded-full bg-slate-300 transition-colors duration-200 peer-checked:bg-violet-600 peer-focus-visible:ring-4 peer-focus-visible:ring-violet-500/20 dark:bg-slate-700&quot; &gt;
        &lt;/span&gt;
        &lt;span class=&quot;absolute left-1 top-1 h-4 w-4 rounded-full bg-white shadow-sm transition-transform duration-200 peer-checked:translate-x-5&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;/label&gt;
        &lt;/article&gt;
        &lt;!-- Marketing --&gt;
        &lt;article
                                class=&quot;rounded-2xl p-4 transition-all duration-200 &#123;marketingCookies ? 'bg-rose-50 ring-1 ring-inset ring-rose-200 dark:bg-rose-500/10 dark:ring-rose-500/20' : 'bg-slate-50 ring-1 ring-inset ring-slate-200 dark:bg-white/5 dark:ring-white/10' &#125;&quot;
                            &gt;
        &lt;label class=&quot;flex cursor-pointer items-start justify-between gap-4&quot;&gt;
        &lt;span class=&quot;flex min-w-0 items-start gap-3&quot;&gt;
        &lt;span
                                            class=&quot;grid h-10 w-10 shrink-0 place-items-center rounded-xl transition-all duration-200 &#123;marketingCookies ? 'bg-rose-100 text-rose-700 dark:bg-rose-500/15 dark:text-rose-300' : 'bg-slate-200 text-slate-500 dark:bg-white/10 dark:text-slate-400' &#125;&quot;
                                        &gt;
        &lt;span class=&quot;icon-[lucide--megaphone] h-5 w-5&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;span class=&quot;min-w-0&quot;&gt;
        &lt;span class=&quot;block text-sm font-bold text-slate-950 dark:text-white&quot;&gt;
                                                Marketing cookies
                                            &lt;/span&gt;
        &lt;span class=&quot;mt-1 block text-xs leading-5 text-slate-600 dark:text-slate-400&quot;&gt;
                                                Measure campaigns and show relevant WRNexusJS content across supported services.
                                            &lt;/span&gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;span class=&quot;relative mt-0.5 shrink-0&quot;&gt;
        &lt;input
                                            type=&quot;checkbox&quot;
                                            name=&quot;marketing&quot;
                                            checked=&quot;&#123;marketingCookies&#125;&quot;
                                            @change=&quot;marketingCookies = event.target.checked&quot;
                                            class=&quot;peer sr-only&quot;
                                        /&gt;
        &lt;span class=&quot;block h-6 w-11 rounded-full bg-slate-300 transition-colors duration-200 peer-checked:bg-rose-600 peer-focus-visible:ring-4 peer-focus-visible:ring-rose-500/20 dark:bg-slate-700&quot; &gt;
        &lt;/span&gt;
        &lt;span class=&quot;absolute left-1 top-1 h-4 w-4 rounded-full bg-white shadow-sm transition-transform duration-200 peer-checked:translate-x-5&quot; &gt;
        &lt;/span&gt;
        &lt;/span&gt;
        &lt;/label&gt;
        &lt;/article&gt;
        &lt;/div&gt;
        &lt;!-- Modal footer --&gt;
        &lt;footer
                            class=&quot;border-t border-slate-200 bg-slate-50 px-5 py-4 dark:border-white/10 dark:bg-white/[0.02] sm:px-6&quot;
                        &gt;
        &lt;div class=&quot;grid gap-2 sm:grid-cols-3&quot;&gt;
        &lt;button
                                    type=&quot;button&quot;
                                    @click=&quot; analyticsCookies = false; personalizationCookies = false; marketingCookies = false &quot;
                                    class=&quot;inline-flex h-11 items-center justify-center rounded-xl border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-700 transition hover:border-slate-300 hover:bg-slate-100 hover:text-slate-950 dark:border-white/10 dark:bg-white/5 dark:text-slate-200 dark:hover:bg-white/10 dark:hover:text-white&quot;
                                &gt;
                                    Reject optional
                                &lt;/button&gt;
        &lt;button
                                    type=&quot;button&quot;
                                    @click=&quot; analyticsCookies = true; personalizationCookies = true; marketingCookies = true &quot;
                                    class=&quot;inline-flex h-11 items-center justify-center rounded-xl border border-indigo-200 bg-indigo-50 px-4 text-sm font-semibold text-indigo-700 transition hover:border-indigo-300 hover:bg-indigo-100 dark:border-indigo-500/20 dark:bg-indigo-500/10 dark:text-indigo-300 dark:hover:bg-indigo-500/15&quot;
                                &gt;
                                    Enable all
                                &lt;/button&gt;
        &lt;button
                                    type=&quot;button&quot;
                                    @click=&quot; preferencesOpen = false; bannerOpen = false &quot;
                                    data-cookie-action=&quot;save-preferences&quot;
                                    class=&quot;inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-indigo-600 px-4 text-sm font-bold text-white shadow-lg shadow-indigo-600/20 transition hover:-translate-y-0.5 hover:bg-indigo-500 hover:shadow-xl&quot;
                                &gt;
        &lt;span class=&quot;icon-[lucide--save] h-4 w-4&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;

                                    Save preferences
                                &lt;/button&gt;
        &lt;/div&gt;
        &lt;/footer&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;/section&gt;
        &lt;/div&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>
  }
}
