aboutsummaryrefslogtreecommitdiff
path: root/resources/vue/components/forms/LabelRequired.vue
blob: 7a123776c79c2e9cf9985ef719e94f70aca01f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<template>
    <label class="studiprequired" :for="id">
        <span class="textlabel">{{ label }}</span>
        <span class="asterisk" :title="$gettext('Dies ist ein Pflichtfeld')" aria-hidden="true">*</span>
        <slot></slot>
    </label>
</template>

<script>
export default {
    props: {
        id: {
            type: String,
            required: true,
        },
        label: {
            type: String,
            required: true,
        },
    },
};
</script>