vue-form-error

A Vue.js component that is used to display validation errors on form inputs.
864 2
Install
npm install vue-form-error
Latest Version:1.0.10
Vue:2
License:MIT
Last Updated:Jan 3, 2023
Links: GitHub  ·  npm
Maintainer: ziadadeela

vue-form-error

NPM Versionnpm-versionlicense

A simple Vuejs component that can be used to display form validation errors on inputs.

Demo

https://codesandbox.io/s/vue-form-error-kwjv0

Installation

npm install vue-form-error --save 

OR

yarn add vue-form-error

Usage

<template>
    <div>
        <FormError :errors="formErrors.name">
            <label for="Name">Name</label>
            <input type="text" class="form-control" id="Name"
                   placeholder="Name">
        </FormError>
    </div>
</template>

<script>
    // Import component
    import FormError from 'vue-form-error';
    // Import stylesheet
    import "vue-form-error/dist/FormError.css";
    
    export default {
        data() {
            return {
                formErrors:{}
            }
        },
        components: {
            FormError
        },
        methods: {
        }
    }
</script>

Run Examples Locally

  • Clone this repo
  • Install dependencies: npm install
  • Run dev server and it will open on http://localhost:8080 : npm run serve

License

Released under the MIT License.

Related Packages

@detools/vue-form

Form State Management for VueJS

16,595 12
vue-dog-form

The simplest vue 3 form validation plugin.

65,599 8
vue-form-2

Vue.js 2 form component

16,113 55
@vuetils/form

Tiny form validation library for Vue

10,354 3
vform

Handle Laravel-Vue forms and validation with ease.

163,759 600

Version History

Version Released Vue License
1.0.10 ^2.5.17 MIT
1.0.8 ^2.5.17 MIT
1.0.7 ^2.5.17 MIT
1.0.6 ^2.5.17 MIT
1.0.5 ^2.5.17 MIT