UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

26 lines (21 loc) 546 B
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;