# Bootstrap 5 Modals

Use Bootstrap's JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.

##### Modal Sizes

Responsive

Modals have three optional sizes, available via modifier classes to be placed on a `.modal-dialog`.

##### Modal Variations

Interactive

Various modal types with different behaviors and styles.

##### Form Modal

Interactive Form

Modals can contain forms for user input and data collection.

##### Confirmation Modal

Action Required

Use modals for important confirmations and destructive actions.

##### Small Modal

This is a small modal. Perfect for simple confirmations or brief messages.

Small modals work great on mobile devices.

##### Default Modal

###### Features of this modal:

- Standard size (500px wide)
- Responsive design
- Smooth animations
- Keyboard navigation support

This is the most commonly used modal size, suitable for most content types.

##### Large Modal

###### Modal Information

- Size: Large (800px)
- Class: `.modal-lg`
- Best for: Complex content

###### Usage Guidelines

Large modals are perfect for:

- Detailed forms
- Data tables
- Image galleries

- Rich content
- Multi-step processes
- Dashboard widgets

##### Extra Large Modal

###### Maximum Content Space

Extra large modals provide maximum space for complex layouts and rich content. This size is perfect for:

###### Data Visualization

Charts, graphs, and complex data displays.

###### Multi-column Layouts

Side-by-side content and comparison views.

###### Rich Media

Videos, image galleries, and interactive content.

###### Advanced Forms

Complex forms with multiple sections.

###### Technical Details

###### Size

1140px wide

###### Class

`.modal-xl`

###### Responsive

Adapts to screen size

##### Scrollable Modal

###### Long Content Example

This modal demonstrates scrollable content. When content exceeds the viewport height, the modal body becomes scrollable while keeping the header and footer in place.

##

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

##

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

##

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

Additional content to demonstrate scrolling behavior. You can add as much content as needed, and the modal will handle scrolling appropriately.

The scrollable modal keeps the header and footer visible while allowing the body content to scroll.

##### Vertically Centered

###### Perfect Alignment

This modal is vertically centered in the viewport, providing a balanced and professional appearance regardless of content height.

Centered
Balanced
Professional

##### Static Backdrop Modal

Important! This modal has a static backdrop.

This modal cannot be closed by clicking outside of it or pressing the Escape key. You must use the close button or cancel button to dismiss it.

This is useful for critical actions that require user attention and confirmation.

##### Fullscreen Modal

This is a fullscreen modal that takes up the entire viewport.

###### Feature 1

Fullscreen modals are perfect for immersive experiences and complex interfaces.

###### Feature 2

They provide maximum space for content and eliminate distractions.

###### Feature 3

Great for media viewers, complex forms, and data-heavy interfaces.

##### Add New User

First Name
Last Name
Email
Role
Bio
Send welcome email

##### Delete Account?

This action cannot be undone. This will permanently delete your account and remove all your data from our servers.

Warning: All your projects, files, and settings will be lost forever.