page SocialSharecomponent {
  seo {
    title = "SocialShare component"
    description = "Reusable social share 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">SocialShare</span></nav><section class="doc-intro"><span class="eyebrow">core component</span><h1>SocialShare</h1><p>Reusable social share component.</p><div class="doc-meta"><span>@wrnexus/ui 0.3.2</span><span>10 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;SocialShare
  title=&quot;Share this page&quot;
  description=&quot;description&quot;
  url=&quot;url&quot;
  shareText=&quot;shareText&quot;
  centered=&quot;false&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;SocialShare&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>title</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Share this page&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>url</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>shareText</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>centered</code></td><td><code>boolean</code></td><td>Optional</td><td><code>false</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>showTitle</code></td><td><code>boolean</code></td><td>Optional</td><td><code>true</code></td></tr><tr><td><code>showCopy</code></td><td><code>boolean</code></td><td>Optional</td><td><code>true</code></td></tr><tr><td><code>networks</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/SocialShare.wrn</code></p><pre data-language="wrn"><code>component SocialShare &#123;
    props &#123;
        class: string = &quot;&quot;
        title = &quot;Share this page&quot;
        description = &quot;&quot;

        url = &quot;&quot;
        shareText = &quot;&quot;

        centered = false
        compact = false
        showTitle = true
        showCopy = true

        networks = []
    &#125;

    state copied = false

    view &#123;
        &lt;aside
            aria-labelledby=&quot;social-share-title&quot;
            class=&quot;w-full &#123;class&#125;&quot;
        &gt;
        &lt;div
                class=&quot; relative overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-white/10 dark:bg-white/[0.03] &quot;
            &gt;
        &lt;!-- Subtle 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 -right-16 -top-20 h-40 w-40 rounded-full bg-indigo-200/25 blur-3xl dark:bg-indigo-500/10&quot; &gt;
        &lt;/div&gt;
        &lt;div class=&quot;absolute inset-x-0 top-0 h-px bg-linear-to-r from-transparent via-indigo-300/60 to-transparent dark:via-indigo-500/20&quot; &gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;div
                    class=&quot;relative&quot;
                    class:p-4=&quot;compact&quot;
                    class:sm:p-5=&quot;compact&quot;
                    class:p-5=&quot;!compact&quot;
                    class:sm:p-6=&quot;!compact&quot;
                &gt;
        &lt;div
                        class=&quot;gap-4&quot;
                        class:flex=&quot;centered&quot;
                        class:flex-col=&quot;centered&quot;
                        class:items-center=&quot;centered&quot;
                        class:text-center=&quot;centered&quot;
                        class:flex=&quot;!centered&quot;
                        class:flex-col=&quot;!centered&quot;
                        class:sm:flex-row=&quot;!centered&quot;
                        class:sm:items-center=&quot;!centered&quot;
                        class:sm:justify-between=&quot;!centered&quot;
                    &gt;
        &lt;!-- Heading --&gt;
        &lt;div
                            class=&quot;min-w-0&quot;
                            class:hidden=&quot;!showTitle&quot;
                        &gt;
        &lt;h2
                                id=&quot;social-share-title&quot;
                                class=&quot;font-bold tracking-tight text-slate-950 dark:text-white&quot;
                                class:text-sm=&quot;compact&quot;
                                class:text-base=&quot;!compact&quot;
                            &gt;
                                &#123;title&#125;
                            &lt;/h2&gt;
        &lt;p
                                class=&quot;mt-1 text-sm leading-6 text-slate-500 dark:text-slate-400&quot;
                                class:hidden=&quot;description === '' || compact&quot;
                            &gt;
                                &#123;description&#125;
                            &lt;/p&gt;
        &lt;/div&gt;
        &lt;!-- Share buttons --&gt;
        &lt;div
                            class=&quot;flex flex-wrap items-center gap-2&quot;
                            class:justify-center=&quot;centered&quot;
                            class:justify-start=&quot;!centered&quot;
                        &gt;
                            &#123;#each networks.slice(0, 5) as network&#125;
                            &lt;a
                                href=&quot;&#123;network.href&#125;&quot;
                                target=&quot;_blank&quot;
                                rel=&quot;noopener noreferrer&quot;
                                aria-label=&quot;Share on &#123;network.label&#125;&quot;
                                title=&quot;Share on &#123;network.label&#125;&quot;
                                class=&quot; group inline-flex items-center justify-center gap-2 rounded-xl border border-slate-200 bg-white text-sm font-semibold text-slate-600 shadow-sm transition hover:-translate-y-0.5 hover:border-indigo-300 hover:bg-indigo-50 hover:text-indigo-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:border-white/10 dark:bg-white/5 dark:text-slate-300 dark:hover:border-indigo-500/30 dark:hover:bg-indigo-500/10 dark:hover:text-indigo-300 &quot;
                                class:h-9=&quot;compact&quot;
                                class:w-9=&quot;compact&quot;
                                class:h-10=&quot;!compact&quot;
                                class:px-3=&quot;!compact&quot;
                            &gt;
        &lt;span class=&quot;&#123;network.iconClass&#125; h-4 w-4&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;span class:hidden=&quot;compact&quot;&gt;
                                    &#123;network.label&#125;
                                &lt;/span&gt;
        &lt;/a&gt;
                            &#123;/each&#125;

                            &lt;!-- Copy link --&gt;
        &lt;button
                                type=&quot;button&quot;
                                @click=&quot; navigator.clipboard.writeText(url); copied = true; &quot;
                                aria-label=&quot;&#123;copied ? 'Link copied' : 'Copy page link'&#125;&quot;
                                class=&quot; group inline-flex items-center justify-center gap-2 rounded-xl border border-slate-200 bg-white text-sm font-semibold text-slate-600 shadow-sm transition hover:-translate-y-0.5 hover:border-indigo-300 hover:bg-indigo-50 hover:text-indigo-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:border-white/10 dark:bg-white/5 dark:text-slate-300 dark:hover:border-indigo-500/30 dark:hover:bg-indigo-500/10 dark:hover:text-indigo-300 &quot;
                                class:hidden=&quot;!showCopy&quot;
                                class:h-9=&quot;compact&quot;
                                class:w-9=&quot;compact&quot;
                                class:h-10=&quot;!compact&quot;
                                class:px-3=&quot;!compact&quot;
                            &gt;
        &lt;span class=&quot;icon-[lucide--copy] h-4 w-4&quot; class:hidden=&quot;copied&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;span class=&quot;icon-[lucide--check] h-4 w-4&quot; class:hidden=&quot;!copied&quot; aria-hidden=&quot;true&quot; &gt;
        &lt;/span&gt;
        &lt;span class:hidden=&quot;compact&quot;&gt;
                                    &#123;copied ? 'Copied' : 'Copy link'&#125;
                                &lt;/span&gt;
        &lt;/button&gt;
        &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- Copy feedback --&gt;
        &lt;div
                        role=&quot;status&quot;
                        aria-live=&quot;polite&quot;
                        class=&quot;mt-3 rounded-xl bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-700 ring-1 ring-inset ring-emerald-200 dark:bg-emerald-500/10 dark:text-emerald-300 dark:ring-emerald-500/20&quot;
                        class:hidden=&quot;!copied&quot;
                        class:text-center=&quot;centered&quot;
                    &gt;
                        Page link copied to your clipboard.
                    &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>
  }
}
