44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
import * as React from 'react';
|
|
import { StandardProps, PropTypes } from '..';
|
|
import { Style, TextStyle } from '../styles/createTypography';
|
|
|
|
export interface TypographyProps
|
|
extends StandardProps<React.HTMLAttributes<HTMLElement>, TypographyClassKey> {
|
|
align?: PropTypes.Alignment;
|
|
color?: PropTypes.Color | 'textSecondary' | 'error';
|
|
component?: React.ReactType<TypographyProps>;
|
|
gutterBottom?: boolean;
|
|
headlineMapping?: { [type in TextStyle]: string };
|
|
noWrap?: boolean;
|
|
paragraph?: boolean;
|
|
variant?: Style | 'caption' | 'button';
|
|
}
|
|
|
|
export type TypographyClassKey =
|
|
| 'root'
|
|
| 'display4'
|
|
| 'display3'
|
|
| 'display2'
|
|
| 'display1'
|
|
| 'headline'
|
|
| 'title'
|
|
| 'subheading'
|
|
| 'body2'
|
|
| 'body1'
|
|
| 'caption'
|
|
| 'button'
|
|
| 'alignLeft'
|
|
| 'alignCenter'
|
|
| 'alignRight'
|
|
| 'alignJustify'
|
|
| 'noWrap'
|
|
| 'gutterBottom'
|
|
| 'paragraph'
|
|
| 'colorInherit'
|
|
| 'colorSecondary'
|
|
| 'colorTextSecondary';
|
|
|
|
declare const Typography: React.ComponentType<TypographyProps>;
|
|
|
|
export default Typography;
|