blob: 6f718fdbeb3b8b5a9360254004277ef81177f2ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<script setup>
defineProps({
type: {
type: String,
default: "text"
},
label: {
type: String,
default: "Text"
},
modelValue: {
type: String,
default: ""
}
});
defineEmits(['update:modelValue']);
</script>
<template>
<div class="form-floating form-input">
<input
:id="$.uid"
:type="type"
class="form-control"
:value="modelValue"
:placeholder="label"
required
@input="$emit('update:modelValue', $event.target.value)"
>
<label :for="$.uid">{{ label }}</label>
</div>
</template>
<style scoped>
</style>
|