UNPKG

@dccs/react-formik-mui

Version:
21 lines (20 loc) 796 B
/// <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 {};