useBreadcrumb hook provides the logic to build a custom breadcrumb component that displays the current hierarchical refinement path.
Import
Parameters
Attributes to use to generate the hierarchy of the breadcrumb.
Prefix path to use if the first level is not the root level.
Function to transform the items passed to the templates.
The level separator used in the records.
Returns
Array of objects defining the different values and labels.
Function to set the path of the hierarchical filter and trigger a new search.
Function to create a URL for a single item.
Whether refinements can be applied.