panels-origin/web-panel/components/padron/FormField.vue
2026-08-21 16:55:01 -05:00

11 lines
349 B
Vue

<template>
<label class="form-field">
<span class="form-field-label">{{ label }}<span v-if="required" class="required-mark"> *</span></span>
<slot />
<small v-if="error" class="p-error">{{ error }}</small>
</label>
</template>
<script setup lang="ts">
defineProps<{ label: string; required?: boolean; error?: string }>();
</script>