Pagination
Navigation
@rockshin/tao-uiMoves through paged data with current page and page-size controls.
When to use
Use Pagination when a collection is split into pages rather than infinitely loaded.
Recommended
- Keep the current page controlled when data is loaded remotely.
- Show total counts when they help users judge scope.
Avoid
- Do not use the component outside its intended interaction model.
Examples
Basic usage
Sizes
Page size and totals
Display totals
showTotal can describe the current record range and total count.
Change page size
Maintain page and page size together and use both updated values in a data request.
Pagination sizes
Size controls the density of pagination buttons and can match the surrounding list.