React Storefront
|

Breadcrumbs

import Breadcrumbs from 'react-storefront/Breadcrumbs'

Renders a list of breadcrumbs from AppModelBase.breadcrumbs. When a breadcrumb is clicked, the breadcrumb_clicked analytics event is automatically fired.

Props

NameTypeDefaultDescription
itemsarrayOf : custom

The items to display, each with url, text, and state.

hideLastboolfalse

Set to true to hide the last breadcrumb

CSS API

You can override all the class names injected by Moov-PWA thanks to the classes property. This property accepts the following keys:

  • breadcrumbs
  • separator
  • current