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

12 lines
616 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
/// <reference types="react" />
import { SwitchProps as MuiSwitchProps } from '@material-ui/core/Switch';
import { FieldProps } from 'formik';
export interface SwitchProps extends FieldProps, Omit<MuiSwitchProps, 'checked' | 'name' | 'value' | 'defaultChecked' | 'form' | 'type'> {
type?: string;
}
export declare function fieldToSwitch({ disabled, field: { onBlur: fieldOnBlur, ...field }, form: { isSubmitting }, type, onBlur, ...props }: SwitchProps): MuiSwitchProps;
export declare function Switch(props: SwitchProps): JSX.Element;
export declare namespace Switch {
var displayName: string;
}