mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
32 lines
608 B
Vue
32 lines
608 B
Vue
<template>
|
|
<div :class="{'mb-7': !isLast}">
|
|
|
|
<!--Label for input-->
|
|
<label v-if="title" class="text-sm font-bold text-gray-700 mb-1.5 block">
|
|
{{ title }}:
|
|
</label>
|
|
|
|
<!--Form element-->
|
|
<slot></slot>
|
|
|
|
<!--Input Description-->
|
|
<small v-if="description" class="text-xs text-gray-500 leading-4 block" v-html="description"></small>
|
|
|
|
<!--Input Description-->
|
|
<span v-if="error" class="text-red-700 pt-2 text-xs">
|
|
{{ error }}
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'AppInputText',
|
|
props: [
|
|
'description',
|
|
'isLast',
|
|
'title',
|
|
'error',
|
|
]
|
|
}
|
|
</script> |