From fc8be9a501c3ba3746f01619c680ca4affeac3e0 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 13 Nov 2020 19:29:47 -0500 Subject: [PATCH] Add spacing to error message --- packages/formik/src/ErrorMessage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/formik/src/ErrorMessage.tsx b/packages/formik/src/ErrorMessage.tsx index 853eb7bfc..dba6eb9a1 100644 --- a/packages/formik/src/ErrorMessage.tsx +++ b/packages/formik/src/ErrorMessage.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { useFieldError, useFieldTouched } from './useField'; import { isFunction } from './utils'; + export interface ErrorMessageProps { name: string; className?: string; @@ -8,6 +9,7 @@ export interface ErrorMessageProps { children?: (errorMessage: string) => React.ReactNode; render?: (errorMessage: string) => React.ReactNode; } + export function ErrorMessage({ component, render,