JSPM

@nylira/vue-form-msg

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 54
  • Score
    100M100P100Q76796F
  • License MIT

Form input error and desc component for Vue 2.

Package Exports

  • @nylira/vue-form-msg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nylira/vue-form-msg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.