diff --git a/README.md b/README.md index d6bcb42..fe9ab5b 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,10 @@ const successFn = (form: Record) => {console.log({form})} ### For a more advanced usage visit the [Docs](https://vue-form-handler.com) +## 📈 Project activity +--- +![Alt](https://repobeats.axiom.co/api/embed/d0da4b79bde282068c5f3da3505091b1447a1f6c.svg "Repobeats analytics image") + ## 💜 Thanks --- This project is heavily inspired by other awesome projects like: diff --git a/docs/.vitepress/config.cts b/docs/.vitepress/config.cts index e83352b..f2f922e 100644 --- a/docs/.vitepress/config.cts +++ b/docs/.vitepress/config.cts @@ -18,6 +18,13 @@ export default defineConfig({ pattern: 'https://github.com/dbssman/vue-form-handler/edit/master/docs/:path', text: 'Edit this page on GitHub', }, + socialLinks: [ + { icon: 'github', link: 'https://github.com/dbssman/vue-form-handler' } + ], + footer: { + message: 'Released under the MIT License.', + copyright: 'Copyright © 2022-present Dennis R. Bosmans', + }, nav: [ { text: 'Home', link: '/' }, { text: 'Get started', link: '/get-started/introduction' }, diff --git a/docs/guides/custom-components.md b/docs/guides/custom-components.md index 20796fa..71889b9 100644 --- a/docs/guides/custom-components.md +++ b/docs/guides/custom-components.md @@ -1 +1,5 @@ -# Custom components \ No newline at end of file +# Custom components + +## Utilities + +## Examples diff --git a/docs/guides/form-submission.md b/docs/guides/form-submission.md deleted file mode 100644 index 2d47ca1..0000000 --- a/docs/guides/form-submission.md +++ /dev/null @@ -1 +0,0 @@ -# Form submission \ No newline at end of file diff --git a/docs/guides/material-libraries.md b/docs/guides/material-libraries.md new file mode 100644 index 0000000..4293de5 --- /dev/null +++ b/docs/guides/material-libraries.md @@ -0,0 +1,7 @@ +# Material libraries + +## Support + +## How it works + +## Examples \ No newline at end of file diff --git a/docs/guides/native-support.md b/docs/guides/native-support.md index 70315f3..cda4e1b 100644 --- a/docs/guides/native-support.md +++ b/docs/guides/native-support.md @@ -1 +1,5 @@ -# Native support \ No newline at end of file +# Native support + +## Why ? + +## Supported features diff --git a/docs/guides/typescript.md b/docs/guides/typescript.md index 721c965..3f57b12 100644 --- a/docs/guides/typescript.md +++ b/docs/guides/typescript.md @@ -1 +1,5 @@ -# Typescript \ No newline at end of file +# Typescript + +## Type support + +## Examples diff --git a/docs/guides/validation.md b/docs/guides/validation.md index 0d70767..cb65f18 100644 --- a/docs/guides/validation.md +++ b/docs/guides/validation.md @@ -1 +1,11 @@ -# Validation \ No newline at end of file +# Validation + +## Form-level Validation + +## Field-level Validation + +## Manually Trigger Validation + +## When do Validations run? + +## Display error messages diff --git a/package.json b/package.json index 090787e..786ff69 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,11 @@ "author": "Dennis R. Bosmans", "name": "vue-form-handler", "description": "Vue 3 form handler, with validation, error handling, and more.", + "repository": { + "type":"git", + "url":"https://github.com/dbssman/vue-form-handler" + }, + "homepage": "https://www.vue-form-handler.com/", "license": "MIT", "private": false, "version": "0.0.2", diff --git a/src/core/constants.ts b/src/core/constants.ts index 897155e..55eac14 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -6,7 +6,8 @@ export const BaseInputProps = { name: { type: String, required: true }, isDirty: { type: Boolean, default: () => false }, isTouched: { type: Boolean, default: () => false }, - errors: { type: Object, default: () => { } }, + disabled: { type: Boolean, default: () => false }, + error: { type: String, default: () => '' }, onBlur: { type: Function, required: true }, onClear: { type: Function, default: () => null }, modelValue: { type: [String, Object, Array, Number, Boolean, null], required: true },