@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
12 lines • 640 B
text/typescript
import { type FormControlState } from "./FormControlContext.mjs";
type FormControlStateKey = keyof FormControlState;
type FormControlStateResult<Props, States extends readonly FormControlStateKey[]> = { [State in States[number]]: State extends keyof Props ? Props[State] | FormControlState[State] : FormControlState[State] };
export default function useFormControl(): FormControlState | undefined;
export declare function useFormControlState<Props, States extends readonly FormControlStateKey[]>({
props,
states
}: {
props: Props;
states: States;
}): [FormControlStateResult<Props, States>, FormControlState | undefined];
export {};