The FAB represents the most important action on a screen. It puts key actions within reach.
<button type="button" class="btn btn-fab btn-purple">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab btn-purple" disabled>
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab btn-purple">
<i class="bi bi-heart-fill"></i>
<span class="ripple-surface"></span>
</button>
// Initialize Ripple
const rippleSurface = Array.prototype.slice.call(document.querySelectorAll('.ripple-surface'))
rippleSurface.map(s => {
return new mdc.ripple.MDCRipple(s)
})
<button type="button" class="btn btn-fab leaf-fab btn-purple">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab leaf-fab-inverted btn-purple">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab mini-fab btn-purple">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-purple btn-lg rounded-pill">
<i class="bi bi-heart-fill"></i> Like
</button>