MDBootstrap modals generator

        
            
                <!-- Button trigger modal -->
                <button type="button" class="btn btn-primary" data-mdb-modal-init 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  ">
                    <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>
              
        
    

How to use it?

1. You need MDB Pro package

2. Create the modal you like

3. Copy the generated code and paste it into the MDB project

Central modal

Side modal

Frame modal


Backdrop


Keybord


Animation

Vertically centered

Docs