notifyError()function

notifyError(message: ReactNode, el?: EventTarget): void
ParamType
messageReactNode
The error message to show, as a React node. required
elEventTarget
Element to dispatch the event on (defaults to window).

Notify the user with an error message by dispatching a notice event with "error" status.

Examples

notifyError("Could not save your changes");