Skip to content

Commit

Permalink
Add spacing to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Nov 14, 2020
1 parent fdca920 commit fc8be9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/formik/src/ErrorMessage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import * as React from 'react';
import { useFieldError, useFieldTouched } from './useField';
import { isFunction } from './utils';

export interface ErrorMessageProps {
name: string;
className?: string;
component?: string | React.ComponentType;
children?: (errorMessage: string) => React.ReactNode;
render?: (errorMessage: string) => React.ReactNode;
}

export function ErrorMessage({
component,
render,
Expand Down

0 comments on commit fc8be9a

Please sign in to comment.