We use a large block of connected links for our pagination, making links hard to miss and easily scalable—all while providing large hit areas. Pagination is built with list HTML elements so screen readers can announce the number of available links. Use a wrapping
<nav> element to identify it as a navigation section to screen readers and other assistive technologies.
In addition, as pages likely have more than one such navigation section, it’s advisable to provide a descriptive
aria-label for the
<nav> to reflect its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be
aria-label="Search results pages".
<Pagination.Item> to wrap any custom paging items.
Disabled and active states
Use prop like
disabled to set the states. Disabled links appear un-clickable and Active to indicate the current page.
size prop to set the size of all page items.
import Pagination from `@trimbleinc/modus-react-bootstrap/Pagination`
Set's the size of all PageItems.
import PageItem from `@trimbleinc/modus-react-bootstrap/PageItem`
Styles PageItem as active, and renders a
An accessible label indicating the active state..
Disables the PageItem
A callback function for when this component is clicked