UNPKG

formik-material-ui

Version:

[![Build Status](https://travis-ci.org/stackworx/formik-material-ui.svg?branch=master)](https://travis-ci.org/stackworx/formik-material-ui) [![license](https://badgen.now.sh/badge/license/MIT)](./LICENSE) [![Coverage Status](https://coveralls.io/repos/git

8 lines (7 loc) 495 B
import * as React from 'react'; import { CheckboxProps as MuiCheckboxProps } from '@material-ui/core/Checkbox'; import { FieldProps } from 'formik'; export interface CheckboxProps extends FieldProps, Omit<MuiCheckboxProps, 'form' | 'checked' | 'defaultChecked' | 'name' | 'onChange' | 'value'> { } export declare const fieldToCheckbox: ({ field, form: { isSubmitting }, disabled, ...props }: CheckboxProps) => MuiCheckboxProps; export declare const Checkbox: React.ComponentType<CheckboxProps>;