Rating Breakdown
An average rating with a per-star distribution of progress bars.
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:360px"><div class="card-body">
<div class="d-flex align-items-center gap-3 mb-3"><div class="display-5 fw-bold">4.6</div><div><div class="text-warning">★★★★★</div><small class="text-secondary">1,284 reviews</small></div></div>
<div class="d-flex align-items-center gap-2 small mb-1"><span style="width:14px">5</span><div class="progress flex-fill" style="height:8px"><div class="progress-bar bg-success" style="width:72%"></div></div></div>
<div class="d-flex align-items-center gap-2 small mb-1"><span style="width:14px">4</span><div class="progress flex-fill" style="height:8px"><div class="progress-bar bg-success" style="width:18%"></div></div></div>
<div class="d-flex align-items-center gap-2 small mb-1"><span style="width:14px">3</span><div class="progress flex-fill" style="height:8px"><div class="progress-bar bg-warning" style="width:6%"></div></div></div>
<div class="d-flex align-items-center gap-2 small"><span style="width:14px">2</span><div class="progress flex-fill" style="height:8px"><div class="progress-bar bg-danger" style="width:4%"></div></div></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.