DocsComponentsNavigation
Breadcrumb
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/breadcrumbbash
npx grassroot@latest add ui/breadcrumbbash
yarn dlx grassroot add ui/breadcrumbbash
bunx grassroot add ui/breadcrumbAPI Reference
| Prop | Type | Default |
|---|---|---|
itemsrequired | CrumbItem[] | — |
separatorSeparator between crumbs. | React.ReactNode | "/" |