Skip to main content

Breadcrumbs

Shows the path from the root of the site down to the current page. Stock Mantine Breadcrumbs — it just places a separator between whatever React nodes you give it, styled here with a chevron instead of Mantine's default slash.

Base
Mantine + override
Import
{ Breadcrumbs } from '@mantine/core'
Source
src/themes/theme.ts
src/themes/style-overrides/breadcrumbs.module.css

Usage​

Siste ledd er en lenke
React
<Breadcrumbs>
<Anchor href="#">Forside</Anchor>
<Anchor href="#">Prosjekter</Anchor>
<span>Rapport</span>
</Breadcrumbs>

Props​

Only what this design system changes. Everything else is Mantine's — read the full props table there.

PropertyTypeAllowed valuesDefaultDescription
separatorReactNode—<IconChevronRight size={IconSize.sm} />What is drawn between items. The default replaces Mantine's own "/" character, and is set in theme.ts.
Last child (current page)———Not a prop — styled through a CSS :last-child selector, regardless of what element it is — cursor resets to auto, colour to --mantine-color-text, and the underline is removed, at rest and under the pointer both. The preceding items are ordinary links and keep the system's hover underline.

Accessibility​

Breadcrumbs renders whatever children you pass it, separated by the separator — it does not wrap them in a <nav> landmark or mark the current item for you. If breadcrumbs are the page's primary "where am I" navigation, wrap the component in <nav aria-label="Brødsmulesti"> and give the current item aria-current="page" yourself. The stylesheet only handles how that last item looks (no cursor, no underline) — it does not touch its semantics.