UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

30 lines (29 loc) 1.05 kB
import * as React from 'react'; import { SkeletonTitleProps } from './Title'; import { SkeletonGridProps } from './Grid'; import { SkeletonParagraphProps } from './Paragraph'; import SkeletonButton from './Button'; import SkeletonAvatar, { AvatarProps } from './Avatar'; import SkeletonInput from './Input'; 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; grid?: SkeletonGridProps; } declare class Skeleton extends React.Component<SkeletonProps, any> { static Button: typeof SkeletonButton; static Avatar: typeof SkeletonAvatar; static Input: typeof SkeletonInput; static defaultProps: Partial<SkeletonProps>; renderSkeleton: () => {} | null | undefined; render(): JSX.Element; } export default Skeleton;