⚡
React Notification
  • Introduction
  • Guides
    • Events
    • Props
    • Custom styles
  • Introduction
Powered by GitBook
On this page
  • For single notification component
  • For notification stack component
  1. Guides

Events

For single notification component

Event

Description

onClick

Callback function to run when the action is clicked

onDismiss

Callback function to run when dismissAfter timer runs out

onClick is called with parameter deactivate, which is a function and can be called to set the notification to inactive. Used to activate notification exit animation on click.

For notification stack component

Event

Description

Arguments

onDismiss

Callback function to run when dismissAfter timer runs out for a notification

The object for the notification currently being dismissed

PreviousGuidesNextProps

Last updated 6 years ago