Files
vuefilemanager/resources/js/components/Admin/AppInputText.vue
2022-02-28 17:06:41 +01:00

27 lines
708 B
Vue

<template>
<div :class="{ 'mb-6 sm:mb-7': !isLast }">
<!--Label for input-->
<label v-if="title" class="mb-1.5 block text-sm font-bold text-gray-700 dark:text-gray-200">
{{ title }}:
</label>
<!--Form element-->
<slot />
<!--Input Description-->
<span v-if="error" class="pt-2 text-xs text-rose-600">
{{ error }}
</span>
<!--Input Description-->
<small v-if="description" class="block pt-2 text-xs leading-4 text-gray-500" v-html="description"></small>
</div>
</template>
<script>
export default {
name: 'AppInputText',
props: ['description', 'isLast', 'title', 'error'],
}
</script>