-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathformControlLabelClasses.ts
39 lines (34 loc) · 1.22 KB
/
formControlLabelClasses.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
import { generateUtilityClasses, generateUtilityClass } from "@suid/base";
export interface FormControlLabelClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `labelPlacement="start"`. */
labelPlacementStart: string;
/** Styles applied to the root element if `labelPlacement="top"`. */
labelPlacementTop: string;
/** Styles applied to the root element if `labelPlacement="bottom"`. */
labelPlacementBottom: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
/** Styles applied to the label's Typography component. */
label: string;
/** State class applied to the root element if `error={true}`. */
error: string;
}
export type FormControlLabelClassKey = keyof FormControlLabelClasses;
export function getFormControlLabelUtilityClasses(slot: string): string {
return generateUtilityClass("MuiFormControlLabel", slot);
}
const formControlLabelClasses: FormControlLabelClasses = generateUtilityClasses(
"MuiFormControlLabel",
[
"root",
"labelPlacementStart",
"labelPlacementTop",
"labelPlacementBottom",
"disabled",
"label",
"error",
]
);
export default formControlLabelClasses;