UNPKG

chowa

Version:

UI component library based on React

58 lines (57 loc) 1.79 kB
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import * as PropTypes from 'prop-types'; export interface SkeletonProps { className?: string; style?: React.CSSProperties; loading?: boolean; animation?: boolean; avatar?: boolean; avatarShape?: 'circle' | 'rect'; title?: boolean; titleWidth?: string; paragraph?: boolean; paragraphRows?: number; fragmentable?: boolean; } declare class Skeleton extends React.PureComponent<SkeletonProps> { static propTypes: { className: PropTypes.Requireable<string>; style: PropTypes.Requireable<object>; loading: PropTypes.Requireable<boolean>; animation: PropTypes.Requireable<boolean>; avatar: PropTypes.Requireable<boolean>; avatarShape: PropTypes.Requireable<string>; title: PropTypes.Requireable<boolean>; titleWidth: PropTypes.Requireable<string>; paragraph: PropTypes.Requireable<boolean>; paragraphRows: PropTypes.Requireable<number>; fragmentable: PropTypes.Requireable<boolean>; }; static defaultProps: { loading: boolean; animation: boolean; avatar: boolean; avatarShape: string; title: boolean; titleWidth: string; paragraph: boolean; paragraphRows: number; fragmentable: boolean; }; private renderLoadingBlock; private renderRandomsRow; private renderParagraph; private renderAvatar; private renderTitle; private renderSkeleton; render(): JSX.Element; } export default Skeleton;