Pagination
Pagination with page navigation, next and previous links.
Default
Few Pages
When there are 7 or fewer pages, all page numbers are shown without ellipsis.
Few Pages
Sibling Count
Use the
sibling_count
prop to control how many pages are shown on each side of the current page.
Sibling Count 2
Custom Previous/Next
Use the
previous
and
next
slots for custom button content.
Custom Buttons
Edge Cases
The pagination component handles edge cases gracefully.
First Page
Last Page
Accessibility
The pagination component includes proper ARIA attributes:
-
Uses
<nav>element witharia-label="Pagination" -
Current page marked with
aria-current="page" - Previous/next buttons have descriptive aria-labels
- Disabled buttons properly marked