Breadcrumbs

Separate list of react nodes with given separator
Import

Usage

Breadcrumbs accept any react nodes as children and places given separator (defaults to /) between them:

import { Breadcrumbs, Anchor } from '@mantine/core';
const items = [
{ title: 'Mantine', href: '#' },
{ title: 'Mantine hooks', href: '#' },
{ title: 'use-id', href: '#' },
].map((item, index) => (
<Anchor href={item.href} key={index}>
{item.title}
</Anchor>
));
function Demo() {
return (
<>
<Breadcrumbs>{items}</Breadcrumbs>
<Breadcrumbs separator="">{items}</Breadcrumbs>
</>
);
}