Bootstrap 5 Pagination Section Component

This Bootstrap 5 pagination example is modern, trendy, and easy to use. This pagination style will blend with your design effortlessly.

<!-- Pagination 1 - HCF Bootstrap 5 Component -->
<section class="bg-light py-5 py-xl-6">
  <div class="container">
    <div class="row">
      <div class="col-12">
        <nav aria-label="HCF Pagination 1 Example">
          <ul class="pagination hcf-pagination-1 pagination-lg justify-content-center">
            <li class="page-item"><a class="page-link" href="#!">Previous</a></li>
            <li class="page-item"><a class="page-link" href="#!">1</a></li>
            <li class="page-item active"><a class="page-link" href="#!">2</a></li>
            <li class="page-item"><a class="page-link" href="#!">3</a></li>
            <li class="page-item"><a class="page-link" href="#!">Next</a></li>
          </ul>
        </nav>
      </div>
    </div>
  </div>
</section>
.g-6,
.gx-6 {
  --bs-gutter-x: 4.5rem;
}
.g-6,
.gy-6 {
  --bs-gutter-y: 4.5rem;
}
@media (min-width: 576px) {
  .g-sm-6,
  .gx-sm-6 {
    --bs-gutter-x: 4.5rem;
  }
  .g-sm-6,
  .gy-sm-6 {
    --bs-gutter-y: 4.5rem;
  }
}
@media (min-width: 768px) {
  .g-md-6,
  .gx-md-6 {
    --bs-gutter-x: 4.5rem;
  }
  .g-md-6,
  .gy-md-6 {
    --bs-gutter-y: 4.5rem;
  }
}
@media (min-width: 992px) {
  .g-lg-6,
  .gx-lg-6 {
    --bs-gutter-x: 4.5rem;
  }
  .g-lg-6,
  .gy-lg-6 {
    --bs-gutter-y: 4.5rem;
  }
}
@media (min-width: 1200px) {
  .g-xl-6,
  .gx-xl-6 {
    --bs-gutter-x: 4.5rem;
  }
  .g-xl-6,
  .gy-xl-6 {
    --bs-gutter-y: 4.5rem;
  }
}
@media (min-width: 1400px) {
  .g-xxl-6,
  .gx-xxl-6 {
    --bs-gutter-x: 4.5rem;
  }
  .g-xxl-6,
  .gy-xxl-6 {
    --bs-gutter-y: 4.5rem;
  }
}
.py-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}
@media (min-width: 576px) {
  .py-sm-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}
@media (min-width: 768px) {
  .py-md-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}
@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}
@media (min-width: 1200px) {
  .py-xl-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}
@media (min-width: 1400px) {
  .py-xxl-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}
.hcf-pagination-1.pagination {
  --bs-pagination-color: #212529;
  --bs-pagination-hover-color: #6c757d;
  --bs-pagination-active-bg: #fff;
  --bs-pagination-active-color: var(--bs-link-color);
}
.hcf-pagination-1.pagination .page-item .page-link {
  background-color: rgba(0, 0, 0, 0);
  border: none;
}
.hcf-pagination-1.pagination .page-item.active .page-link,
.hcf-pagination-1.pagination .page-item .page-link.active {
  border-bottom: var(--bs-pagination-border-width) solid
    var(--bs-pagination-border-color);
}
@media (max-width: 767.98px) {
  .hcf-pagination-1.pagination.pagination-lg {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-border-radius: 0.375rem;
  }
}

Bootstrap 5 Pagination Snippet Example

This Bootstrap 5 pagination example is straightforward to implement on the blog page. Copy the snippets, and you are good to go.