Logoshadcn-docs-template
DocsDemo
Sections
  • Get Started
Getting Started
  • Introduction
  • Installation
Customization
  • Customizing the Template
  • MDC Components
  • Composables
  • Writing Documentation
Components
  • DocTabs
  • Callout
  • ComponentPreview
  • CommandMenu
  • CopyButton
  • DocsSidebar
  • DocsTableOfContents
  • PageHeader
  • SiteHeader
  • CopyCodeButton
  • DocsCopyPage
  • CodeBlockCommand
  • CommandMenuItem
  • CommandMenuKbd
  • GitHubLink
  • LucideIcon
  • MainNav
  • MobileNav
  • ModeSwitcher
  • PageHeaderDescription
  • PageHeaderHeading
  • SiteBody
  • SiteConfig
  • SiteFooter
  • OgImage (Custom)

OgImage (Custom)

PreviousNext

A custom Open Graph image component for social media sharing.

The Custom component (in OgImage folder) provides a custom Open Graph image template for social media sharing.

Usage

This component is used by Nuxt OG Image module. Configure in nuxt.config.ts:

export default defineNuxtConfig({
  ogImage: {
    component: 'OgImage/Custom',
  },
})

Features

  • Custom design with borders and decorations
  • Vue logo indicator
  • Responsive typography
  • Text balance for better wrapping
  • Geist font family

Props

PropTypeDescription
titlestringPage title
descriptionstringPage description

Styling

  • Black background with white text
  • Dashed border decorations
  • Vue logo in bottom-right
  • Responsive font sizes based on title length
  • Centered content layout

Customization

Edit app/components/OgImage/Custom.vue to customize:

  • Colors and backgrounds
  • Layout and spacing
  • Typography
  • Logo or branding elements
SiteFooterProse Demo

On This Page

UsageFeaturesPropsStylingCustomization
© shadcn-vue.com