Modal
Modals put a focused dialog on top of the page for confirmations, forms, previews and long reads. Each example below pairs a trigger with its dialog: sizes, centering, scrolling, static backdrops, fullscreen variants and ready-made dialogs you can drop into Brand name 8.
1Basic modal
A trigger button and a dialog with header, body and footer. Close it with the X, the footer button, Esc or a click on the backdrop.
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal-996">Open modal</button>
<div class="modal fade" id="modal-996" tabindex="-1" aria-labelledby="modal-996-label" aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-996-label">Ship faster with less busywork</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="mb-0">The new audit trail guides your work organised from the very first day.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>2Static backdrop
With a static backdrop the dialog stays open when the user clicks outside it or presses Esc - use it when an explicit choice is required.
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#modal-997"><i class="bi bi-lock" aria-hidden="true"></i> Static backdrop</button>
<div class="modal fade" id="modal-997" tabindex="-1" aria-labelledby="modal-997-label" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog ">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-997-label">Finish this step first</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>This calm release gives you focused on what matters at a fair price.</p>
<p class="small text-body-secondary mb-0">Clicking the backdrop will not close this dialog.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Not now</button>
<button type="button" class="btn btn-primary">I understand</button>
</div>
</div>
</div>
</div>3Vertically centered
Add <code>.modal-dialog-centered</code> to place the dialog in the middle of the viewport.
<button type="button" class="btn btn-secondary" data-bs-toggle="modal" data-bs-target="#modal-998">Centered dialog</button>
<div class="modal fade" id="modal-998" tabindex="-1" aria-labelledby="modal-998-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-998-label">Right in the middle</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="mb-0">The new 99.99% uptime gives results you can measure with friendly support.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Got it</button>
</div>
</div>
</div>
</div>4Scrollable body
<code>.modal-dialog-scrollable</code> keeps header and footer visible and scrolls only the body - ideal for terms or long notes.
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal-999"><i class="bi bi-file-earmark-text" aria-hidden="true"></i> Read the terms</button>
<div class="modal fade" id="modal-999" tabindex="-1" aria-labelledby="modal-999-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-999-label">Terms of service</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<h3 class="h6">1. 4 lessons from our plan</h3>
<p>Our smart reporting turns your work organised for teams of every size. A smart experience shows decisions quicker and clearer without the usual hassle. The new 99.99% uptime gives your work organised wherever you are. The new real-time collaboration lets projects moving forward at a fair price.</p>
<h3 class="h6">2. How we rebuilt our project</h3>
<p>Our api integrations lets new ideas to life wherever you are. A smart update guides the whole team on the same page at a fair price. A smart team lets every detail in view all year round. The new open api keeps new ideas to life without extra tools.</p>
<h3 class="h6">3. What's new in marketing</h3>
<p>Our secure file sharing gives time back in your day without extra tools. This flexible launch keeps new ideas to life on any device. A bright community keeps your work organised in just a few clicks. A friendly experience brings your work organised with friendly support.</p>
<h3 class="h6">4. The smart project checklist</h3>
<p>A flexible team shows your work organised wherever you are. Our single sign-on lets data easy to understand all year round. Our api integrations brings the whole team on the same page on any device.</p>
<h3 class="h6">5. 7 lessons from our project</h3>
<p>Our smart reporting guides results you can measure for teams of every size. A simple experience guides decisions quicker and clearer all year round. A calm plan brings your work organised on any device.</p>
<h3 class="h6">6. A guide to smart reporting</h3>
<p>The new dark mode brings projects moving forward at a fair price. This powerful workflow guides time back in your day at a fair price. This reliable story shows new ideas to life for teams of every size.</p>
<h3 class="h6">7. Team notes for customers</h3>
<p>The new role-based access turns every detail in view on any device. The new dark mode helps results you can measure in just a few clicks. This simple project gives projects moving forward without extra tools.</p>
<h3 class="h6">8. A guide to workflow automation</h3>
<p>Our secure file sharing helps complex tasks into simple steps on any device. A fast experience helps projects moving forward without the usual hassle. The new 99.99% uptime keeps your work organised in just a few clicks.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Decline</button>
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Accept</button>
</div>
</div>
</div>
</div>5Small modal
<code>.modal-sm</code> for quick questions that need little space.
<a class="btn btn-link" data-bs-toggle="modal" href="#modal-1000" role="button">Open a small modal from a link</a>
<div class="modal fade" id="modal-1000" tabindex="-1" aria-labelledby="modal-1000-label" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1000-label">Quick question</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="mb-0">Keep the project settings for next time?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-dismiss="modal">No</button>
<button type="button" class="btn btn-sm btn-primary" data-bs-dismiss="modal">Yes</button>
</div>
</div>
</div>
</div>6Large modal with a table
<code>.modal-lg</code> gives tables and multi-column content room to breathe.
<button type="button" class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#modal-1001"><i class="bi bi-table" aria-hidden="true"></i> View price list</button>
<div class="modal fade" id="modal-1001" tabindex="-1" aria-labelledby="modal-1001-label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1001-label">Price list</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="table-responsive">
<table class="table table-striped align-middle mb-0">
<thead>
<tr>
<th scope="col">Item</th>
<th scope="col">Category</th>
<th scope="col" class="text-end">Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Business plan</td>
<td>Engineering</td>
<td class="text-end">$239.00</td>
</tr>
<tr>
<td>Team plan</td>
<td>Support</td>
<td class="text-end">$294.50</td>
</tr>
<tr>
<td>Automation pack</td>
<td>Sales</td>
<td class="text-end">$402.00</td>
</tr>
<tr>
<td>Analytics add-on</td>
<td>Support</td>
<td class="text-end">$277.00</td>
</tr>
<tr>
<td>Enterprise suite</td>
<td>Marketing</td>
<td class="text-end">$442.50</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>7Extra large modal
<code>.modal-xl</code> fits a full card grid - for galleries, comparisons or dashboards in a dialog.
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal-1002">Browse services</button>
<div class="modal fade" id="modal-1002" tabindex="-1" aria-labelledby="modal-1002-label" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1002-label">Our services</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row g-3">
<div class="col-md-4">
<div class="card h-100">
<img src="../assets/img/photo-3.svg" class="card-img-top" alt="Workflow automation">
<div class="card-body">
<h3 class="h6 card-title">Smart reporting</h3>
<p class="card-text small">Our api integrations gives decisions quicker and clearer all year round.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100">
<img src="../assets/img/photo-4.svg" class="card-img-top" alt="Single sign-on">
<div class="card-body">
<h3 class="h6 card-title">Smart reporting</h3>
<p class="card-text small">The new role-based access brings customers coming back all year round.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100">
<img src="../assets/img/photo-5.svg" class="card-img-top" alt="API integrations">
<div class="card-body">
<h3 class="h6 card-title">Smart reporting</h3>
<p class="card-text small">The new dark mode helps new ideas to life with friendly support.</p>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>8Fullscreen modal
<code>.modal-fullscreen</code> covers the whole viewport - good for editors or immersive previews.
<button type="button" class="btn btn-dark" data-bs-toggle="modal" data-bs-target="#modal-1003"><i class="bi bi-fullscreen" aria-hidden="true"></i> Fullscreen</button>
<div class="modal fade" id="modal-1003" tabindex="-1" aria-labelledby="modal-1003-label" aria-hidden="true">
<div class="modal-dialog modal-fullscreen">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1003-label">Focus mode</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="container py-4" style="max-width:720px">
<h3 class="h4">Plan, build and launch in one place</h3>
<p class="lead">A reliable launch gives every detail in view with friendly support.</p>
<p>A clear goal shows results you can measure on any device. A focused launch makes you focused on what matters all year round. This powerful workflow gives you focused on what matters with friendly support.</p>
<p>A bright journey guides new ideas to life without extra tools. A honest update guides decisions quicker and clearer for teams of every size. This clear routine keeps time back in your day without extra tools. A reliable team shows data easy to understand for teams of every size.</p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Exit focus mode</button>
</div>
</div>
</div>
</div>9Fullscreen below a breakpoint
<code>.modal-fullscreen-md-down</code> is a normal dialog on desktops and a full screen sheet on phones.
<button type="button" class="btn btn-outline-dark" data-bs-toggle="modal" data-bs-target="#modal-1004"><i class="bi bi-phone" aria-hidden="true"></i> Responsive fullscreen</button>
<div class="modal fade" id="modal-1004" tabindex="-1" aria-labelledby="modal-1004-label" aria-hidden="true">
<div class="modal-dialog modal-fullscreen-md-down">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1004-label">Adapts to the screen</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>The new open api keeps customers coming back all year round.</p>
<p class="mb-0">Resize the window below 768 px to see the full screen version.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>10Sign-in form
A compact login form inside a centered dialog, with labels, a remember-me checkbox and a full width submit button.
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal-1005"><i class="bi bi-box-arrow-in-right" aria-hidden="true"></i> Sign in</button>
<div class="modal fade" id="modal-1005" tabindex="-1" aria-labelledby="modal-1005-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header border-0 pb-0">
<h2 class="modal-title fs-5" id="modal-1005-label">Welcome back</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="login-email-1006" class="form-label">Email address</label>
<input type="email" class="form-control" id="login-email-1006" placeholder="you@example.com" autocomplete="email">
</div>
<div class="mb-3">
<label for="login-pass-1007" class="form-label">Password</label>
<input type="password" class="form-control" id="login-pass-1007" autocomplete="current-password">
</div>
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="login-remember-1008">
<label class="form-check-label" for="login-remember-1008">Remember me</label>
</div>
<a href="#" class="small">Forgot password?</a>
</div>
<button type="submit" class="btn btn-primary w-100">Sign in</button>
</form>
</div>
<div class="modal-footer justify-content-center border-0 pt-0">
<span class="small text-body-secondary">New to Brand name 8? <a href="#">Create an account</a></span>
</div>
</div>
</div>
</div>11Sign-up form with validation
A <code>.needs-validation</code> form in a modal: required fields show feedback when the user submits.
<button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#modal-1009"><i class="bi bi-person-plus" aria-hidden="true"></i> Create account</button>
<div class="modal fade" id="modal-1009" tabindex="-1" aria-labelledby="modal-1009-label" aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1009-label">Create your account</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form class="needs-validation" novalidate>
<div class="mb-3">
<label for="su-name-1010" class="form-label">Full name</label>
<input type="text" class="form-control" id="su-name-1010" required>
<div class="invalid-feedback">
Please enter your name.
</div>
</div>
<div class="mb-3">
<label for="su-email-1011" class="form-label">Email</label>
<input type="email" class="form-control" id="su-email-1011" required>
<div class="invalid-feedback">
Please enter a valid email.
</div>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="su-terms-1012" required>
<label class="form-check-label" for="su-terms-1012">I agree to the terms</label>
<div class="invalid-feedback">
You must agree before continuing.
</div>
</div>
<button class="btn btn-success w-100" type="submit">Create account</button>
</form>
</div>
</div>
</div>
</div>12Delete confirmation
A small centered danger dialog with an icon, a clear question and two unambiguous buttons.
<button type="button" class="btn btn-outline-danger" data-bs-toggle="modal" data-bs-target="#modal-1013"><i class="bi bi-trash" aria-hidden="true"></i> Delete item</button>
<div class="modal fade" id="modal-1013" tabindex="-1" aria-labelledby="modal-1013-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-sm">
<div class="modal-content text-center">
<div class="modal-body p-4">
<div class="display-6 text-danger mb-2">
<i class="bi bi-exclamation-octagon" aria-hidden="true"></i>
</div>
<h2 class="h5" id="modal-1013-label">Delete Starter plan?</h2>
<p class="small text-body-secondary mb-0">This removes it for everyone and cannot be undone.</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<button type="button" class="btn btn-link link-secondary text-decoration-none col-6 m-0 rounded-0 border-end" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-link link-danger fw-semibold text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">Delete</button>
</div>
</div>
</div>
</div>13Image lightbox
A thumbnail opens a large borderless modal with the full image and a caption.
<button type="button" class="btn p-0 border-0" data-bs-toggle="modal" data-bs-target="#modal-1014" aria-label="Open image"><img src="../assets/img/photo-12.svg" class="img-thumbnail" style="max-width:220px" alt="Secure file sharing"></button>
<div class="modal fade" id="modal-1014" tabindex="-1" aria-label="Secure file sharing" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content bg-dark text-white border-0">
<div class="modal-body p-0 position-relative">
<button type="button" class="btn-close btn-close-white position-absolute top-0 end-0 m-3" data-bs-dismiss="modal" aria-label="Close"></button>
<img src="../assets/img/photo-12.svg" class="img-fluid w-100 rounded-top" alt="Secure file sharing">
</div>
<div class="p-3 small">
<i class="bi bi-camera" aria-hidden="true"></i> This secure team connects you focused on what matters at a fair price.
</div>
</div>
</div>
</div>14Tabs inside a modal
Group related settings with tabs so the dialog stays short.
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#modal-1015"><i class="bi bi-gear" aria-hidden="true"></i> Preferences</button>
<div class="modal fade" id="modal-1015" tabindex="-1" aria-labelledby="modal-1015-label" aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1015-label">Preferences</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<ul class="nav nav-tabs mb-3" role="tablist">
<li class="nav-item" role="presentation"><button class="nav-link active" id="mt-1016-tab" data-bs-toggle="tab" data-bs-target="#mt-1016" type="button" role="tab" aria-controls="mt-1016" aria-selected="true">General</button></li>
<li class="nav-item" role="presentation"><button class="nav-link" id="mt-1017-tab" data-bs-toggle="tab" data-bs-target="#mt-1017" type="button" role="tab" aria-controls="mt-1017" aria-selected="false">Alerts</button></li>
<li class="nav-item" role="presentation"><button class="nav-link" id="mt-1018-tab" data-bs-toggle="tab" data-bs-target="#mt-1018" type="button" role="tab" aria-controls="mt-1018" aria-selected="false">Privacy</button></li>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="mt-1016" role="tabpanel" aria-labelledby="mt-1016-tab" tabindex="0">
<p class="mb-0">The new open api keeps data easy to understand all year round.</p>
</div>
<div class="tab-pane fade" id="mt-1017" role="tabpanel" aria-labelledby="mt-1017-tab" tabindex="0">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="mt-1016-sw" checked>
<label class="form-check-label" for="mt-1016-sw">Email me about updates</label>
</div>
</div>
<div class="tab-pane fade" id="mt-1018" role="tabpanel" aria-labelledby="mt-1018-tab" tabindex="0">
<p class="mb-0">This powerful release helps the whole team on the same page without the usual hassle.</p>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save</button>
</div>
</div>
</div>
</div>15Toggle between modals
A button inside the first dialog opens the second one - handy for multi-step flows without stacking dialogs.
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal-1019">Start step 1</button>
<div class="modal fade" id="modal-1019" tabindex="-1" aria-labelledby="modal-1019-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1019-label">Step 1 of 2</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="mb-0">This friendly project gives new ideas to life all year round.</p>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" data-bs-target="#modal-1020" data-bs-toggle="modal">Continue <i class="bi bi-arrow-right" aria-hidden="true"></i></button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="modal-1020" tabindex="-1" aria-labelledby="modal-1020-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1020-label">Step 2 of 2</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="mb-0">This secure workflow keeps complex tasks into simple steps all year round.</p>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" type="button" data-bs-target="#modal-1019" data-bs-toggle="modal"><i class="bi bi-arrow-left" aria-hidden="true"></i> Back</button>
<button class="btn btn-success" type="button" data-bs-dismiss="modal">Finish</button>
</div>
</div>
</div>
</div>16Newsletter sign-up
A header-less promotional dialog with a big icon and an inline email form.
<button type="button" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#modal-1021"><i class="bi bi-envelope-paper" aria-hidden="true"></i> Subscribe</button>
<div class="modal fade" id="modal-1021" tabindex="-1" aria-labelledby="modal-1021-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content text-center p-3">
<div class="text-end">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body pt-0">
<div class="display-5 text-primary mb-3">
<i class="bi bi-envelope-heart" aria-hidden="true"></i>
</div>
<h2 class="h4" id="modal-1021-label">Get the Brand name 8 digest</h2>
<p class="text-body-secondary">This friendly process gives every detail in view with friendly support.</p>
<form class="d-flex flex-column flex-sm-row gap-2">
<label for="nl-email-1022" class="visually-hidden">Email address</label>
<input type="email" class="form-control" id="nl-email-1022" placeholder="you@example.com">
<button class="btn btn-primary text-nowrap" type="submit">Join now</button>
</form>
<p class="small text-body-secondary mt-3 mb-0">One email a month. Unsubscribe any time.</p>
</div>
</div>
</div>
</div>17Product quick view
A two-column dialog: image on the left, price, rating and add-to-cart on the right; stacks on phones.
<button type="button" class="btn btn-outline-dark" data-bs-toggle="modal" data-bs-target="#modal-1023"><i class="bi bi-eye" aria-hidden="true"></i> Quick view</button>
<div class="modal fade" id="modal-1023" tabindex="-1" aria-labelledby="modal-1023-label" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1023-label">Automation pack</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row g-4 align-items-center">
<div class="col-md-6">
<img src="../assets/img/product-7.svg" class="img-fluid rounded" alt="Automation pack">
</div>
<div class="col-md-6">
<span class="badge text-bg-secondary mb-2">Sales</span>
<p class="fs-3 fw-bold mb-1">$162.00</p>
<p class="text-warning mb-2"><i class="bi bi-star-fill" aria-hidden="true"></i><i class="bi bi-star-fill" aria-hidden="true"></i><i class="bi bi-star-fill" aria-hidden="true"></i><i class="bi bi-star-fill" aria-hidden="true"></i><i class="bi bi-star-half" aria-hidden="true"></i> <span class="text-body-secondary small">(300 reviews)</span></p>
<p class="text-body-secondary">Our single sign-on brings decisions quicker and clearer without extra tools.</p>
<div class="d-flex gap-2">
<label for="qv-qty-1024" class="visually-hidden">Quantity</label>
<input type="number" class="form-control" id="qv-qty-1024" value="1" min="1" style="max-width:5rem">
<button type="button" class="btn btn-primary flex-grow-1"><i class="bi bi-cart-plus" aria-hidden="true"></i> Add to cart</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>18Grid inside the body
Use <code>.container-fluid</code> and rows in the modal body to lay out content in columns.
<button type="button" class="btn btn-info" data-bs-toggle="modal" data-bs-target="#modal-1025"><i class="bi bi-grid" aria-hidden="true"></i> Grid layout</button>
<div class="modal fade" id="modal-1025" tabindex="-1" aria-labelledby="modal-1025-label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1025-label">Plan overview</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row g-3">
<div class="col-md-4">
<div class="p-3 bg-body-tertiary rounded h-100">
<div class="fs-4 text-primary">
<i class="bi bi-lightning-charge" aria-hidden="true"></i>
</div>
<h3 class="h6">Dark mode</h3>
<p class="small mb-0">This clear goal brings every detail in view wherever you are.</p>
</div>
</div>
<div class="col-md-4">
<div class="p-3 bg-body-tertiary rounded h-100">
<div class="fs-4 text-primary">
<i class="bi bi-shield-check" aria-hidden="true"></i>
</div>
<h3 class="h6">Real-time collaboration</h3>
<p class="small mb-0">Our smart reporting gives new ideas to life at a fair price.</p>
</div>
</div>
<div class="col-md-4">
<div class="p-3 bg-body-tertiary rounded h-100">
<div class="fs-4 text-primary">
<i class="bi bi-graph-up" aria-hidden="true"></i>
</div>
<h3 class="h6">Open API</h3>
<p class="small mb-0">The new role-based access keeps complex tasks into simple steps in just a few clicks.</p>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>19Success dialog
Confirm a completed action with a large check mark, a summary and a single next step.
<button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#modal-1026"><i class="bi bi-credit-card" aria-hidden="true"></i> Pay $61.40</button>
<div class="modal fade" id="modal-1026" tabindex="-1" aria-labelledby="modal-1026-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content text-center">
<div class="modal-body p-5">
<div class="display-3 text-success mb-3">
<i class="bi bi-check-circle-fill" aria-hidden="true"></i>
</div>
<h2 class="h4" id="modal-1026-label">Payment received</h2>
<p class="text-body-secondary mb-1">Order #INV-5143 is confirmed.</p>
<p class="small text-body-secondary">A receipt is on its way to your inbox.</p>
<button type="button" class="btn btn-success px-4" data-bs-dismiss="modal">Continue</button>
</div>
</div>
</div>
</div>20Share dialog
Social share buttons plus a read-only link with a copy button.
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#modal-1027"><i class="bi bi-share" aria-hidden="true"></i> Share</button>
<div class="modal fade" id="modal-1027" tabindex="-1" aria-labelledby="modal-1027-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title fs-5" id="modal-1027-label">Share this page</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="d-flex justify-content-around mb-4 text-center">
<a href="#" class="link-body-emphasis text-decoration-none"><span class="d-block fs-3"><i class="bi bi-envelope" aria-hidden="true"></i></span><small>Email</small></a><a href="#" class="link-body-emphasis text-decoration-none"><span class="d-block fs-3"><i class="bi bi-chat-dots" aria-hidden="true"></i></span><small>Message</small></a><a href="#" class="link-body-emphasis text-decoration-none"><span class="d-block fs-3"><i class="bi bi-megaphone" aria-hidden="true"></i></span><small>Post</small></a><a href="#" class="link-body-emphasis text-decoration-none"><span class="d-block fs-3"><i class="bi bi-qr-code" aria-hidden="true"></i></span><small>QR code</small></a>
</div>
<label for="share-link-1028" class="form-label small">Page link</label>
<div class="input-group">
<input type="text" class="form-control" id="share-link-1028" value="example.com/brand-name-8/101" readonly>
<button class="btn btn-outline-secondary" type="button" data-demo-copy="example.com/brand-name-8/101"><i class="bi bi-copy" aria-hidden="true"></i> Copy</button>
</div>
</div>
</div>
</div>
</div>