Snackbar
Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn’t interrupt the user experience, and they don’t require user input to disappear.
Simple Snackbar
Demo of simple snackbar is show below.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="snackbar p-sm">
<div class="snackbar-message">
<p>Can't send this photo. Retry in 5 seconds.</p>
</div>
<div class="snackbar-actions">
<button class="btn">RETRY</button>
<button class="btn">
<i class="fas fa-times" title="close"></i>
</button>
</div>
</div>
Stacked Snackbar
Stacked snackbar can be created by adding
.stacked
class to snackbar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="snackbar p-sm">
<div class="snackbar-message">
<p>Can't send this photo. Retry in 5 seconds.</p>
</div>
<div class="snackbar-actions">
<button class="btn">RETRY</button>
<button class="btn">
<i class="fas fa-times" title="close"></i>
</button>
</div>
</div>