Bootstrap 5 data tables display and interact with large datasets. This page covers 4 data table patterns — search filter, sortable, action buttons and pagination — each built with vanilla JavaScript and Bootstrap.
Quick Setup
Data tables need Bootstrap 5 CSS and JS:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
Key Classes Reference
| Class | What It Does |
|---|---|
.table | Base table class |
.table-hover | Row highlight on hover |
.table-striped | Alternating row colors |
.align-middle | Vertically centers cell content |
.table-responsive | Horizontal scroll on mobile |
.pagination | Pagination nav component |
.page-item.active | Highlights current page |
.page-item.disabled | Disables prev/next at boundaries |
1. Bootstrap 5 Table with Search Filter
A table with a live search input that filters rows as you type. Pure JavaScript, no library needed.
2. Bootstrap 5 Sortable Table
Click column headers to sort the table ascending or descending. Pure JavaScript sorting.
3. Bootstrap 5 Table with Action Buttons
Data table with edit, view and delete action buttons per row. Common in admin dashboards.
4. Bootstrap 5 Table with Pagination
Table with pagination controls. Shows rows per page and navigates between pages.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.