Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubk/mobx-form-lite
Lightweight form management for MobX
https://github.com/kubk/mobx-form-lite
forms mobx
Last synced: 10 days ago
JSON representation
Lightweight form management for MobX
- Host: GitHub
- URL: https://github.com/kubk/mobx-form-lite
- Owner: kubk
- License: mit
- Created: 2024-02-17T02:59:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T10:59:47.000Z (about 2 months ago)
- Last Synced: 2024-10-14T09:21:56.497Z (24 days ago)
- Topics: forms, mobx
- Language: TypeScript
- Homepage: https://kubk.github.io/mobx-form-lite/
- Size: 410 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mobx-form-lite
Lightweight form management for MobX
### Features:
- ✅ If you know MobX, you already know `mobx-form-lite`. The library is just a set of stores such as `TextField`, `BooleanField`, and helper functions like `isFormTouched`, `isFormValid` that operate on those stores.
- 🛠️ Type-safe, including nested forms. No JSON-based configuration.
- 🪶 Lightweight ([~1 kb](https://github.com/kubk/mobx-form-lite/blob/b1d52f9f604e056dca43707fc0bec752f931b01e/package.json#L24) gzipped) since MobX does all the heavy lifting.
- 🚀 Performant. It avoids unnecessary re-renders, thanks to MobX.
- 🔄 Flexible. Supports all the possible ways of defining MobX store, such as `makeAutoObservable`, `useLocalObservable`, or decorators.### Installation
```
npm i mobx-form-lite
```### Documentation
To check out docs, visit [https://kubk.github.io/mobx-form-lite/](https://kubk.github.io/mobx-form-lite/)
### State
The package is close to a major release. If the documentation doesn't answer your questions, please check the unit tests or [create an issue](https://github.com/kubk/mobx-form-lite/issues/new).