1
0
mirror of synced 2025-03-28 02:43:55 +03:00
vue-formulario/src/FormulateInputErrors.vue
2019-11-06 17:17:19 -05:00

27 lines
402 B
Vue

<template>
<ul
v-if="errors.length"
class="formulate-input-errors"
>
<!-- eslint-disable -->
<li
v-for="error in errors"
:key="error"
v-html="error"
class="formulate-input-error"
/>
<!-- eslint-enable -->
</ul>
</template>
<script>
export default {
props: {
errors: {
type: [Boolean, Array],
required: true
}
}
}
</script>