@material-ui/core
Version:
React components that implement Google's Material Design.
19 lines (14 loc) • 547 B
TypeScript
import { Context } from 'react';
import { FormControlProps } from './FormControl';
type ContextFromPropsKey = 'disabled' | 'error' | 'margin' | 'required' | 'variant';
export interface FormControlContextProps extends Pick<FormControlProps, ContextFromPropsKey> {
adornedStart: boolean;
filled: boolean;
focused: boolean;
onBlur: () => void;
onEmpty: () => void;
onFilled: () => void;
onFocus: () => void;
}
declare const FormControlContext: Context<FormControlContextProps | null | undefined>;
export default FormControlContext;