The FAB represents the most important action on a screen. It puts key actions within reach.
<button type="button" class="btn btn-fab btn-primary">
<i class="bi bi-heart-fill"></i>
</button>
Add .elevated-[1 to 10]
to create Elevated buttons.
<button type="button" class="btn btn-fab btn-tertiary elevated-1">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab btn-tertiary elevated-10">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab btn-primary" disabled>
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab btn-primary">
<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-danger">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab leaf-fab-inverted btn-danger">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-fab mini-fab btn-success">
<i class="bi bi-heart-fill"></i>
</button>
<button type="button" class="btn btn-success btn-lg rounded-pill">
<i class="bi bi-heart-fill"></i> Like
</button>