mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
33 lines
588 B
Vue
33 lines
588 B
Vue
<template>
|
|
<div :class="wrapperClassName">
|
|
<BFormGroup :label="label" :label-for="labelFor">
|
|
<BFormInput
|
|
v-bind="$attrs"
|
|
/>
|
|
<slot></slot>
|
|
</BFormGroup>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed, defineOptions } from 'vue'
|
|
|
|
defineOptions({
|
|
inheritAttrs: false,
|
|
})
|
|
|
|
const props = defineProps({
|
|
label: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
name: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
})
|
|
|
|
const wrapperClassName = computed(() => `input-${props.name}`)
|
|
const labelFor = computed(() => `${props.name}-input-field`)
|
|
</script>
|