Snackbars
This UI Kit is dedicated to Bootstrap 4 & Material Design.
Discover the latest Kit for Bootstrap 5 & Material Design 2.0! DOWNLOAD BOOTSTRAP 5 FREE KIT
Discover the latest Kit for Bootstrap 5 & Material Design 2.0! DOWNLOAD BOOTSTRAP 5 FREE KIT
Get Material KIT PRO 20% OFF
Use code
Use code
5V9QGF
on the checkout to get the discount.
GET MATERIAL KIT PRO
Snackbars and toasts can be created using the SnackbarJS plugin developed by us.
Contents
Include in the page
In order to make snackbars work, make sure to include snackbar.min.js
before bootstrap-material-design.min.js
.
Heads up! You don’t need to include SnackbarJS CSS, it’s already bundled in Material Design for Bootstrap.
Examples
Click on the buttons below to spawn snackbars and toasts:
Snackbar
<button type="button" class="btn btn-secondary" data-toggle="snackbar" data-content="Free fried chicken here! <a href='https://example.org' class='btn btn-info'>Check it out</a>" data-html-allowed="true" data-timeout="0">
Snackbar
</button>
Toast
<button type="button" class="btn btn-secondary" data-toggle="snackbar" data-style="toast" data-content="Fried chicken out of stock.">
Toast
</button>
Usage
The complete documentation of SnackbarJS is available visiting its official GitHub repository.