Close button

Angular Bootstrap 5 Close button

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


Basic example

Provide an option to dismiss or close a component with .btn-close.

        
            
            <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>