UNPKG

513 BTypeScriptView Raw
1/// <reference types="react" />
2
3import * as React from 'react';
4import CommonProps from '../util';
5
6export interface ParagraphProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
7 /**
8 * 额外的样式名 会附加到 root dom 上
9 */
10 className?: string;
11
12 /**
13 * 什么方式展示段落
14 */
15 type?: 'long' | 'short';
16
17 /**
18 * 组件大小。
19 */
20 size?: 'medium' | 'small';
21}
22
23export default class Paragraph extends React.Component<ParagraphProps, any> {}