MobX React Form
Declarative, validated forms for React and MobX. Define fields, rules, and UI once — works across Material UI, Ant Design, React Widgets, React Select, React Aria, and plain HTML.
Built for real forms
From simple contact forms to complex multi-step wizards.
Declarative Validation
Define validation rules inline with your field definitions using validatorjs or custom functions. Sync and async, with per-field error messages that update reactively.
MobX Reactive
Every field state, error, and touch event is observable. Your UI reactively updates with zero extra code.
Any UI Library
Bring your own UI. Material UI, Ant Design, React Widgets, React Select, React Aria, or plain HTML — same form definition, any render.
Dynamic & Nested Fields
Deeply nested field structures, dynamic field arrays with add/remove, sortable lists, and conditional logic. Handles complex data hierarchies with MobX-powered reactivity.
Get started
Install from npm and start building.
mobx-react-form
Install the library to define your forms, fields, and validation
npm i --save mobx-react-formmobx-react-form-devtools
Inspect form state, fields, and validation in real time.
npm i --save mobx-react-form-devtools