bootstrapbeginnermit
Bootstrap Alerts
Dismissible alert variants.
5.9k3.6k1.3k577
About this module
All Bootstrap alert variants with dismiss buttons and icons, in a tidy stack.
#bootstrap#alerts#notifications
Source code
Installation
- 1
Install Bootstrap
Install the package or add the CDN link.
npm install bootstrap - 2
Load the CSS
Import `bootstrap/dist/css/bootstrap.min.css` (and `bootstrap.bundle.min.js` for JS components).
- 3
Paste the markup
Copy the markup into your page.
Usage
- 1
Copy the markup
Paste the HTML below into your page or template.
- 2
Check the JS bundle
Include the Bootstrap JS bundle for the interactive behavior.