Components

Tailwind CSS Pagination Components - Madhuranjan UI

Discover a variety of pagination designs built with Tailwind CSS. Enhance your site's navigation with our responsive, user-friendly, and SEO-optimized pagination components.

Simple Pagination

Navigate your content effortlessly with a clean, minimal pagination design that offers a straightforward user experience.

1  <div class="flex justify-center">
2  <nav aria-label="Pagination">
3    <ul class="inline-flex items-center -space-x-px rounded-md text-sm shadow-sm">
4       <li>
5        <a href="#"
6           class="inline-flex items-center rounded-l-md border border-gray-300 bg-white px-2 py-2 font-medium text-gray-500 hover:bg-gray-50 transition-colors duration-150 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700">
7          <span class="sr-only">Previous</span>
8          <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
9            <path fill-rule="evenodd" d="M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z" clip-rule="evenodd" />
10          </svg>

Pagination with Border

This design adds a defined border around each element for a crisp and organized navigation layout.

1<div class="flex justify-center items-center p-4">
2  <nav aria-label="Pagination">
3  <ul class="inline-flex items-center space-x-2">
4    <!-- Prev Button -->
5    <li>
6      <button type="button" class="rounded-md border border-slate-300 bg-white py-2 px-3 text-sm text-slate-600 transition-all shadow-sm hover:shadow-lg hover:text-white hover:bg-slate-800 hover:border-slate-800 focus:outline-none focus:ring-2 focus:ring-slate-500 active:bg-slate-800 active:text-white disabled:pointer-events-none disabled:opacity-50 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-300 dark:hover:bg-slate-700 dark:hover:border-slate-700 dark:focus:ring-slate-400">
7        Prev
8      </button>
9    </li>
10    <!-- Page 1 (Current) -->

Circular Pagination

Enjoy a modern look with rounded pagination elements that create a friendly and approachable navigation experience.

1<div class="flex justify-center items-center p-5">
2  <nav aria-label="Pagination">
3    <ul class="inline-flex items-center space-x-2">
4      <li>
5        <button type="button" class="rounded-full border border-slate-300 bg-white px-3 py-2 text-sm text-slate-600 shadow-sm transition-all hover:border-slate-800 hover:bg-slate-800 hover:text-white focus:ring-2 focus:ring-slate-500 focus:outline-none active:bg-slate-800 active:text-white disabled:pointer-events-none disabled:opacity-50 dark:border-slate-600 dark:bg-slate-800 dark:text-slate-300 dark:hover:border-slate-700 dark:hover:bg-slate-700 dark:focus:ring-slate-400">Prev</button>
6      </li>
7      <li>
8        <button type="button" aria-current="page" class="min-w-[36px] rounded-full border border-transparent bg-slate-800 px-3.5 py-2 text-sm font-medium text-white shadow-md transition-all hover:bg-slate-700 focus:ring-2 focus:ring-slate-500 focus:outline-none active:bg-slate-700 dark:bg-slate-700 dark:focus:ring-slate-400">1</button>
9      </li>
10      <li>

Pagination with Page Number

Clearly indicate the current page by displaying page numbers, making it easier for users to understand their position in your content.

1<div class="flex justify-center items-center p-5">
2  <div class="flex justify-center">
3    <nav aria-label="Pagination">
4      <ul class="inline-flex items-center space-x-1 rounded-md text-sm transition-colors duration-150">
5        <li>
6          <a href="#" class="inline-flex items-center space-x-2 rounded-md border border-gray-300 bg-white px-4 py-2 font-medium text-gray-500 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700">
7            <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
8              <path fill-rule="evenodd" d="M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z" clip-rule="evenodd" />
9            </svg>
10            <span>Previous</span>

Different Size Pagination

Adapt your pagination to your layout with options in varying sizes, offering flexibility and enhanced visual appeal.

1<div class="flex justify-center items-center p-5 flex-col space-y-4">
2<nav aria-label="Pagination XS">
3  <ul class="inline-flex -space-x-px text-xs">
4    <li>
5      <a href="#" class="flex items-center justify-center px-2 h-7 leading-tight text-gray-500 bg-white border border-gray-300 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-700 dark:hover:text-white">
6        Previous
7      </a>
8    </li>
9    <li>
10      <a href="#" class="flex items-center justify-center px-2 h-7 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-700 dark:hover:text-white">