Patternfly Logo

Pagination

Examples

Top

1 - 10 of  37
1 - 10 of  37

Top expanded

1 - 10 of  37
1 - 10 of  37

Top sticky

1 - 10 of  37
1 - 10 of  37
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.

Bottom

1 - 10 of  37

Bottom sticky

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.
1 - 10 of  37

Top disabled

1 - 10 of  37
1 - 10 of  37

Compact

1 - 10 of  37
1 - 10 of  37

Top with display summary modifier

1 - 10 of  37
1 - 10 of  37

Top with display full modifier

1 - 10 of  37
1 - 10 of  37

Top with responsive display summary and display full modifiers

1 - 10 of  37
1 - 10 of  37

Compact display full modifier

1 - 10 of  37
1 - 10 of  37

Documentation

Note: <button> or <a> elements can be used in .pf-c-pagination__nav-page-select.

Accessibility

AttributeApplied toOutcome
aria-label.pf-c-pagination__navProvides an accessible name for pagination navigation element. Required

Pagination nav input

AttributeApplied toOutcome
type="number".pf-c-pagination > .pf-c-form-controlDefines a field as a number. Required
value.pf-c-pagination__nav-page-select > .pf-c-form-controlProvides initial integer value. Required
min.pf-c-pagination__nav-page-select > .pf-c-form-controlProvides minimum integer value. Required
max.pf-c-pagination__nav-page-select > .pf-c-form-controlProvides max integer value. Required

Usage

ClassApplied toOutcome
.pf-c-pagination<div>Initiates pagination.
.pf-c-pagination__current<div>Initiates element to display currently displayed items for use in responsive view. Only needed for default pagination, not .pf-m-bottom.
.pf-c-pagination__total-items<div>Initiates element to replace the options menu on summary.
.pf-c-pagination__nav<nav>Initiates pagination nav.
.pf-c-pagination__nav-control<div>Initiates pagination nav control.
.pf-c-pagination__nav-page-select<div>Initiates pagination nav page select.
.pf-m-display-summary{-on-[breakpoint]}.pf-c-paginationModifies for summary display pagination component styles.
.pf-m-display-full{-on-[breakpoint]}.pf-c-paginationModifies for full display pagination component styles.
.pf-m-bottom.pf-c-paginationModifies for bottom pagination component styles.
.pf-m-compact.pf-c-paginationModifies for compact pagination component styles.
.pf-m-static.pf-c-pagination.pf-m-bottomModifies bottom pagination to not be positioned sticky on summary.
.pf-m-sticky.pf-c-paginationModifies the pagination to be sticky to its container. It will be sticky to the top of the container by default, and sticky to the bottom of the container when applied to .pf-c-pagination.pf-m-bottom.
.pf-m-first.pf-c-pagination__nav-controlIndicates the control is for the first page button.
.pf-m-prev.pf-c-pagination__nav-controlIndicates the control is for the previous page button.
.pf-m-next.pf-c-pagination__nav-controlIndicates the control is for the next page button.
.pf-m-last.pf-c-pagination__nav-controlIndicates the control is for the last page button.

CSS variables

.pf-c-pagination--pf-c-pagination--child--MarginRight
1.5rem
.pf-c-pagination--pf-c-pagination--m-bottom--child--MarginRight
0
.pf-c-pagination--pf-c-pagination--m-bottom--child--md--MarginRight
1.5rem
.pf-c-pagination--pf-c-pagination--m-compact--child--MarginRight
0.5rem
.pf-c-pagination--pf-c-pagination--c-options-menu__toggle--FontSize
0.875rem
.pf-c-pagination--pf-c-pagination__nav-control--c-button--PaddingRight
0.5rem
.pf-c-pagination--pf-c-pagination__nav-control--c-button--PaddingLeft
0.5rem
.pf-c-pagination--pf-c-pagination__nav-control--c-button--FontSize
1rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--OutlineOffset
calc(0.25rem * -1)
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--PaddingTop
1rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--PaddingBottom
1rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--PaddingRight
1rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--md--PaddingTop
0.375rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--md--PaddingRight
0.5rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--md--PaddingBottom
0.375rem
.pf-c-pagination--pf-c-pagination--m-bottom__nav-control--c-button--md--PaddingLeft
0.5rem
.pf-c-pagination--pf-c-pagination--m-compact__nav-control--nav-control--MarginLeft
1rem
.pf-c-pagination--pf-c-pagination__nav-page-select--FontSize
0.875rem
.pf-c-pagination--pf-c-pagination__nav-page-select--PaddingLeft
1rem
.pf-c-pagination--pf-c-pagination__nav-page-select--PaddingRight
1rem
.pf-c-pagination--pf-c-pagination__nav-page-select--child--MarginRight
0.25rem
.pf-c-pagination--pf-c-pagination__nav-page-select--c-form-control--width-base
3.5ch
.pf-c-pagination--pf-c-pagination__nav-page-select--c-form-control--width-chars
2
.pf-c-pagination--pf-c-pagination__nav-page-select--c-form-control--Width
calc(3.5ch + (2 * 1ch))
.pf-c-pagination--pf-c-pagination--m-bottom--BackgroundColor
#fff
.pf-c-pagination--pf-c-pagination--m-bottom--BoxShadow
0 -0.125rem 0.25rem -0.0625rem rgba(3, 3, 3, 0.16)
.pf-c-pagination--pf-c-pagination--m-bottom--md--PaddingTop
1rem
.pf-c-pagination--pf-c-pagination--m-bottom--md--PaddingRight
1rem
.pf-c-pagination--pf-c-pagination--m-bottom--md--PaddingBottom
1rem
.pf-c-pagination--pf-c-pagination--m-bottom--md--PaddingLeft
1rem
.pf-c-pagination--pf-c-pagination--m-bottom--xl--PaddingRight
1.5rem
.pf-c-pagination--pf-c-pagination--m-bottom--xl--PaddingLeft
1.5rem
.pf-c-pagination.pf-m-bottom--pf-c-pagination--child--MarginRight
0
.pf-c-pagination.pf-m-bottom--pf-c-pagination__nav-control--c-button--PaddingRight
1rem
.pf-c-pagination.pf-m-bottom--pf-c-pagination__nav-control--c-button--PaddingLeft
1rem
.pf-c-pagination.pf-m-bottom .pf-c-pagination__nav-control .pf-c-button--pf-c-button--PaddingTop
1rem
.pf-c-pagination.pf-m-bottom .pf-c-pagination__nav-control .pf-c-button--pf-c-button--PaddingBottom
1rem
.pf-c-pagination.pf-m-bottom.pf-m-static--pf-c-pagination--m-bottom--MarginTop
0
.pf-c-pagination.pf-m-bottom.pf-m-static--pf-c-pagination--m-bottom--BorderTopWidth
0
.pf-c-pagination.pf-m-compact--pf-c-pagination--child--MarginRight
0.5rem

View source on Github