CLI previewInstall commands shown on this site are not released yet.

DocsComponentsNavigation

Breadcrumb

React example follows below.
ts
import { Breadcrumb } from "@grassroot/ui-react";
<Breadcrumb
items={[
{ label: "projects", href: "#" },
{ label: "ledger-api", href: "#" },
{ label: "migration" },
]}
/>
ts
<script setup lang="ts">
import { Breadcrumb } from "@grassroot/ui-vue";
</script>
<template>
<Breadcrumb
:items="[
{ label: 'projects', href: '#' },
{ label: 'ledger-api', href: '#' },
{ label: 'migration' },
]"
/>
</template>
ts
import { Component } from "@angular/core";
import { GrassrootBreadcrumb } from "@grassroot/ui-angular";
@Component({
selector: "app-example",
standalone: true,
imports: [GrassrootBreadcrumb],
template: `
<grassroot-breadcrumb
[items]="[
{ label: 'projects', href: '#' },
{ label: 'ledger-api', href: '#' },
{ label: 'migration' },
]"
/>
`,
})
export class ExampleComponent {
}
ts
<script lang="ts">
import { Breadcrumb } from "@grassroot/ui-svelte";
</script>
<Breadcrumb
items={[
{ label: "projects", href: "#" },
{ label: "ledger-api", href: "#" },
{ label: "migration" },
]}
/>
ts
import { Breadcrumb } from "@grassroot/ui-solid";
export function Example() {
return (
<>
<Breadcrumb
items={[
{ label: "projects", href: "#" },
{ label: "ledger-api", href: "#" },
{ label: "migration" },
]}
/>
</>
);
}

Installation

bash
pnpm dlx grassroot add ui/breadcrumb
bash
npx grassroot@latest add ui/breadcrumb
bash
yarn dlx grassroot add ui/breadcrumb
bash
bunx grassroot add ui/breadcrumb

API Reference

BreadcrumbProps
PropTypeDefault
itemsrequiredCrumbItem[]
separatorSeparator between crumbs.React.ReactNode"/"