Skip to content

Pagination

What component has

Keyboard support

Keyboard support
KeyFunction
TabMoves focus to the next focusable element.
Shift + TabMoves focus to the previous focusable element.

See detailed information about the keyboard support for the buttons, links, inputs, etc., in the Keyboard control guide.

Roles & attributes

The list below describes roles and attributes that component already has.

Attributes
AttributeElementUsage
navIn order to let AT users recognize that there is a pagination, we should wrap the links in a <nav> element.
aria-label="pagination"navDescribes the type of navigation.
aria-current="page"inputPoints to the current page. This will tell AT that the focused input is pointing to the current page.
aria-label="Page {number}"buttonDescribes the meaning of the "Prev" and "Next" buttons.
aria-label="First page"buttonDescribes the meaning of the "<<" button.
aria-label="Last page {number}"buttonDescribes the meaning of the "{number}" link.

Resources

A11y style guide documentation has detailed information about the accessible pagination best practices.

Other recommendations

See more accessibility recommendations in the common Accessibility guide.

Released under the MIT License.

Released under the MIT License.