JsonLdForArticle Reference
The JsonLdForArticle component renders Article-specific JSON-LD structured data in a script tag.
The JsonLdForArticle component accepts the following props:
type (required)
Section titled “type (required)”type: "Article" | "NewsArticle" | "BlogPosting"
The type of article.
headline (required)
Section titled “headline (required)”type: string
The headline or title of the article.
images (required)
Section titled “images (required)”type: string[]
An array of image routes associated with the article.
datePublished (required)
Section titled “datePublished (required)”type: Date
The date when the article was first published.
dateModified (required)
Section titled “dateModified (required)”type: Date
The date when the article was last modified.
authors (required)
Section titled “authors (required)”type: Array<{ name: string; url: string }>
An array of author objects. Each author must have a name and a url property.
scriptId
Section titled “scriptId”type: string
A custom ID for the script tag.
scriptKey
Section titled “scriptKey”type: string
A custom React key for the script element.