Breadcrumb
Shows the path to the current location.
Import
import { Breadcrumb } from "@tarve/core";Usage
import { Breadcrumb } from "@tarve/core";
<Breadcrumb
items={[
{ label: "Home", onClick: () => console.log("home") },
{ label: "Projects", onClick: () => console.log("projects") },
{ label: "tarve" },
]}
/>Props
| Prop | Type | Default |
|---|---|---|
items required | BreadcrumbItem[] | — |
separator | Child | "/" |
Common props
Shared by every component. See descriptions →
childrenhighlightidkeymotionFromonHighlightonPasteonTransitionEndrovingGroupstyleTypes
interface BreadcrumbItem {
label: string;
disabled?: boolean;
onClick?: () => void;
}