-
Notifications
You must be signed in to change notification settings - Fork 1
/
Button.js
42 lines (37 loc) · 1.15 KB
/
Button.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
// @flow
declare module "@material-ui/core/Button" {
import type {Color} from "@material-ui/core/PropTypes";
import type {StandardProps} from "@material-ui/core/styles/withStyles";
import type {ButtonBaseProps} from "@material-ui/core/ButtonBase";
declare export type ButtonClassKey =
| "root"
| "label"
| "flatPrimary"
| "flatSecondary"
| "colorInherit"
| "raised"
| "focusVisible"
| "raisedPrimary"
| "raisedSecondary"
| "disabled"
| "fab"
| "mini"
| "sizeSmall"
| "sizeLarge"
| "fullWidth";
declare export type ButtonProps = StandardProps<ButtonBaseProps, ButtonClassKey> & {
color?: Color,
component?: React$ComponentType<ButtonProps>,
disabled?: boolean,
disableFocusRipple?: boolean,
disableRipple?: boolean,
fullWidth?: boolean,
href?: string,
mini?: boolean,
size?: "small" | "medium" | "large",
type?: string,
variant?: "flat" | "outlined" | "raised" | "fab"
};
declare type Button = React$ComponentType<ButtonProps>;
declare module.exports: Button;
}