mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
* style(docs): remove bottom margin in index route * docs: flatten side nav hierarchy * docs(accordion): move expandable accordion recipe * docs(breadcrumb): move breadcrumb trail recipe * docs: remove recipes
17 lines
435 B
Svelte
17 lines
435 B
Svelte
<script>
|
|
import { Breadcrumb, BreadcrumbItem } from "carbon-components-svelte";
|
|
|
|
const items = [
|
|
{ href: "/", text: "Dashboard" },
|
|
{ href: "/reports", text: "Annual reports" },
|
|
{ href: "/reports/2019", text: "2019" },
|
|
];
|
|
</script>
|
|
|
|
<Breadcrumb>
|
|
{#each items as item, i}
|
|
<BreadcrumbItem href="{item.href}" isCurrentPage="{i === items.length - 1}">
|
|
{item.text}
|
|
</BreadcrumbItem>
|
|
{/each}
|
|
</Breadcrumb>
|