X Enterprises
nuxt-x-schema

Product

Schema.org Product JSON-LD component for e-commerce product structured data.

Product

The XSchemaProduct component injects a <script type="application/ld+json"> tag for product structured data. No visible output — SEO only.

Components

<XSchemaProduct />

Use on individual product pages. Enables rich results in Google Shopping and Search with price, availability, and ratings.

<XSchemaProduct
  name="Wireless Headphones"
  description="Premium noise-cancelling headphones"
  :offers="{ price: '199.99', priceCurrency: 'USD' }"
  sku="WH-1234"
/>

Props

PropTypeRequiredDescription
nameStringYesProduct name
descriptionStringYesProduct description
imageString | String[]NoProduct image URL(s)
brandString | OrganizationNoBrand name or Organization object
offersOfferYesOffer object with price and availability
aggregateRatingAggregateRatingNoRating object { ratingValue, reviewCount }
reviewReview[]NoArray of Review objects
skuStringNoStock-keeping unit identifier
manufacturerString | OrganizationNoManufacturer name or Organization
categoryStringNoProduct category

AI Context

component: XSchemaProduct
package: "@xenterprises/nuxt-x-schema"
output: JSON-LD script tag in <head>
use-when: Adding Product structured data on individual product pages for Google Shopping rich results
place: In page-level components (pages/ or layouts/), NOT in shared headers
notes:
  - Renderless component — no visible DOM output; purely SEO metadata
  - Injects JSON-LD server-side via useHead — SSR-safe, visible to crawlers on first paint
  - offers object should include at minimum price and priceCurrency
Copyright © 2026