Skip to main content

Module form_engine

Module form_engine 

Source
Expand description

§Reactive Form State & Validation Engine (form_engine)

Provides React Hook Form + Zod / Superforms parity for Rust WebAssembly:

  • Reactive FormField<T> tracking value, error, touched, dirty, is_valid signals.
  • Chainable RuleBuilder<T> supporting required, email, min_length, max_length, numeric_range, regex, and custom rules.
  • Automatic WCAG 2.1 AA compliant input rendering with accessible ARIA attributes (aria-invalid, aria-describedby), :focus-visible ring indicators, and SVG alert icons.
  • Multi-step FormWizard component with step-gated validation preventing premature advancement.

Structs§

FormField
A reactive form field containing independent state signals.
FormWizardState
Reactive State coordinator for multi-step form wizards.
RuleBuilder
Chainable rule builder for form fields.
WizardStep
Step definition for FormWizard.

Functions§

form_wizard
Renders a multi-step FormWizard with step indicators, reactive validation gating, and navigation controls.

Type Aliases§

ValidationRule
Type alias for validation rule functions.