Comment Thread
A comment thread with avatars, nested reply and a comment box.
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:420px"><div class="card-body">
<h6 class="fw-bold mb-3">Comments (3)</h6>
<div class="d-flex gap-2 mb-3"><div class="rounded-circle d-grid text-white flex-shrink-0" style="width:36px;height:36px;place-items:center;font-size:.75rem;background:#ff477e">AL</div><div><div class="small"><b>Ava</b> <span class="text-secondary">· 2h</span></div><div class="small">Great article, really helpful!</div><div class="small text-secondary">👍 12 · Reply</div></div></div>
<div class="d-flex gap-2 ms-4 mb-3"><div class="rounded-circle d-grid text-white flex-shrink-0" style="width:36px;height:36px;place-items:center;font-size:.75rem;background:#5b6cff">BC</div><div><div class="small"><b>Ben</b> <span class="text-secondary">· 1h</span></div><div class="small">Agreed, the examples are clear.</div></div></div>
<div class="input-group input-group-sm"><input class="form-control" placeholder="Add a comment…"><button class="btn btn-primary">Post</button></div>
</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.