Snackbars
This UI Kit is dedicated to Bootstrap 4 & Material Design.
Discover the latest Kit for Bootstrap 5 & Material Design 2.0! GET BOOTSTRAP 5 KIT FOR FREE
Discover the latest Kit for Bootstrap 5 & Material Design 2.0! GET BOOTSTRAP 5 KIT FOR FREE
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.