Skip to content

Commit 77c81c2

Browse files
Simplify FormError placement comments
Removed redundant comments about FormError placement and kept just one clear comment in the comprehensive example.
1 parent 5ebbc14 commit 77c81c2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

llms.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ The `FormError` component provides standardized form-level error handling, compl
2222
import { FormError } from '@lambdacurry/forms';
2323

2424
// Basic usage - looks for errors._form by default
25-
// Typically placed below inputs and above submit button
2625
<FormError />
2726

2827
// Custom error key
@@ -153,7 +152,6 @@ const LoginForm = () => {
153152
disabled={isSubmitting}
154153
/>
155154

156-
{/* Form-level error display - typically placed below inputs and above submit button */}
157155
<FormError className="mb-4" />
158156

159157
<Button type="submit" disabled={isSubmitting} className="w-full">
@@ -994,7 +992,7 @@ const ComprehensiveForm = () => {
994992

995993
{/* Submit Button & Status */}
996994
<div className="pt-6">
997-
{/* Form-level error display - below inputs, above submit button */}
995+
{/* Form-level errors appear below inputs, above submit button */}
998996
<FormError className="mb-4" />
999997

1000998
<Button

0 commit comments

Comments
 (0)