Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A React and reactstrap notification alert component for displaying dismissible, auto-closing alerts in six screen positions.
React Notification Alert is a lightweight, MIT-licensed React component for rendering dismissible toast notifications, built on reactstrap components and React.
React Notification Alert is a reusable React component that displays notification alerts in six screen positions, using reactstrap's alert styling and Bootstrap 4. It accepts a JavaScript options object with properties for placement, message, type, icon, auto-dismiss seconds, close button visibility, and z-index, and renders the corresponding notification to the page. The component is published to npm as react-notification-alert and requires reactstrap, bootstrap, and jquery as peer dependencies.
React developers building dashboard or admin interfaces with Bootstrap 4 who need inline notifications without pulling in a full notification library. The component is designed for projects already using reactstrap, and the example in the README is based on Now UI Dashboard React. Also for developers who want a simple, dependency-light alternative to heavier toast libraries.
Install the package and its dependencies (reactstrap, bootstrap, jquery). In your component, render a NotificationAlert element with a ref callback and optional zIndex and onClick props. Then call the notificationAlert method on that ref with an options object to display a notification.
Free and open source under the MIT license.
Yes, the component is released under the MIT license, so it is free to use in personal and commercial projects.
It requires reactstrap, bootstrap, and jquery. These must be installed alongside the component for it to work properly.
Set the place option in the options object to one of tl, tc, tr, bl, bc, or br for the screen corner or edge where the notification should render.
Yes, set autoDismiss to a value of zero or lower. The notification will then remain until the user closes it or a new action triggers something.
Pass the zIndex prop to the NotificationAlert element itself. If you do not specify it, the default value of 9999 is used.
