UNPKG

mui-extended

Version:

Extended UI Components built on Material UI

12 lines (11 loc) 777 B
import { FormControlProps, FormHelperTextProps, FormLabelProps } from "@mui/material"; import { FunctionComponent } from "react"; import { ControlledInputAttributes, FormFieldAttributes } from "../FormField"; export type FormInputAttributes = { labelProps?: FormLabelProps; helperTextProps?: FormHelperTextProps; }; export type FormInputControlProps<T extends ControlledInputAttributes> = FormControlProps & FormInputAttributes & FormFieldAttributes & { InputProps?: Omit<T, keyof ControlledInputAttributes>; }; export declare const withFormInputControl: <T extends ControlledInputAttributes>(ControlledInput: FunctionComponent<T>) => import("react").ForwardRefExoticComponent<Omit<FormInputControlProps<T>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;