dashnix

# Modal

#### Modal components

##### Modal title

Modal body text goes here.

#### Live demo

# Modal title

...

#### Static backdrop

# Modal title

...

#### Scrolling long content

# Modal title

This is some placeholder content to show the scrolling behavior for modals. Instead of repeating the text in the modal, we use an inline style to set a minimum height, thereby extending the length of the overall modal and demonstrating the overflow scrolling. When content becomes longer than the height of the viewport, scrolling will move the modal as needed.

#### Scrolling long content

# Modal title

This is some placeholder content to show the scrolling behavior for modals. We use repeated line breaks to demonstrate how content can exceed minimum inner height, thereby showing inner scrolling. When content becomes longer than the predefined max-height of modal, content will be cropped and scrollable within the modal.

This content should appear at the bottom after you scroll.

#### Vertically centered

# Modal title

This is a vertically centered modal.

#### Vertically centered scrollable

# Modal title

This is some placeholder content to show a vertically centered modal. We’ve added some extra copy here to show how vertically centering the modal works when combined with scrollable modals. We also use some repeated line breaks to quickly extend the height of the content, thereby triggering the scrolling. When content becomes longer than the predefined max-height of modal, content will be cropped and scrollable within the modal.

Just like that.

#### Tooltips and popovers

# Modal title

## Popover in a modal

This
triggers a popover on click.

## Tooltips in a modal

This link and that link have tooltips on hover.

#### Using the grid

# Grids in modals

.col-md-4
.col-md-4 .ms-auto
.col-md-3 .ms-auto
.col-md-2 .ms-auto
.col-md-6 .ms-auto

Level 1: .col-sm-9

Level 2: .col-8 .col-sm-6

Level 2: .col-4 .col-sm-6

#### Varying modal content

# New message @mdo

Recipient:
Message:

# New message to @fat

Recipient:
Message:

# New message @getbootstrap

Recipient:
Message:

#### Toggle between modals

# Modal 1

Show a second modal and hide this one with the button below.

# Modal 2

Hide this modal and show the first with the button below.

#### Optional sizes

# Extra large modal

...

# Large modal

...

# Small modal

...

#### Fullscreen Modal

# Full screen modal

...

# Full screen below sm

...

# Full screen below md

...

# Full screen below lg

...

# Full screen below xl

...

# Full screen below xxl

...

#### Optional sizes Info

Modals have three optional sizes, available via modifier classes to be placed on a `.modal-dialog`. These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.

Size | Class | Modal max-width
--- | --- | ---
Small | `.modal-sm` | `300px`
Default | None | `500px`
Large | `.modal-lg` | `800px`
Extra large | `.modal-xl` | `1140px`

    <div class="modal-dialog modal-xl">...</div>
                                                <div class="modal-dialog modal-lg">...</div>
                                                <div class="modal-dialog modal-sm">...</div>

#### Fullscreen Modal Info

Another override is the option to pop up a modal that covers the user viewport, available via modifier classes that are placed on a `.modal-dialog`.

Class | Availability
--- | ---
`.modal-fullscreen` | Always
`.modal-fullscreen-sm-down` | `576px`
`.modal-fullscreen-md-down` | `768px`
`.modal-fullscreen-lg-down` | `992px`
`.modal-fullscreen-xl-down` | `1200px`
`.modal-fullscreen-xxl-down` | `1400px`

    <!-- Full screen modal -->
                                                <div class="modal-dialog modal-fullscreen-sm-down">
                                                ...
                                                </div>

#### Template Settings

Light
Dark
LTR
RTL