1 | import * as React from 'react';
|
2 | import type { AvatarProps } from './Avatar';
|
3 | import SkeletonAvatar from './Avatar';
|
4 | import SkeletonButton from './Button';
|
5 | import SkeletonImage from './Image';
|
6 | import SkeletonInput from './Input';
|
7 | import SkeletonNode from './Node';
|
8 | import type { SkeletonParagraphProps } from './Paragraph';
|
9 | import type { SkeletonTitleProps } from './Title';
|
10 | type SkeletonAvatarProps = Omit<AvatarProps, 'active'>;
|
11 | export interface SkeletonProps {
|
12 | active?: boolean;
|
13 | loading?: boolean;
|
14 | prefixCls?: string;
|
15 | className?: string;
|
16 | rootClassName?: string;
|
17 | style?: React.CSSProperties;
|
18 | children?: React.ReactNode;
|
19 | avatar?: SkeletonAvatarProps | boolean;
|
20 | title?: SkeletonTitleProps | boolean;
|
21 | paragraph?: SkeletonParagraphProps | boolean;
|
22 | round?: boolean;
|
23 | }
|
24 | type CompoundedComponent = {
|
25 | Button: typeof SkeletonButton;
|
26 | Avatar: typeof SkeletonAvatar;
|
27 | Input: typeof SkeletonInput;
|
28 | Image: typeof SkeletonImage;
|
29 | Node: typeof SkeletonNode;
|
30 | };
|
31 | declare const Skeleton: React.FC<SkeletonProps> & CompoundedComponent;
|
32 | export default Skeleton;
|