Navigation
Breadcrumb <pm-breadcrumb>
Breadcrumb trail. The last item is the current page. Long trails collapse to first … last max items.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
label | string | Breadcrumb | Accessible name of the navigation landmark. |
max | number | — | Collapse middle items when there are more than this many. |
separator | string | — | Separator character (default "/"). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
(default) | pm-breadcrumb-item elements. |
<pm-breadcrumb-item>
Breadcrumb entry (a link, or plain text for the current page).
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
href | string | — | Link target: renders a link instead of a button. |
current | boolean | false | Marks the current page (set automatically on the last item). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
(default) | Label. |