CodeAI

Pagination

Not in Production

Page pagination — segmented page numbers with optional first/last. Figma Pagination type=page. Table pagination is TablePagination (same docs page).

Appearance

Content

State

Layout & behavior

Accessibility

Props — Pagination
View MUI docs
PropTypeDescription
size"large" | "medium" | "small" | "extraSmall"Control height. Default medium (40).
countnumberTotal number of pages.
pagenumber1-based current page (controlled).
defaultPagenumberInitial page when uncontrolled.
onChange(event, page: number) => voidCalled when the page changes.
layout"auto" | "segmented" | "compact"Narrow-container behavior. auto swaps to compact (prev + Page X of Y + next) when the segmented trail would overflow.
labelCompactPages(args: { page: number; count: number }) => ReactNodeFormats the compact-mode label. Default "Page X of Y".
showFirstButtonbooleanShow jump-to-first (Figma hasFirstLast).
showLastButtonbooleanShow jump-to-last (Figma hasFirstLast).
siblingCountnumberPages shown on each side of the current page.
boundaryCountnumberPages always shown at the start and end.
disabledbooleanDisables all items.
aria-labelstringAccessible name for the pagination navigation.
Props — TablePagination
View MUI docs
PropTypeDescription
size"large" | "medium" | "small" | "extraSmall"Control height. Default medium (40).
countnumberTotal number of rows.
pagenumber0-based page index (MUI TablePagination).
rowsPerPagenumberRows shown per page.
onPageChange(event, newPage: number) => voidCalled when prev/next changes the page.
onRowsPerPageChange(event) => voidCalled when the rows-per-page Dropdown changes.
rowsPerPageOptionsArray<number | { value: number; label: string }>Options for the rows-per-page Dropdown.
labelRowsPerPageReactNodeLabel before the rows-per-page control.
labelDisplayedRows(args) => ReactNodeFormats the range text (from-to of count).
disabledbooleanDisables controls.
aria-labelstringAccessible name for the table pagination region.