Skip to content

Pagination

<ts-pagination> vv0.4.0

The ts-pagination component.

Open in Storybook for interactive demos.

<ts-pagination current-page="1" page-size="10" sibling-count="1"></ts-pagination>
PropertyAttributeTypeDefaultDescription
currentPagecurrent-pagenumber1The current active page (1-based).
pageSizepage-sizenumber10Number of items per page.
siblingCountsibling-countnumber1Number of sibling pages shown around the current page.
sizesize"lg" | "md" | "sm" | "xl" | "xs"'md'The size of the pagination buttons.
totaltotalnumberTotal number of items.
EventDetailBubblesComposedDescription
tsChange{ page: number; }YesYesEmitted when the page changes.

Use ::part() to style internal elements:

PartDescription
buttonEach page button.
navThe nav element.
nextThe next button.
prevThe previous button.
ts-pagination::part(button) {
/* your custom styles */
}
<ts-pagination current-page="1" page-size="10" sibling-count="1"></ts-pagination>
import { TsPagination } from '@tessera-ui/react';
<TsPagination currentPage="1" pageSize="10"></TsPagination>