diff --git a/README.md b/README.md index e39f372..9672506 100644 --- a/README.md +++ b/README.md @@ -1,84 +1,91 @@ -
+## What is Vue Formulario? - +Vue Formulario is a library, based on Vue Formulate, that handling the core logic for working with forms and gives full control of form presentation. - +## Examples -## What is Vue Formulate? +Every form control must be rendered inside FormularioInput component. This component provides `id` and `context` in v-slot props. Control should use `context.model` as v-model and `context.blurHandler` as handler for `blur` event (it is necessary for validation when property `errorBehavior` is `blur`). Errors list for field can be accessed through `context.allErrors`. -Vue Formulate is the easiest way to build forms with Vue. Please read the [comprehensive documentation](https://vueformulate.com) for live code examples and guidance on using Vue Formulate in your own projects. +Next example creates form for data +```json + { + "username": "", + "password": "", + "options": { + "anonym": false, + "tags": ["test"] + }, + } +``` - +```html +
- Key features- |
- |
---|---|
- 😎 Developer happiness-Forms are everywhere, yet surprisingly tedious to author — well, not anymore. Vue Formulate provides a powerful and flexible API to developers that makes complex form creation a breeze. - |
-
- ☝️ A single input element-With Vue Formulate you don't need to remember the names of a dozen components — all form elements are created with a single component. Easy! - |
-
- 💪 Grouped fields-Vue Formulate ships with repeatable field groups out of the box. Create complex UIs such as multi-person booking forms with ease. - |
-
- 🎯 Built-in validation-Ridiculously easy validation out-of-the-box to handle 95% of use-cases. Help text, validation rules, and validation messages are simple props. Need more? You can add custom validations too. - |
-
- 🔌 Plugin system-Extend Vue Formulate's functionality or reuse custom inputs, validation rules, and messages across projects by tapping into the plugin system. Make your plugin open source to share with others! - |
-
- ✨ Generate forms-Generate an entire form from a JSON string. Because Vue Formulate uses a single input component, you can easily loop through an array and dynamically generate a form. - |
-