@blueprintjs-formik/core
Version:
Bindings for using Formik and Blueprint.js
16 lines (15 loc) • 606 B
TypeScript
/// <reference types="react" />
import { SwitchProps as BPSwitchProps } from '@blueprintjs/core';
import { FieldProps } from 'formik';
import { FieldBaseProps } from './FieldBase';
export interface SwitchProps extends BPSwitchProps, Omit<FieldBaseProps, 'value' | 'type' | 'children' | 'component'> {
name: string;
}
export interface SwitchToFieldProps extends FieldProps, Omit<BPSwitchProps, 'form'> {
}
/**
* Switch BP wrapped component to bind with Formik.
* @param {SwitchProps}
* @returns {JSX.Element}
*/
export declare function Switch({ ...props }: SwitchProps): JSX.Element;