import React from 'react'; import { StyledComponentClass } from 'styled-components'; import { Theme } from '../types'; export interface TextProps { /** * 是否在底部添加间隙 */ gutterBottom?: boolean; /** * 是否为段落 */ paragraph?: boolean; /** * 文本样式类型 */ type?: 'dispay4' | 'display3' | 'display2' | 'display1' | 'subheading' | 'title' | 'headline' | 'body2' | 'body1' | 'caption' | 'button'; /** * 子元素 */ children?: React.ReactNode; leading?: number | string; } interface TextComp extends StyledComponentClass & React.HTMLAttributes & TextProps, Theme, React.ClassAttributes & React.HTMLAttributes & TextProps> { } /** * @ReactComponent * * 文本组件 */ declare const Text: TextComp; export default Text;