Pagination
Angular Bootstrap 5 Pagination component
Responsive Angular Pagination built with Bootstrap 5. Examples for showing pagination to indicate a series of related content exists across multiple pages.
To learn more read Docs.
Basic example
Name | Position | Office | Age | Start date | Salary |
---|---|---|---|---|---|
Tiger Nixon | System Architect | Edinburgh | 61 | 2011/04/25 | $320,800 |
Garrett Winters | Accountant | Tokyo | 63 | 2011/07/25 | $170,750 |
Ashton Cox | Junior Technical Author | San Francisco | 66 | 2009/01/12 | $86,000 |
Cedric Kelly | Senior Javascript Developer | Edinburgh | 22 | 2012/03/29 | $433,060 |
Airi Satou | Accountant | Tokyo | 33 | 2008/11/28 | $162,700 |
Brielle Williamson | Integration Specialist | New York | 61 | 2012/12/02 | $372,000 |
Herrod Chandler | Sales Assistant | San Francisco | 59 | 2012/08/06 | $137,500 |
Rhona Davidson | Integration Specialist | Tokyo | 55 | 2010/10/14 | $327,900 |
Colleen Hurst | Javascript Developer | San Francisco | 39 | 2009/09/15 | $205,500 |
Sonya Frost | Software Engineer | Edinburgh | 23 | 2008/12/13 | $103,600 |
Rows per page:
Icons
Looking to use an icon or symbol in place of text for some pagination links? Be sure to
provide proper screen reader support with aria
attributes.
Disabled and active states
Pagination links are customizable for different circumstances. Use .disabled
for
links that appear un-clickable and .active
to indicate the current page.
While the .disabled
class uses pointer-events: none
to
try to disable the link functionality of <a>
s, that CSS property
is not yet standardized and doesn’t account for keyboard navigation. As such, you should
always add tabindex="-1"
on disabled links and use custom JavaScript to fully
disable their functionality.
You can optionally swap out active or disabled anchors for <span>
, or omit
the anchor in the case of the prev/next arrows, to remove click functionality and prevent
keyboard focus while retaining intended styles.
Sizing
Fancy larger or smaller pagination? Add .pagination-lg
or
.pagination-sm
for additional sizes.
Shape
Add .pagination-circle
class to change the shape to a circle.
Alignment
Change the alignment of pagination components with flexbox utilities.
Use .justify-content-center
class to center the pagination.
Use .justify-content-end
class to align the pagination to the right.