@alifd/next
Version:
A configurable component library for web built on React.
24 lines (18 loc) • 513 B
TypeScript
/// <reference types="react" />
import * as React from 'react';
import CommonProps from '../util';
export interface ParagraphProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
/**
* 额外的样式名 会附加到 root dom 上
*/
className?: string;
/**
* 什么方式展示段落
*/
type?: 'long' | 'short';
/**
* 组件大小。
*/
size?: 'medium' | 'small';
}
export default class Paragraph extends React.Component<ParagraphProps, any> {}