Breadcrumbs
Breadcrumbs component with BreadcrumbList Microdata.
Structured Data for Breadcrumbs that produce a Rich Snippet (in this case breadcrumbs) in search results that are clickable, too!
https://schema.org/BreadcrumbList
Show back
<Breadcrumbs
breadcrumbs={
[
{"name": "Level1", "path": "level1"},
{"name": "Level 2", "path": "level2"},
{"name": "Level 3", "path": "level3"}
]
}
product-number="6R0XXXXXX"
class="py-1 order-0 px-1 max-w-full flex bg-white"
show-back
text-back="Back"
/>
Show home
<Breadcrumbs
breadcrumbs={
[
{"name": "Level1", "path": "level 1"},
{"name": "Level 2", "path": "level2"},
{"name": "Level 3", "path": "level3"}
]
}
product-number="6R0XXXXXX"
class="py-1 order-0 px-1 max-w-full flex bg-white"
show-home
/>
Simply
<Breadcrumbs
breadcrumbs={
[
{"name": "Level1", "path": "level 1"},
{"name": "Level 2", "path": "level2"},
{"name": "Level 3", "path": "level3"}
]
}
product-number="6R0XXXXXX"
class="py-1 order-0 px-1 max-w-full flex bg-white"
show-back
text-back="Back"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
breadcrumbs | Array | - | Array of breadcrumb objects with name and path properties (required) |
showBack | Boolean | false | Show back button |
textBack | String | 'Back' | Text for back button title |
showHome | Boolean | false | Show home icon as first breadcrumb |
productNumber | String | null | Product number to display after last breadcrumb (mobile hidden) |
withMicrodata | Boolean | true | Include Schema.org BreadcrumbList microdata (set to false for duplicates) |
Microdata Control
When rendering breadcrumbs multiple times on the same page (e.g., mobile and desktop versions), use withMicrodata to prevent duplicate Schema.org markup:
<!-- Desktop version - WITH microdata (default) -->
<Breadcrumbs
breadcrumbs={[...]}
class="hidden md:block"
/>
<!-- Mobile version - WITHOUT microdata -->
<Breadcrumbs
breadcrumbs={[...]}
class="block md:hidden"
:withMicrodata="false"
/>
Schema support:
Example
| @type | BreadcrumbList |
|---|---|
| itemListElement | |
| @type | ListItem |
| name | Electrical, Lighting, Telematics |
| position | 1 |
| item | |
| @type | Thing |
| @id | https://catalog.polo.blue/electrical-lighting-telematics/ |
| itemListElement | |
| @type | ListItem |
| name | Exterior Lighting |
| position | 2 |
| item | |
| @type | Thing |
| @id | https://catalog.polo.blue/electrical-lighting-telematics/exterior-lighting/ |
| itemListElement | |
| @type | ListItem |
| name | Bulbs |
| position | 3 |
| item | |
| @type | Thing |
| @id | https://catalog.polo.blue/electrical-lighting-telematics/exterior-lighting/bulbs/ |
| itemListElement | |
| @type | ListItem |
| name | Bulb carrier with bulb; silver lens |
| position | 4 |