-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBreadcrumb.d.ts
More file actions
26 lines (26 loc) · 882 Bytes
/
Breadcrumb.d.ts
File metadata and controls
26 lines (26 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { default as React, FC, MouseEventHandler, ReactElement, ReactNode } from 'react';
type Component<T extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>> = ReactElement<T>;
type LinkComponent = Component<'a'>;
export interface BasicProps {
items: ({
title: string | ReactNode;
navOnClick?: MouseEventHandler<HTMLAnchorElement | HTMLSpanElement>;
key?: string | number;
copyText?: string;
} | {
title: LinkComponent;
key?: string | number;
copyText?: string;
})[];
activeKey?: string | number;
}
export type UIBreadcrumbProps = BasicProps & ({
type: 'default';
currentSlug?: never;
} | {
type: 'orgs';
currentSlug?: 'project' | 'user' | 'group';
});
declare const UIBreadcrumb: FC<UIBreadcrumbProps>;
export default UIBreadcrumb;
//# sourceMappingURL=Breadcrumb.d.ts.map