Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Pagination

Bootstrap 5 Pagination

If you have a website with lots of pages, you may wish to add some sort of pagination.

Basic Pagination

Add the .pagination class to a <ul> element. Add the .page-item to each <li> and a .page-link to each link inside.

Active and Disabled States

Use .active to highlight the current page, and .disabled for unclickable links.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics