@nylira/vue-form-msg
vue-form-msg
Form input errors and descriptions for Vue 2.
Installation
npm install @nylira/vue-form-msg
Usage
<template>
<form-msg name="Display Name" type="required" v-if="!$v.fields.displayName.required"></form-msg>
<form-msg name="Display Name" type="length" min="2" max="20" v-if="!$v.fields.displayName.menLength || !$v.fields.displayName.maxLength"></form-msg>
</template>
<script>
import FormMsg from '@nylira/vue-form-msg'
export default {
components: {
FormMsg
}
}
</script>
<style>
.ni-form-msg {
font-size 1.25rem;
}
</style>
Props
TODO! For now, read the ./src/index.vue file.
Related Packages
vue-mask-next
vue-mask-next: Empower your Vue 3 applications with effortless input field maski...
55,713
14
Version History
| Version | Released | License |
|---|---|---|
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |