UNPKG

formguardian-react

Version:

A reusable, customizable Form Validator Widget for React with comprehensive validation, error handling, and micro-animations.

11 lines (10 loc) 838 B
/** * React Form Guard - A reusable, customizable Form Validator Widget * Main entry point for the package */ export { DynamicForm } from './components/DynamicForm'; export { FormField } from './components/FormField'; export { useFormSubmission, useFormValidator } from './hooks/useFormValidator'; export type { CustomValidator, CustomizationOptions, FieldBlurHandler, FieldChangeHandler, FieldConfig, FieldError, FormConfig, FormState, FormSubmitHandler, InputType, ValidationResult, ValidationRule, ValidatorType } from './lib/types'; export { isEmpty, sanitizeValues, validateField, validateForm } from './lib/validators'; export { darkTheme, forestTheme, generateThemeVariables, getTheme, gradientTheme, minimalTheme, modernTheme, oceanTheme, purpleTheme, sunsetTheme, themes, type FormTheme, type ThemeName } from './lib/themes';