synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
20 lines • 690 B
TypeScript
import { SxProps } from '@mui/material';
import { MouseEventHandler } from 'react';
export type BreadcrumbItem = {
text: string;
current?: boolean;
to?: string;
href?: string;
onClick?: MouseEventHandler;
};
type BreadcrumbsProps = {
/** The items to show in the breadcrumbs */
items: BreadcrumbItem[];
/** sx passed to the MUI Breadcrumbs */
sx?: SxProps;
/** If defined, truncate individual item strings to be no longer than this value */
maxBreadcrumbLength?: number;
};
export declare function Breadcrumbs(props: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
export default Breadcrumbs;
//# sourceMappingURL=Breadcrumbs.d.ts.map