0.2.4 • Published 5 years ago

vue-input-groups v0.2.4

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

Vue Input Groups

Vue input groups with validation

Demo and guide

Usage

Import package in your project:

import InputGroup from "vue-input-groups"

//...

components: {
    InputGroup
}

Or, without bundlers:

<link rel="stylesheet" href="css/VueInputGroups.css">
<!--...-->
<script src="js/VueInputGroups.umd.min.js"></script>
new Vue({
    //...
    components: {
        InputGroup: VueInputGroups
    }
})

Then, you should make data-container and field description

//...
components: {
    InputGroups
},
data() {
    return {
        formValue: {
            name: "",
            password: "",
        },
        fields: {
            //keys have to be named as well as keys in formValue
            name: {
                type: "text",
                placeholder: "Enter your name"
            },
            password: {
                type: "password",
                placeholder: "Enter password"
            }
        }
    } 
}

Now, you can make input group in your app

<input-group v-model="formValue"
             :fields="fields">
</input-group>

For more information, go to docs

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.0

5 years ago