UNPKG

@material-ui/core

Version:

React components that implement Google's Material Design.

27 lines (22 loc) 579 B
import { Context } from 'react'; import { FormControlProps } from './FormControl'; // shut off automatic exporting export {}; type ContextFromPropsKey = | 'disabled' | 'error' | 'fullWidth' | 'hiddenLabel' | 'margin' | 'required' | 'variant'; export interface FormControlState extends Pick<FormControlProps, ContextFromPropsKey> { adornedStart: boolean; filled: boolean; focused: boolean; onBlur: () => void; onEmpty: () => void; onFilled: () => void; onFocus: () => void; } export default function useFormControl(): FormControlState | undefined;