Navigation

Breadcrumb

A trail of links that shows where the current page sits in a hierarchy.

Class nameTypeDescription
breadcrumbsplf:breadcrumbsComponentA trail on a native list

Default

Keep role="list", since WebKit drops list semantics without markers, and mark exactly one current page with aria-current="page" and no href.

React

Breadcrumb from @pelatform/react renders the nav and its list around its items, each holding your link, any router’s, or the current page.

Prop Values Default
aria-label The trail’s name Breadcrumb

The parts:

Part Element
BreadcrumbItem An li
BreadcrumbPage A span with aria-current="page", the current page

Other props are the element’s own, className and ref included.

CSS variables

Override on a root or on a single breadcrumb.

Variable Default
--plf-breadcrumb-color Muted text, for links and chevrons
--plf-breadcrumb-hover-color Text color
--plf-breadcrumb-current-color Text color
--plf-breadcrumb-separator-color --plf-breadcrumb-color, for chevrons
--plf-breadcrumb-font-size Control font size (14px)
--plf-breadcrumb-gap Space 2 (8px), between items and around chevrons
--plf-breadcrumb-icon-size Control icon size (16px)
--plf-breadcrumb-separator-size 0.875rem (14px), for chevrons

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons