Updated: June 9, 2020

Breadcrumb

sap.m.Breadcrumb

Intro

A breadcrumb (or breadcrumb trail) is a type of secondary navigation that indicates the position of a page in its application hierarchy. It is typically used for drilldown scenarios where users navigate through related object pages, tables, and charts.

Usage

Use a breadcrumb if:

  • You want to show secondary navigation on the object page
  • You want to show navigation in a table
  • You want to show navigation in charts

Use a breadcrumb only when the drilldown scenario leads to related object pages: parent object page / child object page 1 / child object page 2 / child object page 3.

Do not use a breadcrumb if:

  • Your hierarchy contains only one level.

Do not include these elements in your breadcrumb path:

  • Other floorplans, such as overview pages and list reports
  • Cross-application navigation to other object pages
  • Standalone object pages, such as fact sheets

These cases are covered in the global navigation concept for SAP Fiori 2.0.

Responsiveness

Breadcrumbs are responsive. If there is insufficient horizontal space, the links in the breadcrumb trail collapse into a dropdown menu (sap.m.Select):

  • The first link in the breadcrumb (the point of origin) collapses first, followed by the next link in the hierarchy.
  • The last element in the breadcrumb is always visible, and should never collapse into the dropdown menu.
  • The last element is truncated if the horizontal space is insufficient.
Breadcrumb – Size L
Breadcrumb – Size L
Breadcrumb – Size M
Breadcrumb – Size M
Breadcrumb – Size S
Breadcrumb – Size S
Breadcrumb – Size S (dropdown menu selected)
Breadcrumb – Size S (dropdown menu selected)

Layout

The horizontal layout of the breadcrumb never changes. Links always appear next to each other.

Types

There are two types of breadcrumb:

  • Standard breadcrumb
    The standard breadcrumb shows the current page as the last item in the trail. The last item contains only plain text and not a link.
  • Breadcrumb without the current page
    Use this breadcrumb for the object page only. The breadcrumb shows the position of the object page in the application hiearchy, without the current page. All items in the breadcrumb are links.
Standard breadcrumb
Standard breadcrumb
Breadcrumb without the current page
Breadcrumb without the current page

Components

A breadcrumb can contain both links and text (standard breadcrumb), or just links (breadcrumb without current page).

Behavior and Interaction

Navigation

The purpose of the breadcrumb is to trigger navigation. The action is triggered when the user clicks a link in the breadcrumb trail.
For link behavior and interaction, see Link.

Styles

You can define the style of the separator between the breadcrumb links using the separatorStyle property.

The available values are:

  • Slash
  • Backslash
  • Double slash
  • Double backslash
  • Greater than
  • Double greater than

To find out about the different link styles, see Link.

Guidelines

  • In the dropdown menu on desktop and tablet devices, show only the links that are not visible in the breadcrumb trail.
  • In the dropdown menu on smartphones, show all the links in the breadcrumb trail in their hierarchical order.

Resources

Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.

Elements and Controls

Implementation

  • Breadcrumb (sample in SAPUI5 Demo Kit)
  • Link (sample in SAPUI5 Demo Kit)
  • Text (sample in SAPUI5 Demo Kit)