FrontPastel/node_modules/@mui/material/FormControl/FormControlContext.d.ts

18 lines
710 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
import * as React from 'react';
import type { FormControlProps } from './FormControl';
type ContextFromPropsKey = 'color' | 'disabled' | 'error' | 'fullWidth' | 'hiddenLabel' | 'margin' | 'onBlur' | 'onFocus' | 'required' | 'size' | 'variant';
export interface FormControlState extends Pick<FormControlProps, ContextFromPropsKey> {
adornedStart: boolean;
filled: boolean;
focused: boolean;
onEmpty: () => void;
onFilled: () => void;
registerEffect: () => void;
setAdornedStart: React.Dispatch<React.SetStateAction<boolean>>;
}
/**
* @ignore - internal component.
*/
declare const FormControlContext: React.Context<FormControlState | undefined>;
export default FormControlContext;