Add optional Help text to FormField component

This commit is contained in:
Bubka 2020-02-13 16:23:49 +01:00
parent 1a3bfbf383
commit 1d2413f85c

View File

@ -5,6 +5,7 @@
<input :id="fieldName" :type="inputType" class="input" v-model="form[fieldName]" :placeholder="placeholder" v-bind="$attrs" />
</div>
<field-error :form="form" :field="fieldName" />
<p class="help" v-html="help" v-if="help"></p>
</div>
</template>
@ -45,6 +46,11 @@
type: String,
default: ''
},
help: {
type: String,
default: ''
},
}
}
</script>