It integrates with Bootstrap 5.3 or higher, giving you a range of alert options and complete control over their appearance and behavior.
1. To get started, make sure you have the latest Bootstrap 5 framework installed in your project.
<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" /> <script src="/path/to/cdn/bootstrap.bundle.min.js"></script>
2. Load the AvalynxAlert’s JavaScript and Stylesheet.
<link href="/dist/css/avalynx-alert.css" rel="stylesheet"> <script src="/dist/js/avalynx-alert.js"></script>
3. You can also install and import the AvalynxAlert with NPM.
# NPM $ npm install avalynx-alert
import { AvalynxAlert } from 'avalynx-alert';
import 'avalynx-alert/dist/css/avalynx-alert.min.css'; 4. Create a new AvalynxAlert instance, define the alert message, and specify the notification type (primary, secondary, success, danger, warning, info, light, or dark) as follows:
new AvalynxAlert('Alert Message Here', 'success'); 5. Customize the alert message by overriding the default options listed blow:
new AvalynxAlert('Alert Message', 'success',{
// auto-dismiss after this timeout
duration: 5000,
autoClose: true,
// 'top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right'. Default is 'top-center'
position: 'top-center',
// is dismissable?
closeable: true,
// max width of the alert box
width: '400px',
// callback
onClose: null,
}), v1.0.0 (06/04/2025)
v0.0.9 (03/08/2025)
v0.0.8 (05/29/2024)
v0.0.6 (05/27/2024)
The post Advanced Alert Notification System For Bootstrap 5 – AvalynxAlert.js appeared first on CSS Script.
INDIANAPOLIS, Ind. (WOWO) — The Indianapolis Metropolitan Planning Organization (IMPO) has announced a $48 million…
INDIANAPOLIS, Ind. (WOWO) — Forecasters are tracking an increasing chance of rain at the Indianapolis…
Spoilers of course follow for The Boys Season 5, Episode 7.With Prime Video's The Boys…
FORT WAYNE, Ind. (WOWO) — After President Trump signaled support for suspending the 18-cent federal…
INDIANAPOLIS, Ind. (WOWO) — Katherine Legge will become the first woman to try and complete…
The U.S. Capitol is pictured on March 3, 2026. (Photo by Jennifer Shutt/States Newsroom)WASHINGTON —…
This website uses cookies.