react-swift-form
Version:
React library fro form validation
10 lines (8 loc) • 337 B
TypeScript
import { ComponentPropsWithoutRef, ElementType, ReactElement } from 'react';
type IErrorProps<C extends ElementType> = ComponentPropsWithoutRef<C> & {
Component?: C;
errorPath?: string;
global?: boolean;
};
export declare function Error<C extends ElementType = 'div'>(props: IErrorProps<C>): ReactElement | null;
export {};