@mui/base
Version:
A library of headless ('unstyled') React UI components and low-level hooks.
19 lines (18 loc) • 810 B
TypeScript
export interface FormControlClasses {
/** Class applied to the root element. */
root: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
/** State class applied to the root element if `error={true}`. */
error: string;
/** State class applied to the root element if the inner input has value. */
filled: string;
/** State class applied to the root element if the inner input is focused. */
focused: string;
/** State class applied to the root element if `required={true}`. */
required: string;
}
export type FormControlClassKey = keyof FormControlClasses;
export declare function getFormControlUtilityClass(slot: string): string;
declare const formControlClasses: FormControlClasses;
export default formControlClasses;