Data Table with Badges
A hoverable user data table with avatars, roles and status badges.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow-sm" style="max-width:480px">
<div class="table-responsive"><table class="table table-hover align-middle mb-0">
<thead class="table-light"><tr><th class="small">User</th><th class="small">Role</th><th class="small">Status</th></tr></thead>
<tbody>
<tr><td class="small"><div class="d-flex align-items-center gap-2"><div class="rounded-circle d-grid text-white" style="width:30px;height:30px;place-items:center;font-size:.7rem;background:#ff477e">A</div>Ava L.</div></td><td class="small">Admin</td><td><span class="badge text-bg-success">Active</span></td></tr>
<tr><td class="small"><div class="d-flex align-items-center gap-2"><div class="rounded-circle d-grid text-white" style="width:30px;height:30px;place-items:center;font-size:.7rem;background:#5b6cff">B</div>Ben C.</div></td><td class="small">Editor</td><td><span class="badge text-bg-warning">Pending</span></td></tr>
<tr><td class="small"><div class="d-flex align-items-center gap-2"><div class="rounded-circle d-grid text-white" style="width:30px;height:30px;place-items:center;font-size:.7rem;background:#16a34a">C</div>Cara D.</div></td><td class="small">Viewer</td><td><span class="badge text-bg-secondary">Inactive</span></td></tr>
</tbody>
</table></div>
</div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.