Skip to content

Button Library · Interactive

Floating Action

Round, raised, one key action.

To pin it to the corner, add position: fixed; right: 24px; bottom: 24px.

States

  • Default

  • Hover

  • Active

  • Focus

Code

fab.html

<button class="btn-fab" type="button" aria-label="Add">
  <svg class="btn-fab__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    <path d="M12 5v14"></path>
    <path d="M5 12h14"></path>
  </svg>
</button>

More in Interactive