UNPKG

1.73 kBTypeScriptView Raw
1export interface InputClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5 formControl: string;
6 /** Styles applied to the root element if the component is focused. */
7 focused: string;
8 /** Styles applied to the root element if `disabled={true}`. */
9 disabled: string;
10 /** Styles applied to the root element if color secondary. */
11 colorSecondary: string;
12 /** Styles applied to the root element unless `disableUnderline={true}`. */
13 underline: string;
14 /** State class applied to the root element if `error={true}`. */
15 error: string;
16 /** Styles applied to the input element if `size="small"`. */
17 sizeSmall: string;
18 /** Styles applied to the root element if `multiline={true}`. */
19 multiline: string;
20 /** Styles applied to the root element if `fullWidth={true}`. */
21 fullWidth: string;
22 /** Styles applied to the input element. */
23 input: string;
24 /** Styles applied to the input element if `size="small"`. */
25 inputSizeSmall: string;
26 /** Styles applied to the input element if `multiline={true}`. */
27 inputMultiline: string;
28 /** Styles applied to the input element if `startAdornment` is provided. */
29 inputAdornedStart: string;
30 /** Styles applied to the input element if `endAdornment` is provided. */
31 inputAdornedEnd: string;
32 /** Styles applied to the input element if `type="search"`. */
33 inputTypeSearch: string;
34}
35export type InputClassKey = keyof InputClasses;
36export declare function getInputUtilityClass(slot: string): string;
37declare const inputClasses: InputClasses;
38export default inputClasses;