Elements

Reference

Pagination

Pagination — paged navigation. Parts: Root, Item (page seals), Ellipsis, PrevTrigger, NextTrigger, FirstTrigger, LastTrigger. Items carry data-selected.

Root · Item · Ellipsis · FirstTrigger · PrevTrigger · NextTrigger · LastTrigger

#Ellipsis

PropTypeDefaultDescription
indexnumber—

#FirstTrigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#Item

PropTypeDefaultDescription
type"page"—
valuenumber—

#LastTrigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#NextTrigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#PrevTrigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
sizeString as PropType<"sm" | "md" | "lg">"md"One rung of the control-height ladder every page seal shares.
countnumberTotal number of data items
defaultPagenumber1The initial active page when rendered. Use when you don't need to control the active page of the pagination.
defaultPageSizenumber10The initial number of data items per page when rendered. Use when you don't need to control the page size of the pagination.
getPageUrl(details: pagination.PageUrlDetails) => stringFunction to generate href attributes for pagination links. Only used when type is set to "link".
idstringThe unique identifier of the machine.
idsPartial<{ root: string; ellipsis(index: number): string; prevTrigger: string; nextTrigger: string; item(page: number): string; }>The ids of the elements in the accordion. Useful for composition.
pagenumberThe controlled active page
pageSizenumberThe controlled number of data items per page
siblingCountnumber1Number of pages to show beside active page
translationspagination.IntlTranslationsSpecifies the localized strings that identifies the accessibility elements and their states
type'button' | 'link'"button"The type of the trigger element
EventPayload
pageChangedetails: PageChangeDetails
update:pagepage: number
pageSizeChangedetails: PageSizeChangeDetails
update:pageSizepageSize: number