nuxt-x-blog
ShareButtons
Social share buttons for X (Twitter), LinkedIn, and Facebook plus a copy-link button on post pages.
ShareButtons
The XBLShareButtons component renders a row of social sharing buttons for the current post. Controlled by the showShareButtons flag in xBlog app config.
Components
<XBLShareButtons />
Pass the post title; the component builds each platform's share URL automatically. Ships buttons for X (Twitter), LinkedIn, and Facebook, plus a copy-link button that writes the URL to the clipboard.
<XBLShareButtons :title="post.title" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | required | Post title used as share text |
url | string | current page URL | Canonical URL to share — defaults to window.location.href on the client |
AI Context
component: XBLShareButtons
package: "@xenterprises/nuxt-x-blog"
use-when: Bottom of a blog post page — social sharing links for X (Twitter), LinkedIn, Facebook, plus copy-link
