@alifd/next
Version:
A configurable component library for web built on React.
37 lines (36 loc) • 1.21 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
import { ParagraphProps } from './types';
/** Paragraph */
declare class Paragraph extends React.Component<ParagraphProps> {
static propTypes: {
prefix: PropTypes.Requireable<string>;
/**
* 额外的样式名 会附加到 root dom 上
*/
className: PropTypes.Requireable<string>;
/**
* 什么方式展示段落
* - 'long' : 展示所有文本
* - 'short' : 展示三行以内(非强制)
*/
type: PropTypes.Requireable<string>;
/**
* 组件大小。
* - 'medium' : 中号
* - 'short' : 小号
*/
size: PropTypes.Requireable<string>;
rtl: PropTypes.Requireable<boolean>;
};
static defaultProps: {
prefix: string;
type: string;
size: string;
};
constructor(props: ParagraphProps);
render(): React.JSX.Element;
}
export type { ParagraphProps };
declare const _default: import("../config-provider/types").ConfiguredComponentClass<ParagraphProps & import("../config-provider/types").ComponentCommonProps, Paragraph, {}>;
export default _default;