diff --git a/src/runtime/components/AuthForm.vue b/src/runtime/components/AuthForm.vue index 631fb0b384..b4891f7253 100644 --- a/src/runtime/components/AuthForm.vue +++ b/src/runtime/components/AuthForm.vue @@ -200,6 +200,7 @@ defineExpose({ :name="field.name" :size="field.size" :required="field.required" + :error="field.error" > { const fields = [{ name: 'email', label: 'Email', - type: 'text' as const + type: 'text' as const, + error: 'Invalid email format' }, { name: 'password', label: 'Password', diff --git a/test/components/__snapshots__/AuthForm.spec.ts.snap b/test/components/__snapshots__/AuthForm.spec.ts.snap index 76858aa9e6..28e88d09d0 100644 --- a/test/components/__snapshots__/AuthForm.spec.ts.snap +++ b/test/components/__snapshots__/AuthForm.spec.ts.snap @@ -15,11 +15,11 @@ exports[`AuthForm > renders with as correctly 1`] = `
-
+
- +
Invalid email format
@@ -63,11 +63,11 @@ exports[`AuthForm > renders with class correctly 1`] = `
-
+
- +
Invalid email format
@@ -115,11 +115,11 @@ exports[`AuthForm > renders with description correctly 1`] = `
-
+
- +
Invalid email format
@@ -167,11 +167,11 @@ exports[`AuthForm > renders with description slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -215,11 +215,11 @@ exports[`AuthForm > renders with disabled correctly 1`] = `
-
+
- +
Invalid email format
@@ -263,11 +263,11 @@ exports[`AuthForm > renders with fields correctly 1`] = `
-
+
- +
Invalid email format
@@ -311,11 +311,11 @@ exports[`AuthForm > renders with footer slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -359,11 +359,11 @@ exports[`AuthForm > renders with header slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -411,11 +411,11 @@ exports[`AuthForm > renders with icon correctly 1`] = `
-
+
- +
Invalid email format
@@ -459,11 +459,11 @@ exports[`AuthForm > renders with leading slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -507,11 +507,11 @@ exports[`AuthForm > renders with loading correctly 1`] = `
-
+
- +
Invalid email format
@@ -560,11 +560,11 @@ exports[`AuthForm > renders with providers correctly 1`] = `
-
+
- +
Invalid email format
@@ -608,11 +608,11 @@ exports[`AuthForm > renders with providers slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -656,11 +656,11 @@ exports[`AuthForm > renders with separator correctly 1`] = `
-
+
- +
Invalid email format
@@ -704,11 +704,11 @@ exports[`AuthForm > renders with submit correctly 1`] = `
-
+
- +
Invalid email format
@@ -752,11 +752,11 @@ exports[`AuthForm > renders with submit slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -801,11 +801,11 @@ exports[`AuthForm > renders with title correctly 1`] = `
-
+
- +
Invalid email format
@@ -853,11 +853,11 @@ exports[`AuthForm > renders with title slot correctly 1`] = `
-
+
- +
Invalid email format
@@ -901,11 +901,11 @@ exports[`AuthForm > renders with ui correctly 1`] = `
-
+
- +
Invalid email format
@@ -949,11 +949,11 @@ exports[`AuthForm > renders with validation slot correctly 1`] = `
-
+
- +
Invalid email format