@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
36 lines (35 loc) • 1.22 kB
TypeScript
import React, { PureComponent, CSSProperties, ReactNode } from 'react';
import PropTypes from 'prop-types';
import { strings } from '@douyinfe/semi-foundation/lib/cjs/avatar/constants';
import '@douyinfe/semi-foundation/lib/cjs/skeleton/skeleton.css';
export type BasicProps = {
prefixCls?: string;
className?: string;
style?: CSSProperties;
type?: string;
};
export interface ParagraphProps extends BasicProps {
rows?: number;
}
export interface AvatarProps extends BasicProps {
size?: typeof strings.SIZE[number];
shape?: string;
}
export type GenericProps = BasicProps & AvatarProps;
export declare const Avatar: React.FC<AvatarProps>;
export declare const Image: React.FC<BasicProps>;
export declare const Title: React.FC<BasicProps>;
export declare const Button: React.FC<BasicProps>;
export declare class Paragraph extends PureComponent<ParagraphProps> {
static propTypes: {
rows: PropTypes.Requireable<number>;
prefixCls: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
className: PropTypes.Requireable<string>;
};
static defaultProps: {
prefixCls: string;
rows: number;
};
render(): ReactNode;
}