@dccs/react-formik-mui
Version:
Simple Formik <-> MaterialUI wrappers
21 lines (20 loc) • 796 B
TypeScript
/// <reference types="react" />
import { SwitchProps } from "@material-ui/core/Switch";
import { FormControlLabelProps } from "@material-ui/core/FormControlLabel";
import { FormHelperTextProps } from "@material-ui/core/FormHelperText";
import { FormControlProps } from "@material-ui/core/FormControl";
interface IBaseProps {
name: string;
label?: string;
helperText?: string;
error?: boolean;
useField?: boolean;
formControlLabelProps?: Omit<FormControlLabelProps, "control" | "label">;
formControlProps?: FormControlProps;
formHelperTextProps?: FormHelperTextProps;
fieldProps?: {};
validate?: any;
}
export declare type FormikSwitchProps = IBaseProps & SwitchProps;
export declare function FormikSwitch(props: FormikSwitchProps): JSX.Element;
export {};