GoScrobble/web/node_modules/formik-material-ui/dist/Checkbox.d.ts

12 lines
648 B
TypeScript

/// <reference types="react" />
import { CheckboxProps as MuiCheckboxProps } from '@material-ui/core/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;
}