Skip to content

Breadcrumbs API

Cimpress UI exports two breadcrumb-related components:

  • Breadcrumbs: container component that displays a list of breadcrumbs to help users navigate through a website.
  • BreadcrumbItem: renders a single breadcrumb within Breadcrumbs, providing a link to a specific page in the navigation hierarchy.
import { BreadcrumbItem, Breadcrumbs } from '@cimpress-ui/react';

Breadcrumbs follows the ARIA breadcrumb pattern.

Breadcrumbs renders a navigation landmark, and requires a textual label to identify itself to assistive technologies. See our accessibility guide for more details.

Breadcrumbs is a collection component. See our collection components guide to learn how to work with collections.

Displays a list of breadcrumbs to help users navigate through a website.

See breadcrumbs usage guidelines.

Ref<HTMLElement>

The ref type for this component.

BreadcrumbsProps<T extends CollectionItem = CollectionItem>
string

The element's unique identifier. See MDN.

boolean

Use this attribute to "claim" the component tree for exclusive Cimpress UI usage.

string

Sets the CSS className for the element. Only use as a last resort. Use style props instead.

See styling guide.

CSSProperties

Sets the CSS style for the element. Only use as a last resort. Use style props instead.

See styling guide.

string

Defines a string value that labels the current element.

string

Identifies the element (or elements) that labels the current element.

string

Identifies the element (or elements) that describes the object.

string

Identifies the element (or elements) that provide a detailed, extended description for the object.

ReactNode | ((item: T) => ReactNode)

The contents of the collection.

Iterable<T, any, any>

The items to display in the collection.

StyleProps
Responsive<Spacing | "auto">

The amount of margin applied to all edges of this component.

Responsive<Spacing | "auto">

The amount of margin applied to the left and right edges of this component. Takes priority over margin.

Responsive<Spacing | "auto">

The amount of margin applied to the top and bottom edges of this component. Takes priority over margin.

Responsive<Spacing | "auto">

The amount of margin applied to the top edge of this component. Takes priority over marginY and margin.

Responsive<Spacing | "auto">

The amount of margin applied to the right edge of this component. Takes priority over marginX and margin.

Responsive<Spacing | "auto">

The amount of margin applied to the bottom edge of this component. Takes priority over marginY and margin.

Responsive<Spacing | "auto">

The amount of margin applied to the left edge of this component. Takes priority over marginX and margin.

Renders a single breadcrumb within Breadcrumbs.

BreadcrumbItemProps
StringLikeChildren

The text to display as the breadcrumb.

string

A URL to link to.

Key

The ID of the item. Has to be unique across all items.

boolean

Use this attribute to "claim" the component tree for exclusive Cimpress UI usage.

string

Sets the CSS className for the element. Only use as a last resort. Use style props instead.

See styling guide.

CSSProperties

Sets the CSS style for the element. Only use as a last resort. Use style props instead.

See styling guide.

undefined

Options for the configured client side router.

string

Hints at the human language of the linked URL. SeeMDN.

HTMLAttributeAnchorTarget

The target window for the link. See MDN.

string

The relationship between the linked resource and the current page. See MDN.

string | boolean

Causes the browser to download the linked URL. A string may be provided to suggest a file name. See MDN.

string

A space-separated list of URLs to ping when the link is followed. See MDN.

HTMLAttributeReferrerPolicy

How much of the referrer to send when following the link. See MDN.