Add frontend 2.0

This commit is contained in:
2022-01-22 19:28:06 +01:00
parent ff22127baa
commit e0efd9dc41
28 changed files with 1954 additions and 140 deletions

View File

@@ -0,0 +1,23 @@
<script setup lang="ts">
defineProps<{
label: string;
modelValue: string;
}>();
const emit = defineEmits<{
(event: 'update:modelValue', value: string): void;
}>();
</script>
<template>
<div>
<label class="block text-sm font-medium text-gray-700">{{ label }}</label>
<div class="mt-1 relative rounded-md shadow-sm">
<textarea
class="focus:ring-blue-500 focus:border-blue-500 block w-full border-gray-300 rounded-md"
:value="modelValue"
v-bind="$attrs"
@input="emit('update:modelValue', $event.target.value)"
/>
</div>
</div>
</template>