UNPKG

1.26 kBTypeScriptView Raw
1export interface InputClasses {
2 /** Class name applied to the root element. */
3 root: string;
4 /** Class name applied to the root element if the component is a descendant of `FormControl`. */
5 formControl: string;
6 /** Class name applied to the root element if `startAdornment` is provided. */
7 adornedStart: string;
8 /** Class name applied to the root element if `endAdornment` is provided. */
9 adornedEnd: string;
10 /** State class applied to the root element if the component is focused. */
11 focused: string;
12 /** State class applied to the root element if `disabled={true}`. */
13 disabled: string;
14 /** State class applied to the root element if `error={true}`. */
15 error: string;
16 /** Class name applied to the root element if `multiline={true}`. */
17 multiline: string;
18 /** Class name applied to the input element. */
19 input: string;
20 /** Class name applied to the input element if `multiline={true}`. */
21 inputMultiline: string;
22 /** Class name applied to the input element if `type="search"`. */
23 inputTypeSearch: string;
24}
25export type InputClassKey = keyof InputClasses;
26export declare function getInputUtilityClass(slot: string): string;
27export declare const inputClasses: InputClasses;