Skip to main content

Breadcrumb

A breadcrumb provides links back to previous pages which the user navigated through. Typically, this useful in a hierarchic structure, where the user can see the current page and the pages further up the structure.

Use cases:

  • informing users where they are within a structure

Example​

This example shows three items in the hierarchy, with the current page highlighted and two further items higher in the structure. (These links are not active in the example.)

Breadcrumb item 1Breadcrumb item 2Breadcrumb item 3

Declaration

<Breadcrumb>
<BreadcrumbItem href="#">Breadcrumb item 1</BreadcrumbItem>
<BreadcrumbItem href="#">Breadcrumb item 2</BreadcrumbItem>
<BreadcrumbItem>Breadcrumb item 3</BreadcrumbItem>
</Breadcrumb>

Usage

import { Breadcrumb, BreadcrumbItem } from '@genesislcap/rapid-design-system/react';

export function MyComponent() {
return (
<Breadcrumb>
<BreadcrumbItem href="#">Breadcrumb item 1</BreadcrumbItem>
<BreadcrumbItem href="#">Breadcrumb item 2</BreadcrumbItem>
<BreadcrumbItem>Breadcrumb item 3</BreadcrumbItem>
</Breadcrumb>
);
}

Attributes​

This component doesn't have any attributes.

Properties​

This component doesn't have any properties.

Slots​

NameDescription
DefaultContainer for breadcrumb-items.

Parts​

PartDescription
listThe list of all the breadcrumb items.

Events fired​

This component doesn't fire any events.

Events listened to​

This component doesn't listen to any events.

This table shows attribute binding examples for Genesis Component syntax. The HTML closing tag is not included.

Attributes​

NameTypeDescriptionExample
hrefstringThe hyperlink text.
<rapid-breadcrumb-item href="someLink">

Properties​

This component doesn't have any properties.

Slots​

SlotDescription
separatorUsed to change the separator between the breadcrumb items.

Parts​

PartDescription
listItemThe breadcrumb item container.

Events fired​

This component doesn't fire any events.

Events listened to​

This component doesn't listen to any events.