API Reference

@modular-forms/react

Type-safe, modular form library for React with field-level validation, async submission, and reactive state management.

Official Documentation ↗
CompatibilityThis documentation covers version v0.7. Check the official docs for the latest API surface.

Installation

npmnpm install @modular-forms/react

Methods

@modular-forms/react is type-safe, modular form library for react with field-level validation, async submission, and reactive state management. This page documents the core methods, installation, and common usage patterns for the current stable release.

Installation

Install @modular-forms/react with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.

Core methods

The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v0.7 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.

Frequently asked questions

The faq section in the frontmatter answers the most common questions about @modular-forms/react, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.

FAQ

Is it related to Modular Forms?
It is part of the modular ecosystem; the $ suffix follows the signal convention.
Does it support zod schemas?
Yes. Pass a zod schema to the form options for automatic field validation.
Can I use it with SolidJS?
Use @modular-forms/solid for Solid; the core is shared.