Flutter docs
Default skin

Pagination

Separates long lists into pages.

When to use

Use Pagination when loading or displaying every record at once would be inefficient or difficult to scan.

Examples

Basic

Basic pagination.

Align

More

More pages.

Changer

Change pageSize.

Jumper

Jump to a page directly.

Size

Small and large size pagination.

Simple mode

Simple mode.

Controlled

Controlled page number.

Total number

You can show the total number of data by setting showTotal.

Show All

Show all configured prop.

Prev and next

Use text link for prev and next button.

Custom component

Replace the page size changer with components.

Custom semantic dom styling

You can customize the semantic dom style of Pagination by passing objects/functions through classNames and styles.

API

Pagination and PaginationProps are exported from @ceebee/ui/client.

Pagination

PropertyDescriptionTypeDefaultVersion
alignAlignstart | center | end-5.19.0
classNamesCustomize class for each semantic structure inside the component. Supports object or functionRecord<SemanticDOM, string> | (info: { props }) => Record<SemanticDOM, string>-—
componentsCustomize internal components{ sizeChanger?: React.ComponentType }-6.6.0
currentCurrent page numbernumber-—
defaultCurrentDefault initial page numbernumber1—
defaultPageSizeDefault number of data items per pagenumber10—
disabledDisable paginationboolean-—
hideOnSinglePageWhether to hide pager on single pagebooleanfalse—
itemRenderTo customize item's innerHTML(page, type: 'page' | 'prev' | 'next', originalElement) => React.ReactNode-—
pageSizeNumber of data items per pagenumber-—
pageSizeOptionsSpecify the sizeChanger optionsnumber\[]\[10, 20, 50, 100]—
responsiveIf size is not specified, Pagination would resize according to the width of the windowboolean-—
showLessItemsShow less page itemsbooleanfalse—
showQuickJumperDetermine whether you can jump to pages directlyboolean | { goButton: ReactNode }false—
showSizeChangerDetermine whether to show pageSize selectboolean | SelectProps-SelectProps: 5.21.0
showTitleShow page item's titlebooleantrue—
showTotalTo display the total number and rangefunction(total, range)-—
simpleWhether to use simple modeboolean | { readOnly?: boolean }-—
sizeComponent sizelarge | medium | smallmedium—
stylesCustomize inline style for each semantic structure inside the component. Supports object or functionRecord<SemanticDOM, CSSProperties> | (info: { props }) => Record<SemanticDOM, CSSProperties>-—
totalTotal number of data itemsnumber0—
totalBoundaryShowSizeChangerWhen total larger than it, showSizeChanger will be truenumber50—
onChangeCalled when the page number or pageSize is changed, and it takes the resulting page number and pageSize as its argumentsfunction(page, pageSize)-—
onShowSizeChangeCalled when pageSize is changedfunction(current, size)-—

Enter or Space on a previous or next arrow advances one page. The inner native button does not also trigger the parent list item's keyboard handler, so one key press produces one page change. Pointer behavior, disabled state, and the outer page-item keyboard targets stay with Ant Design.