bootstrap4-fullscreen-modal

4.5.0 • Public • Published

Bootstrap 4 fullscreen modal

An easy solution to integrate fullscreen bootstrap modals.

Install

With npm

npm install --save bootstrap4-fullscreen-modal

Then add into your html head

<link href="[YourPath]/bootstrap4-modal-fullscreen/dist/bootstrap4-modal-fullscreen.min.css" rel="stylesheet">

Example

Just add the class .modal-fullscreen to your bootstrap 4 modal.

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

<!-- Modal -->
<div class="modal fade modal-fullscreen" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                This is a fullscreen modal
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

Dependencies

Authors

  • Basile Bong

Version

1.0.5

Readme

Keywords

none

Package Sidebar

Install

npm i bootstrap4-fullscreen-modal

Weekly Downloads

9

Version

4.5.0

License

ISC

Unpacked Size

3.62 kB

Total Files

6

Last publish

Collaborators

  • basilebong