notifySuccess()function

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

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

Examples

notifySuccess("Profile updated");