2016-09-11 11:00:49 +00:00
---
2017-10-17 09:28:59 +00:00
title: Pagination
2016-09-11 11:00:49 +00:00
layout: documentation
doc-tab: components
doc-subtab: pagination
2018-04-09 12:18:46 +00:00
breadcrumb:
- home
- documentation
- components
- components-pagination
meta:
2018-04-09 13:15:31 +00:00
colors: false
sizes: true
variables: true
2016-09-11 11:00:49 +00:00
---
2016-10-30 22:31:54 +00:00
{% capture pagination_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination" role = "navigation" aria-label = "pagination" >
2016-10-30 22:31:54 +00:00
< a class = "pagination-previous" > Previous< / a >
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link" aria-label = "Goto page 1" > 1< / a >
2016-10-30 22:31:54 +00:00
< / li >
< li >
< span class = "pagination-ellipsis" > … < / span >
< / li >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link" aria-label = "Goto page 45" > 45< / a >
2016-10-30 22:31:54 +00:00
< / li >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link is-current" aria-label = "Page 46" aria-current = "page" > 46< / a >
2016-10-30 22:31:54 +00:00
< / li >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link" aria-label = "Goto page 47" > 47< / a >
2016-10-30 22:31:54 +00:00
< / li >
< li >
< span class = "pagination-ellipsis" > … < / span >
< / li >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link" aria-label = "Goto page 86" > 86< / a >
2016-10-30 22:31:54 +00:00
< / li >
< / ul >
< / nav >
{% endcapture %}
{% capture pagination_options_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination" role = "navigation" aria-label = "pagination" >
2021-10-08 17:24:00 +00:00
< a class = "pagination-previous is-disabled" title = "This is the first page" > Previous< / a >
2016-10-30 22:31:54 +00:00
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
2016-09-11 11:00:49 +00:00
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link is-current" aria-label = "Page 1" aria-current = "page" > 1< / a >
2016-09-11 11:00:49 +00:00
< / li >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link" aria-label = "Goto page 2" > 2< / a >
2016-09-11 11:00:49 +00:00
< / li >
< li >
2017-08-21 12:00:30 +00:00
< a class = "pagination-link" aria-label = "Goto page 3" > 3< / a >
2016-09-11 11:00:49 +00:00
< / li >
< / ul >
< / nav >
2016-10-30 22:31:54 +00:00
{% endcapture %}
{% capture pagination_centered_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination is-centered" role = "navigation" aria-label = "pagination" >
2016-10-30 22:31:54 +00:00
< a class = "pagination-previous" > Previous< / a >
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 1" > 1< / a > < / li >
2016-10-30 22:31:54 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< 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 >
2016-10-30 22:31:54 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 86" > 86< / a > < / li >
2016-10-30 22:31:54 +00:00
< / ul >
< / nav >
{% endcapture %}
{% capture pagination_right_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination is-right" role = "navigation" aria-label = "pagination" >
2016-10-30 22:31:54 +00:00
< a class = "pagination-previous" > Previous< / a >
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 1" > 1< / a > < / li >
2016-10-30 22:31:54 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< 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 >
2016-10-30 22:31:54 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 86" > 86< / a > < / li >
2016-10-30 22:31:54 +00:00
< / ul >
< / nav >
{% endcapture %}
2017-03-13 16:52:01 +00:00
2017-12-04 13:39:15 +00:00
{% capture pagination_rounded_example %}
< 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 >
{% endcapture %}
2017-03-13 16:52:01 +00:00
{% capture pagination_small_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination is-small" role = "navigation" aria-label = "pagination" >
2017-03-13 16:52:01 +00:00
< a class = "pagination-previous" > Previous< / a >
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 1" > 1< / a > < / li >
2017-03-13 16:52:01 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< 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 >
2017-03-13 16:52:01 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 86" > 86< / a > < / li >
2017-03-13 16:52:01 +00:00
< / ul >
< / nav >
{% endcapture %}
{% capture pagination_medium_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination is-medium" role = "navigation" aria-label = "pagination" >
2017-03-13 16:52:01 +00:00
< a class = "pagination-previous" > Previous< / a >
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 1" > 1< / a > < / li >
2017-03-13 16:52:01 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< 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 >
2017-03-13 16:52:01 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 86" > 86< / a > < / li >
2017-03-13 16:52:01 +00:00
< / ul >
< / nav >
{% endcapture %}
{% capture pagination_large_example %}
2017-08-21 12:00:30 +00:00
< nav class = "pagination is-large" role = "navigation" aria-label = "pagination" >
2017-03-13 16:52:01 +00:00
< a class = "pagination-previous" > Previous< / a >
< a class = "pagination-next" > Next page< / a >
< ul class = "pagination-list" >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 1" > 1< / a > < / li >
2017-03-13 16:52:01 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< 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 >
2017-03-13 16:52:01 +00:00
< li > < span class = "pagination-ellipsis" > … < / span > < / li >
2017-08-21 12:00:30 +00:00
< li > < a class = "pagination-link" aria-label = "Goto page 86" > 86< / a > < / li >
2017-03-13 16:52:01 +00:00
< / ul >
< / nav >
{% endcapture %}
2018-04-09 12:18:46 +00:00
< div class = "content" >
< p >
The pagination component consists of several elements:
< / p >
< ul >
< li >
< code > pagination-previous< / code > and < code > pagination-next< / code > for incremental navigation
< / li >
< li >
< code > pagination-list< / code > which displays page items:
2017-07-28 22:27:59 +00:00
< ul >
< li >
2018-04-09 12:18:46 +00:00
< code > pagination-link< / code > for the page numbers
2017-07-28 22:27:59 +00:00
< / li >
< li >
2018-04-09 12:18:46 +00:00
< code > pagination-ellipsis< / code > for range separators
2017-07-28 22:27:59 +00:00
< / li >
< / ul >
2018-04-09 12:18:46 +00:00
< / li >
< / ul >
< p >
All elements are optional so you can compose your pagination as you wish.
< / p >
< / div >
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_example horizontal=true more=true %}
2017-07-28 22:27:59 +00:00
2018-04-09 12:18:46 +00:00
< div class = "content" >
< p >
You can disable some links if they are not active, or change the amount of page numbers available.
< / p >
< / div >
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_options_example horizontal=true more=true %}
2017-07-28 22:27:59 +00:00
2018-04-09 12:18:46 +00:00
< div class = "content" >
< p >
By default on < strong > tablet< / strong > , the list is located on the left, and the previous/next buttons on the right. But you can change the < strong > order< / strong > of these elements by using the < code > is-centered< / code > and < code > is-right< / code > modifiers.
< / p >
< / div >
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_centered_example horizontal=true more=true %}
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_right_example horizontal=true more=true %}
2017-12-04 13:39:15 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Styles" %}
2017-12-04 13:39:15 +00:00
2018-04-09 12:18:46 +00:00
< p class = "content" >
Add the < code > is-rounded< / code > modifier to have rounded pagination items.
< / p >
2017-12-04 13:39:15 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_rounded_example horizontal=true more=true %}
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Sizes" %}
2017-07-28 22:27:59 +00:00
2018-04-09 12:18:46 +00:00
< p class = "content" >
The pagination comes in < strong > 3 additional sizes< / strong > .< br >
You only need to append the < strong > modifier< / strong > < code > is-small< / code > , < code > is-medium< / code > , or < code > is-large< / code > to the < code > pagination< / code > component.
< / p >
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_small_example horizontal=true more=true %}
2017-07-28 22:27:59 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_medium_example horizontal=true more=true %}
2017-03-13 16:52:01 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=pagination_large_example horizontal=true more=true %}
2017-07-28 22:27:59 +00:00
2021-01-27 23:30:42 +00:00
{% include components/variables.html type='component' %}