Chat Conversation UI
A chat window with header, message bubbles and an input footer.
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:340px">
<div class="card-header bg-white d-flex align-items-center gap-2 py-2"><div class="rounded-circle d-grid text-white" style="width:34px;height:34px;place-items:center;font-size:.75rem;background:#5b6cff">SA</div><div><div class="fw-semibold small">Sarah</div><div class="text-success" style="font-size:.7rem">● Online</div></div></div>
<div class="card-body small" style="background:#f6f7fa">
<div class="d-flex mb-2"><div class="bg-white rounded-3 px-3 py-2 shadow-sm" style="max-width:75%">Hey! Are we still on for today?</div></div>
<div class="d-flex justify-content-end mb-2"><div class="bg-primary text-white rounded-3 px-3 py-2" style="max-width:75%">Yes, 3pm works 👍</div></div>
<div class="d-flex"><div class="bg-white rounded-3 px-3 py-2 shadow-sm">Perfect, see you then!</div></div>
</div>
<div class="card-footer bg-white p-2"><div class="input-group input-group-sm"><input class="form-control" placeholder="Message…"><button class="btn btn-primary">Send</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.