Skeleton.d.ts
1.25 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import * as React from 'react';
import { SkeletonTitleProps } from './Title';
import { SkeletonParagraphProps } from './Paragraph';
import { AvatarProps } from './Avatar';
interface SkeletonAvatarProps extends Omit<AvatarProps, 'active'> {
}
export interface SkeletonProps {
active?: boolean;
loading?: boolean;
prefixCls?: string;
className?: string;
children?: React.ReactNode;
avatar?: SkeletonAvatarProps | boolean;
title?: SkeletonTitleProps | boolean;
paragraph?: SkeletonParagraphProps | boolean;
round?: boolean;
}
declare const Skeleton: {
(props: SkeletonProps): JSX.Element;
defaultProps: {
avatar: boolean;
title: boolean;
paragraph: boolean;
};
Button: {
(props: import("./Button").SkeletonButtonProps): JSX.Element;
defaultProps: {
size: string;
};
};
Avatar: {
(props: AvatarProps): JSX.Element;
defaultProps: {
size: string;
shape: string;
};
};
Input: {
(props: import("./Input").SkeletonInputProps): JSX.Element;
defaultProps: {
size: string;
};
};
Image: (props: import("./Image").SkeletonImageProps) => JSX.Element;
};
export default Skeleton;