Pagination
Installation
Usage
<rh-pagination>
<ol>
<li><a href="#1">1</a></li>
<li><a href="#2">2</a></li>
<li><a href="#3">3</a></li>
<li><a href="#4">4</a></li>
<li><a href="#5">5</a></li>
</ol>
</rh-pagination>
rh-pagination
Slot Name | Description |
---|---|
|
An ordered list of links |
go-to-page |
"Go to page" text |
out-of |
"of" text |
DOM Property | Description | Type | Default |
---|---|---|---|
overflow |
Override |
|
|
label |
Accessible label for the 'nav' element |
|
|
labelFirst |
Accessible label for the 'first page' button |
|
|
labelPrevious |
Accessible label for the 'previous page' button |
|
|
labelNext |
Accessible label for the 'next page' button |
|
|
labelLast |
Accessible label for the 'last page' button |
|
|
Method Name | Description |
---|---|
first() |
Navigate to the first page |
prev() |
Navigate to the previous page |
next() |
Navigate to the next page |
last() |
Navigate to the last page |
go(page: 'first' | 'prev' | 'next' | 'last' | number) |
Navigate to a specific page |
None
None
CSS Property | Description | Default |
---|---|---|
--rh-pagination-accent-color |
Sets the outline color when the page input has focus. |
var(--rh-color-interactive-blue, #0066cc)
|
--rh-pagination-background-focused |
Sets the disabled stepper color. |
var(--rh-color-gray-20, #c7c7c7)
|
--rh-pagination-stepper-color |
Sets the stepper color. |
var(--rh-color-icon-subtle, #707070)
|
None
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.