-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTypography.js
46 lines (41 loc) · 1.32 KB
/
Typography.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// @flow
declare module "@material-ui/core/Typography" {
import type {StandardProps} from "@material-ui/core/styles/withStyles";
import type {Style, TextStyle} from "@material-ui/core/styles/createTypography";
import type {Color, Alignment} from "@material-ui/core/PropTypes";
declare 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";
// React$ElementProps<typeof HTMLDivElement>
declare export type TypographyProps = StandardProps<{}, TypographyClassKey> & {
align?: Alignment;
color?: Color | "textSecondary" | "error";
component?: React$ComponentType<TypographyProps>;
gutterBottom?: boolean;
headlineMapping?: { [type: $Keys<TextStyle>]: string };
noWrap?: boolean;
paragraph?: boolean;
variant?: Style | "caption" | "button";
};
declare type Typography = React$ComponentType<TypographyProps>;
declare module.exports: Typography;
}