Skip to content

JsonLdForBreadcrumb Reference

The JsonLdForBreadcrumb component renders Breadcrumb JSON-LD structured data in a script tag.

The JsonLdForBreadcrumb component accepts the following props:

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.

type: string

A custom ID for the script tag.

type: string

A custom React key for the script element.