Navigation
Breadcrumb
An accessible navigation trail that is framework-agnostic, so you pass the items directly.
<script>
import { Breadcrumb } from "@codeatlasdev/ui";
</script>
<Breadcrumb items={[{ label: "Home", href: "/" }, { label: "Components" }]} />
Rendered as a nav landmark with an ordered list. The last item is the current page and is not a link.
Levels
Two, three and five levels, and a single root item.
Code
Custom separator
Using › instead of /.
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | BreadcrumbItem[] | – | Array of { label, href? }. The last item is always rendered as the current page, without a link. |
separator | string | '/' | Character rendered between crumbs. |
class | string | '' | Extra CSS classes. |