Skip to content
Alea0.1

Navigation

Breadcrumbs

Where the page sits: a trail of links up to the current page.

Ant Design: Breadcrumb

import { Breadcrumbs, Breadcrumb } from '@alea/ui';

Examples

Breadcrumbs

The last item is the current page.

Custom separator

Any character between items.

Props

Breadcrumbs props

Where the page sits: a trail of links, the last one is the current page.

PropTypeDefaultDescription
separatorReactNode-Character or icon between items. Default a chevron.

Breadcrumb props

One step of the trail.

PropTypeDefaultDescription
childrenrequiredReactNode-The children of the component. A function may be provided to alter the children based on component state.
hrefstring-Link target. Leave it out on the current page.

Accessibility

  • Put it in a nav with aria-label="Breadcrumb"; the last item is marked as the current page.

Keyboard

KeyDoes
TabMoves between links; the current page is not a link

Do and don't

Do

  • Start from the top of the section, not always the home page.

Don't

  • Don't use it for steps in a flow: use Steps.
Tested with axe, keyboard and screen reader roles