UNPKG

1.04 kBTypeScriptView Raw
1import type { AvatarProps, BreadcrumbProps, TagType } from 'antd';
2import { Breadcrumb } from 'antd';
3import 'antd/lib/breadcrumb/style';
4import * as React from 'react';
5import type { ContentWidth } from '../../defaultSettings';
6export interface PageHeaderProps {
7 backIcon?: React.ReactNode;
8 prefixCls?: string;
9 title?: React.ReactNode;
10 subTitle?: React.ReactNode;
11 style?: React.CSSProperties;
12 childrenContentStyle?: React.CSSProperties;
13 breadcrumb?: Partial<BreadcrumbProps> | React.ReactElement<typeof Breadcrumb>;
14 breadcrumbRender?: (props: PageHeaderProps, defaultDom: React.ReactNode) => React.ReactNode;
15 tags?: React.ReactElement<TagType> | React.ReactElement<TagType>[];
16 footer?: React.ReactNode;
17 extra?: React.ReactNode;
18 avatar?: AvatarProps;
19 onBack?: (e?: React.MouseEvent<HTMLElement>) => void;
20 className?: string;
21 contentWidth?: ContentWidth;
22 ghost?: boolean;
23 children?: React.ReactNode;
24}
25declare const PageHeader: React.FC<PageHeaderProps>;
26export { PageHeader };