office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
36 lines (35 loc) • 986 B
TypeScript
import * as React from 'react';
import { Breadcrumb } from './Breadcrumb';
export interface IBreadcrumbProps extends React.Props<Breadcrumb> {
/**
* Collection of breadcrumbs to render
*/
items: IBreadcrumbItem[];
/**
* Optional root classname for the root breadcrumb element.
*/
className?: string;
/**
* The maximum number of breadcrumbs to display before coalescing.
* If not specified, all breadcrumbs will be rendered.
*/
maxDisplayedItems?: number;
}
export interface IBreadcrumbItem {
/**
* Text to display to the user for the breadcrumb
*/
text: string;
/**
* Arbitrary unique string associated with the breadcrumb
*/
key: string;
/**
* Callback issued when the breadcrumb is selected.
*/
onClick?: (ev?: React.MouseEvent<HTMLElement>, item?: IBreadcrumbItem) => void;
/**
* Url to navigate to when this breadcrumb is clicked.
*/
href?: string;
}