UNPKG

@arteneo/forge

Version:
14 lines (13 loc) 865 B
import React from "react"; import { FormikValues } from "formik"; import { FormControlProps, FormControlLabelProps } from "@mui/material"; import FieldInterface from "../../../components/Form/definitions/FieldInterface"; interface CheckboxSpecificProps { onChange?: (path: string, setFieldValue: (field: string, value: any, shouldValidate?: boolean) => void, event: React.SyntheticEvent, checked: boolean, onChange: () => void, values: FormikValues, name: string) => void; formControlLabelProps?: FormControlLabelProps; formControlProps?: FormControlProps; } type CheckboxProps = CheckboxSpecificProps & FieldInterface; declare const Checkbox: ({ onChange, formControlLabelProps, formControlProps, validate: fieldValidate, ...field }: CheckboxProps) => React.JSX.Element | null; export default Checkbox; export { CheckboxProps, CheckboxSpecificProps };