The pagination component consists of several elements:
pagination-previous
and pagination-next
for incremental navigation
pagination-list
which displays page items:
pagination-link
for the page numbers
pagination-ellipsis
for range separators
All elements are optional so you can compose your pagination as you wish.
<nav class= "pagination" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li>
<a class= "pagination-link" aria-label= "Goto page 1" > 1</a>
</li>
<li>
<span class= "pagination-ellipsis" > … </span>
</li>
<li>
<a class= "pagination-link" aria-label= "Goto page 45" > 45</a>
</li>
<li>
<a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a>
</li>
<li>
<a class= "pagination-link" aria-label= "Goto page 47" > 47</a>
</li>
<li>
<span class= "pagination-ellipsis" > … </span>
</li>
<li>
<a class= "pagination-link" aria-label= "Goto page 86" > 86</a>
</li>
</ul>
</nav>
You can disable some links if they are not active, or change the amount of page numbers available.
<nav class= "pagination" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" title= "This is the first page" disabled > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li>
<a class= "pagination-link is-current" aria-label= "Page 1" aria-current= "page" > 1</a>
</li>
<li>
<a class= "pagination-link" aria-label= "Goto page 2" > 2</a>
</li>
<li>
<a class= "pagination-link" aria-label= "Goto page 3" > 3</a>
</li>
</ul>
</nav>
By default on tablet , the list is located on the left, and the previous/next buttons on the right. But you can change the order of these elements by using the is-centered
and is-right
modifiers.
<nav class= "pagination is-centered" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li><a class= "pagination-link" aria-label= "Goto page 1" > 1</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 45" > 45</a></li>
<li><a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a></li>
<li><a class= "pagination-link" aria-label= "Goto page 47" > 47</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 86" > 86</a></li>
</ul>
</nav>
<nav class= "pagination is-right" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li><a class= "pagination-link" aria-label= "Goto page 1" > 1</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 45" > 45</a></li>
<li><a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a></li>
<li><a class= "pagination-link" aria-label= "Goto page 47" > 47</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 86" > 86</a></li>
</ul>
</nav>
Styles
#
New!
0.6.2
Add the is-rounded
modifier to have rounded pagination items.
<nav class= "pagination is-rounded" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li><a class= "pagination-link" aria-label= "Goto page 1" > 1</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 45" > 45</a></li>
<li><a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a></li>
<li><a class= "pagination-link" aria-label= "Goto page 47" > 47</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 86" > 86</a></li>
</ul>
</nav>
Sizes
#
The pagination comes in 3 additional sizes .
You only need to append the modifier is-small
, is-medium
, or is-large
to the pagination
component.
<nav class= "pagination is-small" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li><a class= "pagination-link" aria-label= "Goto page 1" > 1</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 45" > 45</a></li>
<li><a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a></li>
<li><a class= "pagination-link" aria-label= "Goto page 47" > 47</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 86" > 86</a></li>
</ul>
</nav>
<nav class= "pagination is-medium" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li><a class= "pagination-link" aria-label= "Goto page 1" > 1</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 45" > 45</a></li>
<li><a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a></li>
<li><a class= "pagination-link" aria-label= "Goto page 47" > 47</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 86" > 86</a></li>
</ul>
</nav>
<nav class= "pagination is-large" role= "navigation" aria-label= "pagination" >
<a class= "pagination-previous" > Previous</a>
<a class= "pagination-next" > Next page</a>
<ul class= "pagination-list" >
<li><a class= "pagination-link" aria-label= "Goto page 1" > 1</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 45" > 45</a></li>
<li><a class= "pagination-link is-current" aria-label= "Page 46" aria-current= "page" > 46</a></li>
<li><a class= "pagination-link" aria-label= "Goto page 47" > 47</a></li>
<li><span class= "pagination-ellipsis" > … </span></li>
<li><a class= "pagination-link" aria-label= "Goto page 86" > 86</a></li>
</ul>
</nav>
Variables
#
You can use these variables to customize this component. Simply set one or multiple of these variables before importing Bulma. Learn how .
Name
Default value
Name
Default value
$pagination-color
$grey-darker
$pagination-border-color
$grey-lighter
$pagination-margin
-0.25rem
$pagination-hover-color
$link-hover
$pagination-hover-border-color
$link-hover-border
$pagination-focus-color
$link-focus
$pagination-focus-border-color
$link-focus-border
$pagination-active-color
$link-active
$pagination-active-border-color
$link-active-border
$pagination-disabled-color
$grey
$pagination-disabled-background-color
$grey-lighter
$pagination-disabled-border-color
$grey-lighter
$pagination-current-color
$link-invert
$pagination-current-background-color
$link
$pagination-current-border-color
$link
$pagination-ellipsis-color
$grey-light