JsonLdForBreadcrumb Reference
The JsonLdForBreadcrumb component renders Breadcrumb JSON-LD structured data in a script tag.
The JsonLdForBreadcrumb component accepts the following props:
itemList (required)
Section titled “itemList (required)”type: Array<{ name: string; route: string }>
An array of breadcrumb items representing the navigation hierarchy. Each item must have:
- name (
string): The display name for the breadcrumb item - route (
string): The route path for the breadcrumb item (e.g.,/products,/blog/post-1)
The items should be ordered from the highest level (typically “Home”) to the current page.
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.