audiobookshelf/client/components/ui/TextareaWithLabel.vue

34 lines
541 B
Vue
Raw Normal View History

2021-08-18 00:01:11 +02:00
<template>
<div class="w-full">
2021-08-19 18:31:03 +02:00
<p class="px-1 text-sm">{{ label }}</p>
2021-08-18 00:01:11 +02:00
<ui-textarea-input v-model="inputValue" :rows="rows" class="w-full" />
</div>
</template>
<script>
export default {
props: {
value: [String, Number],
label: String,
rows: {
type: Number,
default: 2
}
},
data() {
return {}
},
computed: {
inputValue: {
get() {
return this.value
},
set(val) {
this.$emit('input', val)
}
}
},
methods: {},
mounted() {}
}
</script>