Close button

Close button - Bootstrap 5 & Material Design 2.0

A generic close button for dismissing content like modals, toasts and alerts.


Basic example


          <button type="button" class="btn-close" aria-label="Close"></button>
        

Disabled

Add disabled attribute to prevent triggering hover and active states.


          <button type="button" class="btn-close" disabled aria-label="Close"></button>
        

White variant

Add btn-close-white class to change color on dark backround.


          <button type="button" class="btn-close btn-close-white" aria-label="Close"></button>