The original component framework. Bootstrap gives you a grid, ready-made components and a JavaScript bundle for interactive widgets — drop in classes and you have a polished UI instantly.
Bootstrap's contextual classes give you a complete colour system for free. Every alert and button here is a stock Bootstrap component.
.alert .alert-success..alert .alert-warning.<div class="alert alert-success">A success alert</div> <button class="btn btn-primary">Primary</button> <button class="btn btn-outline-primary">Outline</button>
A striped, animated progress bar — pure Bootstrap markup, no extra CSS. Use the buttons to move it (Bootstrap reads the inline width).
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated
bg-info" style="width:45%">45%</div>
</div>
This collapsing accordion is driven by Bootstrap's own JavaScript bundle. Click a header to expand it; opening one closes the others.
<button data-bs-toggle="collapse" data-bs-target="#ac1">...</button>
<div id="ac1" class="accordion-collapse collapse show"
data-bs-parent="#bsAcc">...</div>
Click the button to open a real Bootstrap modal: backdrop, focus trap, ESC-to-close and all. No code beyond the data attributes.
<button data-bs-toggle="modal" data-bs-target="#bsModal">Launch</button> <div class="modal fade" id="bsModal"> ... </div>
Bootstrap's 12-column grid (row + col-md-*) stacks on phones and sits side-by-side on wider screens. Resize to watch the columns wrap.
Half-width on desktop, full-width on mobile.
col-md-6The grid handles all the responsive maths for you.
responsive<div class="row g-3"> <div class="col-md-6"><div class="card">...</div></div> <div class="col-md-6"><div class="card">...</div></div> </div>
data-bs-* attributes, no custom JS). Demos are wrapped in a frame so Bootstrap's component styles stay inside the demo area and don't fight the shared CSS shell.