UNPKG

formik-material-ui

Version:

![](https://github.com/stackworx/formik-material-ui/workflows/Build%20formik-material-ui/badge.svg) ![](https://github.com/stackworx/formik-material-ui/workflows/Build%20formik-material-ui-lab/badge.svg) [![license](https://badgen.now.sh/badge/license/MIT

12 lines (11 loc) 644 B
/// <reference types="react" /> import { CheckboxProps as MuiCheckboxProps } from '@mui/material/Checkbox'; import { FieldProps } from 'formik'; export interface CheckboxProps extends FieldProps, Omit<MuiCheckboxProps, 'name' | 'value' | 'error' | 'form' | 'checked' | 'defaultChecked' | 'type'> { type?: string; } export declare function fieldToCheckbox({ disabled, field: { onBlur: fieldOnBlur, ...field }, form: { isSubmitting }, type, onBlur, ...props }: CheckboxProps): MuiCheckboxProps; export declare function Checkbox(props: CheckboxProps): JSX.Element; export declare namespace Checkbox { var displayName: string; }