Page controls for a list.
Every number carries its own aria-label ("Page 4"), because a bare digit on a button tells a screen reader nothing about what pressing it does. The current page is marked with aria-current, not only a colour.
import { Pagination } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
page |
number |
|
pageCount |
number |
|
label |
string |
|
previousLabel |
string |
|
nextLabel |
string |
|
className |
string |
|
onChange |
(page: number) => void |