Full screen modal

Bootstrap 5 Full screen modal component

Responsive Full screen modal built with Bootstrap 5. An example of how to easy way make a full screen modal.


Basic example

If you want your modal to appear in full screen, just add the .modal-fullscreen class next to .modal-dialog.

        
            
      <!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-mdb-toggle="modal" data-mdb-target="#exampleModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal top fade" 
     id="exampleModal" 
     tabindex="-1"
     aria-labelledby="exampleModalLabel" 
     aria-hidden="true" 
     data-mdb-backdrop="true" 
     data-mdb-keyboard="true">
  <div class="modal-dialog modal-fullscreen">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
        <button type="button" class="btn-close" data-mdb-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">...</div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-mdb-dismiss="modal">
          Close
        </button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>