Introducing a library for dynamic form management in Vue #13650
velis74
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I'm building a library of front-end helpers and splitting them into multiple packages. I believe, I have reached quite a usable state for the first package, so I'm throwing it out there for you to check out and possibly comment.
https://github.com/dynamicforms/vue-forms
Below I attach the readme, but running
npm run docs:dev
will give you full-featured live documentation of all the features the library has to offer (while I'm working on a docs server to actually host the documentation).Coverage is currently >92%, depending on the metric you are looking at, so I'm fairly confident that the library's goals are being reliably served.
Any evaluation and comments would be greatly appreciated.
The readme:
@dynamicforms/vue-forms
A lightweight, reactive data entry forms library for Vue.js that handles form state management without dictating your
UI components.
Introduction
@dynamicforms/vue-forms
provides a powerful yet simple way to manage form data, validation, and state in Vueapplications. The library focuses on the logic layer of forms, giving you complete freedom to use any UI components
you prefer.
Unlike other form libraries that couple data management with specific UI components,
@dynamicforms/vue-forms
separates these concerns, allowing you to build forms that match your design system perfectly.
Features
Installation
Basic Usage Example
Here's a simple example of how to create and use a form with fields and groups:
Events Example
The library provides a powerful event system for field changes and other actions:
Built-in Validators
The library provides several built-in validators for common validation scenarios:
Conditional Form Behavior
Create dynamic forms with conditional logic using Statements and Operators:
Advanced Data Structures (Lists)
Work with array data using the List component:
TypeScript Support
The library is written in TypeScript and provides full type definitions:
Documentation
For more detailed documentation and examples, check out the documentation (currently only locally runnable).
Conclusion
@dynamicforms/vue-forms
provides a clean, flexible approach to form management in Vue applications. By focusing ondata structures and state management rather than UI components, it offers unparalleled flexibility while maintaining
a simple, intuitive API.
License
MIT
Beta Was this translation helpful? Give feedback.
All reactions