+
diff --git a/resources/js/components/ui/ErrorMessage.vue b/resources/js/components/ui/ErrorMessage.vue
index 292735ad65c..c3a7035d04e 100644
--- a/resources/js/components/ui/ErrorMessage.vue
+++ b/resources/js/components/ui/ErrorMessage.vue
@@ -5,13 +5,19 @@ const slots = useSlots();
const hasDefaultSlot = !!slots.default;
const props = defineProps({
+ /** Optional id so the error can be referenced by aria-describedby */
+ id: { type: String, default: null },
/** The error message to display */
text: { type: [String, Number, Boolean, null], default: null },
});
-
-
+
-
-
+
+