Skip to content

JsonLdScript Reference

The JsonLdScript component renders any JSON-LD structured data in a script tag.

The JsonLdScript component accepts the following props:

type: T (generic object type, defaults to Record<string, unknown>)

The JSON-LD structured data object to be rendered. This should be a valid JSON-LD object following the schema.org specification.

type: string

A custom ID for the script tag.

type: string

A custom React key for the script element.