Top 12 Bootstrap 5 Components Every Developer Should Know
By The CodeCraft Teamยทยท9 min read

Bootstrap 5 ships ready-made components for nearly every UI pattern. These twelve are the ones you'll reach for again and again โ learn them once and you'll prototype faster than ever.
- Navbar โ responsive top navigation
- Cards โ content containers
- Modal โ dialog popups
- Offcanvas โ slide-in panels (mobile menus)
- Accordion โ collapsible sections
- Toast โ non-blocking notifications
- Carousel โ image sliders
- Dropdown โ menus and select-like UI
- Tabs & Pills โ section switchers
- Forms โ inputs, validation, and floating labels
- Buttons & Button Groups โ actions and toolbars
- Pagination โ page navigation
Example: a minimal modal
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#demo">Open</button>
<div class="modal fade" id="demo" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header"><h5 class="modal-title">Hi</h5></div>
<div class="modal-body">Hello world.</div>
</div>
</div>
</div>Frequently asked questions
Can I use Bootstrap components without jQuery?
Yes โ Bootstrap 5 dropped jQuery completely. It uses vanilla JS.
Keep reading
External references
Enjoyed this article?
Share it with a fellow developer or explore more tutorials in our blog.
More articles