Schema-driven rendering
Map your schema directly to UI components so each field stays typed, validated, and consistent.
A headless architecture to manage form state, complex validation, and conditional logic with a single source of truth for web and mobile.
Map your schema directly to UI components so each field stays typed, validated, and consistent.
Pass specialized props to web or native components through a single unified schema entry.
Built-in fluent validation covers every common rule. No need to install Zod, Yup, or any external library.
No provider is required for the default flow. Start from a schema and ship the form runtime directly.
Keep the form definition as the source of truth and reuse the same runtime shape across React and React Native.
useFormBridge() returns a ready-to-render Form wrapper and field components with UI props scoped to each platform.
Every field carries its own fluent validation rules. No external library required - everything ships with the package.
Draft persistence, async options, readonly views, dynamic forms, analytics hooks, and wizards are documented end to end.
FormBridge decouples the data model from the UI rendering layer. Write your validation and business logic once, implement the visual layer twice.
npm install @runilib/react-formbridgeDescribe every field, its type, validation rules, and default value in a single TypeScript object.
Call useFormBridge(schema) and get a typed Form wrapper plus ready-to-render field components for web or native.
Start from a small schema, add password strength, cross-field validation, and draft recovery without hand-wiring input state.
Use masked fields, phone inputs, dynamic country-specific requirements, and saved progress for longer purchase flows.
Seed existing values, infer fields from data structures, and pair edit forms with readonly or diff views for approval steps.
Split large schemas into wizard steps, keep validation predictable, and preserve a shared submission model across pages or screens.
Bootstrap your first schema-driven form in minutes.
Automatically save and restore form progress across sessions.
Use the core hook for timing, state, and validation lifecycle.
Orchestrate multi-step flows with branching logic.
Configure remote dropdowns with async option loading.
Optional bridge for teams already using Zod, Yup, Joi, or Valibot.
Stop duplicating validation logic. Build robust, type-safe forms that scale with your engineering team.
Yes. The library is designed around one schema-first API that renders on React web and React Native with platform-specific UI surfaces where needed.
No. FormBridge ships with a complete fluent validation API built into every field builder. External adapters exist for teams that already rely on Zod or Yup, but they are entirely optional.
No. The docs include async options, conditional fields, persistence, multi-step wizards, inferred schemas, readonly rendering, and analytics hooks for production flows.
No. The standard flow is provider-free. You define a schema, call useFormBridge(), and render the generated Form and field components directly.