Error Message

Displays a clear message to indicate errors or issues. Helps users understand problems and take corrective action quickly.

String Message

Error Object

API Reference

Show types
typescript
export interface ErrorMessageProps {
  /** The error message to display. Can be a string or an Error object */
  message?: string | Error
}
Prop Default Type
message
string | Error

The error message to display. Can be a string or an Error object