Error Handling

Error handling is a UI feedback pattern for communicating problems and recovery paths. Messages should be specific, helpful, and concise.

Choose the right pattern

Pattern Scope Use when
Inline validation Single field Format or required errors tied to one input
Alert banner Form or page Submit blocked; multiple errors or system failure
Toast / snackbar Global Success or low-priority notice; no field to anchor to
Badge Control adornment Ongoing count or status — not a one-time message

Feedback types

Type When
Inline validation On blur or while typing; field-level message below control
Alert banner Form-level or action failure; blocked operations
Toast / snackbar Transient confirmation or low-priority notice
Loading Spinner or skeleton while async work runs
Success Completed actions with optional next steps

Inline validation

Enter a valid email address.

Alert variants

Image exported successfully to C:\Exports\sample.tif
Large file size may slow export. Consider reducing resolution.
Analysis will continue in the background. You can close this panel.

Toast and loading

File saved
Processing…

Message guidelines

When to show errors