ClickableCallbacktype
(event: MouseEvent<HTMLButtonElement>) => ReactNode | void | PromiseLike<ReactNode | void>
| Return | |
|---|---|
unknown | A ReactNode (shown as a success notice), nothing, or a promise of either. |
| Type | |
|---|---|
MouseEvent | |
HTMLButtonElement | |
ReactNode | |
PromiseLike |
Handler for a clickable onClick event.
- Returned value (if defined) is notified to the user using
notifySuccess() - Thrown value is notified to the user using
notifyError()