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

https://schema.org/ListItem

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

PropTypeDefaultDescription
breadcrumbsArray-Array of breadcrumb objects with name and path properties (required)
showBackBooleanfalseShow back button
textBackString'Back'Text for back button title
showHomeBooleanfalseShow home icon as first breadcrumb
productNumberStringnullProduct number to display after last breadcrumb (mobile hidden)
withMicrodataBooleantrueInclude 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

@typeBreadcrumbList
itemListElement
@typeListItem
nameElectrical, Lighting, Telematics
position1
item
@typeThing
@idhttps://catalog.polo.blue/electrical-lighting-telematics/
itemListElement
@typeListItem
nameExterior Lighting
position2
item
@typeThing
@idhttps://catalog.polo.blue/electrical-lighting-telematics/exterior-lighting/
itemListElement
@typeListItem
nameBulbs
position3
item
@typeThing
@idhttps://catalog.polo.blue/electrical-lighting-telematics/exterior-lighting/bulbs/
itemListElement
@typeListItem
nameBulb carrier with bulb; silver lens
position4