# Breadcrumbs usage guidelines

> Discover Cimpress UI's breadcrumbs component.

Source: https://ui.cimpress.io/components/breadcrumbs/

Breadcrumbs display the user's location within an application, and enable easy movement between levels.

### When to use

- When users need to understand their location and navigate between multiple levels within the application's hierarchy.

### When not to use

- When the application has a single-level structure.
- When other navigation elements (such as a sidebar) are already present, unless using breadcrumbs would provide additional value.
- Do not use breadcrumbs as the main navigation pattern.

## Usage

```tsx
import { Breadcrumbs, BreadcrumbItem } from '@cimpress-ui/react';

export default function Demo() {
  return (
    <Breadcrumbs aria-label="Current location">
      <BreadcrumbItem href="#">Home</BreadcrumbItem>
      <BreadcrumbItem href="#page">Page</BreadcrumbItem>
      <BreadcrumbItem href="#subpage">Subpage</BreadcrumbItem>
    </Breadcrumbs>
  );
}
```

## Formatting and layout

### Placement

Breadcrumbs should be positioned in the top left area of the page, below the application header but above the page title. If there is a top-level navigation element, breadcrumbs should be placed below it.

**Do:**

```tsx
import { BreadcrumbItem, Breadcrumbs, Stack, Text } from '@cimpress-ui/react';
import { CimpressLogo } from '../../../../../shared/cimpress-logo.js';
import {
  Wireframe,
  WireframeGrid,
  WireframeGridItem,
  WireframeSection,
} from '../../../components/wireframes/wireframe.js';

export default function Demo() {
  return (
    <Wireframe>
      <WireframeSection>
        <Stack gap={16} align="start">
          <CimpressLogo height={16} />
        </Stack>
      </WireframeSection>

      <WireframeSection>
        <Breadcrumbs aria-label="Breadcrumbs">
          <BreadcrumbItem href="#level0">Level 0</BreadcrumbItem>
          <BreadcrumbItem href="#level1">Level 1</BreadcrumbItem>
          <BreadcrumbItem href="#level2">Current</BreadcrumbItem>
        </Breadcrumbs>

        <Text as="h3" variant="title-3" tone="base" marginTop={32} marginBottom={16}>
          Page title
        </Text>

        <WireframeGrid>
          <WireframeGridItem />
          <WireframeGridItem />
          <WireframeGridItem />
        </WireframeGrid>
      </WireframeSection>
    </Wireframe>
  );
}
```

## Content writing

### Title and labels

Breadcrumbs labels should be short and clear, so that they can be easily scanned. Avoid long, complex phrases for breadcrumb labels and page titles.

### Items

Limit breadcrumb items to five or fewer. Excessive items can confuse users and create layout issues. The current page should always be the final breadcrumb item.

## Behaviors

### Structure

Breadcrumbs consist of "page links" separated by dividers, starting with the highest-level parent page and progressing deeper into the site's structure. The last page link is assumed to be the current page, and is non-interactive.

### Navigation

Breadcrumbs should only focus on hierarchy navigation, and they should not substitute a top-level navigation.

### Items

Breadcrumbs should always display a clear hierarchy structure. Each breadcrumb item should represent a page that can be navigated to. A breadcrumb item cannot be disabled.
