@octopusdeploy/design-system-components
Version:
The design systems component library.
15 lines (14 loc) • 711 B
TypeScript
import type { DesignSystemLinkHref } from "../../routing/OctopusRoutingContext";
export interface BreadcrumbItem {
/** The label of a breadcrumb link */
label: string;
/** The URL of the page that the breadcrumb routes to, when the value is null, the label will be shown as plain text instead of link */
pageUrl: DesignSystemLinkHref | null;
}
export interface BreadcrumbsProps {
/** Items to be combined with Slash to form breadcrumbs */
items: BreadcrumbItem[];
/** If true, apply back icon at the beginning of the breadcrumbs */
showBackIcon?: boolean;
}
export declare function Breadcrumbs({ items, showBackIcon }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;