-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathCircularProgressProps.ts
87 lines (83 loc) · 2.23 KB
/
CircularProgressProps.ts
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { Theme } from "../styles";
import { CircularProgressClasses } from "./circularProgressClasses";
import { SxProps } from "@suid/system";
import {
ElementType,
OverridableStringUnion,
OverrideProps,
} from "@suid/types";
export interface CircularProgressPropsColorOverrides {}
export interface CircularProgressTypeMap<
P = {},
D extends ElementType = "span",
> {
name: "MuiCircularProgress";
defaultPropNames:
| "color"
| "disableShrink"
| "size"
| "thickness"
| "value"
| "variant";
selfProps: {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<CircularProgressClasses>;
/**
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'primary'
*/
color?: OverridableStringUnion<
| "primary"
| "secondary"
| "error"
| "info"
| "success"
| "warning"
| "inherit",
CircularProgressPropsColorOverrides
>;
/**
* If `true`, the shrink animation is disabled.
* This only works if variant is `indeterminate`.
* @default false
*/
disableShrink?: boolean;
/**
* The size of the component.
* If using a number, the pixel unit is assumed.
* If using a string, you need to provide the CSS unit, e.g '3rem'.
* @default 40
*/
size?: number | string;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The thickness of the circle.
* @default 3.6
*/
thickness?: number;
/**
* The value of the progress indicator for the determinate variant.
* Value between 0 and 100.
* @default 0
*/
value?: number;
/**
* The variant to use.
* Use indeterminate when there is no progress value.
* @default 'indeterminate'
*/
variant?: "determinate" | "indeterminate";
};
props: P & CircularProgressTypeMap["selfProps"];
defaultComponent: D;
}
export type CircularProgressProps<
D extends ElementType = CircularProgressTypeMap["defaultComponent"],
P = {},
> = OverrideProps<CircularProgressTypeMap<P, D>, D>;
export default CircularProgressProps;