You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Bump @lambdacurry/forms package version to 0.18.0
- Updated dependencies from npm version command
- Includes FormError component implementation and documentation updates
- Use descriptive keys for specific categories (`payment`, `shipping`, `auth`)
1207
+
- Be consistent across your application
1208
+
1209
+
### 2. Error Message Guidelines
1210
+
- **Be specific**: "Server temporarily unavailable" vs "Error occurred"
1211
+
- **Be actionable**: "Please try again in a few minutes" vs "Failed"
1212
+
- **Be user-friendly**: Avoid technical jargon and error codes
1213
+
1214
+
### 3. Placement Strategy
1215
+
- **Top placement**: For critical errors that should be seen immediately
1216
+
- **Inline placement**: For contextual errors related to specific sections
1217
+
- **Bottom placement**: For summary or less critical errors
1218
+
1219
+
### 4. Component Integration
1220
+
- FormError works seamlessly with all existing form components
1221
+
- Maintains the same component override pattern as other form components
1222
+
- Automatically integrates with form context and validation state
1223
+
1074
1224
### Important Reminders:
1075
1225
- 🔥 **Always import from `@lambdacurry/forms`** for form-aware components
1076
1226
- 🔥 **Use `createFormData()` for custom submissions** to ensure proper formatting
1077
1227
- 🔥 **All components are accessible by default** - no additional ARIA setup needed
1078
1228
- 🔥 **Form context is automatic** - no need to pass `control` props manually
1229
+
- 🔥 **FormError provides form-level error handling** - use it for server errors, auth failures, and general business logic errors
1230
+
1231
+
This comprehensive guide provides everything needed to implement forms with both field-level and form-level error handling using the LambdaCurry Forms library!
0 commit comments