UNPKG

1.03 kBTypeScriptView Raw
1import * as React from 'react';
2import type { DropdownProps } from '../dropdown/dropdown';
3export interface SeparatorType {
4 separator?: React.ReactNode;
5 key?: React.Key;
6}
7type MenuType = NonNullable<DropdownProps['menu']>;
8interface MenuItem {
9 key?: React.Key;
10 title?: React.ReactNode;
11 label?: React.ReactNode;
12 path?: string;
13 href?: string;
14}
15export interface BreadcrumbItemProps extends SeparatorType {
16 prefixCls?: string;
17 href?: string;
18 menu?: Omit<MenuType, 'items'> & {
19 items?: MenuItem[];
20 };
21 dropdownProps?: DropdownProps;
22 onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLSpanElement>;
23 className?: string;
24 children?: React.ReactNode;
25 /** @deprecated Please use `menu` instead */
26 overlay?: DropdownProps['overlay'];
27}
28export declare const InternalBreadcrumbItem: React.FC<BreadcrumbItemProps>;
29type CompoundedComponent = React.FC<BreadcrumbItemProps> & {};
30declare const BreadcrumbItem: CompoundedComponent;
31export default BreadcrumbItem;