Paginación

Ejemplo básico


<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Anterior</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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="#">Siguiente</a></li>
</ul>
</nav>

Con iconos


<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item">
<a class="page-link px-2" href="#" aria-label="Previous">
<span class="icon-chevron-left" aria-hidden="true"></span>
</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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 px-2" href="#" aria-label="Next">
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
</li>
</ul>
</nav>

Estados activos y dehabilitados


<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item disabled">
<a class="page-link px-2" href="#" aria-label="Previous">
<span class="icon-chevron-left" aria-hidden="true"></span>
</a>
</li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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 px-2" href="#" aria-label="Next">
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
</li>
</ul>
</nav>

Tamaños

Pequeña

<nav aria-label="Page navigation example">
<ul class="pagination pagination-sm">
<li class="page-item disabled">
<a class="page-link px-1" href="#" aria-label="Previous">
<span class="icon-chevron-left" aria-hidden="true"></span>
</a> </li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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 px-1" href="#" aria-label="Next">
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
</li>
</ul>
</nav>

<nav aria-label="Page navigation example">
<ul class="pagination pagination-lg">
<li class="page-item disabled">
<a class="page-link px-3" href="#" aria-label="Previous">
<span class="icon-chevron-left" aria-hidden="true"></span>
</a>
</li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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 px-3" href="#" aria-label="Next">
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
</li>
</ul>
</nav>

Alineación

Centrada

<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="page-item disabled">
<a class="page-link px-2" href="#" aria-label="Previous">
<span class="icon-chevron-left" aria-hidden="true"></span>
</a>
</li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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 px-2" href="#" aria-label="Next">
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
</li>
</ul>
</nav>
Derecha

<nav aria-label="Page navigation example">
<ul class="pagination justify-content-end">
<li class="page-item disabled">
<a class="page-link px-2" href="#" aria-label="Previous">
<span class="icon-chevron-left" aria-hidden="true"></span>
</a>
</li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><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 px-2" href="#" aria-label="Next">
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
</li>
</ul>
</nav>

Sobre fondo del body usar con combra

Añadir clase shadow-sm a los elementos page-item


<nav aria-label="Page navigation example2">
<ul class="pagination">
<li class="page-item shadow-sm"><a class="page-link" href="#">Anterior</a></li>
<li class="page-item shadow-sm"><a class="page-link" href="#">1</a></li>
<li class="page-item shadow-sm"><a class="page-link" href="#">2</a></li>
<li class="page-item shadow-sm"><a class="page-link" href="#">3</a></li>
<li class="page-item shadow-sm"><a class="page-link" href="#">Siguiente</a></li>
</ul>
</nav>