formik
Version:
Forms in React, without tears
16 lines (15 loc) • 662 B
TypeScript
/// <reference types="hoist-non-react-statics" />
import * as React from 'react';
import { FormikContext } from './types';
export interface ErrorMessageProps {
name: string;
className?: string;
component?: string | React.ComponentType;
children?: ((errorMessage: string) => React.ReactNode);
render?: ((errorMessage: string) => React.ReactNode);
}
export declare const ErrorMessage: React.FunctionComponent<ErrorMessageProps> & import("hoist-non-react-statics").NonReactStatics<React.ComponentClass<ErrorMessageProps & {
formik: FormikContext<ErrorMessageProps & {
formik: FormikContext<any>;
}>;
}, any>, {}>;