settings inputs refactoring

This commit is contained in:
Čarodej
2021-11-22 17:41:46 +01:00
parent 79281e80f6
commit 6dd40df7d5
9 changed files with 318 additions and 343 deletions

View File

@@ -0,0 +1,35 @@
<template>
<div class="mb-7 flex justify-between w-full">
<!--Label for input-->
<div class="leading-5">
<label class="text-sm font-bold text-gray-700 mb-1.5 block">
{{ title }}:
</label>
<!--Input Description-->
<span v-if="description" class="text-xs text-gray-500 leading-3" v-html="description"></span>
<!--Input Description-->
<span v-if="error" class="error-message">
{{ error }}
</span>
</div>
<!--Form element-->
<div>
<slot></slot>
</div>
</div>
</template>
<script>
export default {
name: 'AppInputSwitch',
props: [
'description',
'title',
'error',
]
}
</script>