JsonLd
Generates and injects JSON-LD structured data for SEO.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
content | Page | Blogpost | Guide | LiveStream | Yes | - | Content object to generate JSON-LD for |
Usage
import JsonLd from '@/components/atoms/JsonLd';
<JsonLd content={pageData} />Features
- Generates structured data using
getJsonLdutility - Injects as
<script type="application/ld+json">tag - Supports multiple content types (Page, Blogpost, Guide, LiveStream)
- Improves SEO and search engine understanding
Notes
- Should be placed in the
<head>or at the top of page content - Uses
dangerouslySetInnerHTMLto inject JSON - JSON is stringified automatically