UNPKG

1.14 kBTypeScriptView Raw
1import * as React from 'react';
2export interface BreadcrumbItemRenderArgs {
3 className: string;
4 ariaCurrent: 'page' | undefined;
5}
6export interface BreadcrumbItemProps extends React.HTMLProps<HTMLLIElement> {
7 /** Content rendered inside the breadcrumb item. */
8 children?: React.ReactNode;
9 /** Additional classes added to the breadcrumb item. */
10 className?: string;
11 /** HREF for breadcrumb link. */
12 to?: string;
13 /** Flag indicating whether the item is active. */
14 isActive?: boolean;
15 /** Flag indicating whether the item contains a dropdown. */
16 isDropdown?: boolean;
17 /** Internal prop set by Breadcrumb on all but the first crumb */
18 showDivider?: boolean;
19 /** Target for breadcrumb link. */
20 target?: string;
21 /** Sets the base component to render. Defaults to <a> */
22 component?: React.ElementType;
23 /** A render function to render the component inside the breadcrumb item. */
24 render?: (props: BreadcrumbItemRenderArgs) => React.ReactNode;
25}
26export declare const BreadcrumbItem: React.FunctionComponent<BreadcrumbItemProps>;
27//# sourceMappingURL=BreadcrumbItem.d.ts.map
\No newline at end of file