UNPKG

securesharkinputs

Version:

Advanced enterprise validation library with multi-layer security protection for SecureShark

29 lines 913 B
import React from 'react'; interface ValidationSharkProps { name: string; type?: string; placeholder?: string; label?: string; required?: boolean; className?: string; style?: React.CSSProperties; onValid?: () => void; onInvalid?: () => void; blockForm?: boolean; showMessages?: boolean; } declare const ValidationShark: React.FC<ValidationSharkProps>; export declare const useValidationShark: (config?: any) => { isValid: boolean; message: string; validate: (input: string) => Promise<{ isValid: boolean; reason: string; } | { isValid: boolean; reason?: undefined; }>; }; export declare const withValidationShark: <P extends object>(Component: React.ComponentType<P>, config?: any) => (props: P) => import("react/jsx-runtime").JSX.Element; export default ValidationShark; //# sourceMappingURL=ValidationShark.d.ts.map