1
0
Fork 0
mirror of https://github.com/archtechx/airwire-demo.git synced 2025-12-12 00:24:03 +00:00
airwire-demo/resources/js/components/FormGroup.vue
2021-05-21 18:38:26 +02:00

16 lines
431 B
Vue

<template>
<label class="flex flex-col space-y-1" :key="label">
<span class="text-sm font-semibold text-gray-600">{{ label }}</span>
<slot />
<errors :errors="errors" :key="label" />
</label>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import Errors from './Errors.vue'
export default defineComponent({
components: { Errors },
props: ['label', 'errors']
})
</script>