This library is still in development and is available only for internal usage at VTEX.
Skip to main content

Pagination

Pagination

Version: 0.136.0

Pagination

Pagination triggers allow merchants to view the size of a list and navigate between pages.

{' '}



You can persist the pagination state within the browser's query params using the useQueryPaginationState hook, instead of usePaginationState. Both hooks are used in the same way. The application should be wrapped by QueryStateProvider.

{' '}


Watch how your url changes.

1 β€” 5 of 35
1 β€” 5 of 35

{' '}

caution

Be careful when using the setTotal action, because if you set the total to a smaller value it may lead your current page to an invalid one.

1 β€” 5 de 35