Skip to content

Pagination API

API reference docs for the React Pagination component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Pagination from '@mui/material/Pagination';
// or
import { Pagination } from '@mui/material';
Learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

boundaryCount

Number of always visible pages at the beginning and end.

Type:

integer

Default:

1
classes

Override or extend the styles applied to the component.

Type:

object
color

The active color. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

Type:

'primary' | 'secondary' | 'standard' | string

Default:

'standard'
count

The total number of pages.

Type:

integer

Default:

1
defaultPage

The page selected by default when the component is uncontrolled.

Type:

integer

Default:

1
disabled

If true, the component is disabled.

Type:

bool

Default:

false
getItemAriaLabel

Accepts a function which returns a string value that provides a user-friendly name for the current page. This is important for screen reader users.
For localization purposes, you can use the provided translations.

Type:

func

Signature:

function(type: string, page: number, selected: bool) => string
  • type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
  • page The page number to format.
  • selected If true, the current page is selected.
hideNextButton

If true, hide the next-page button.

Type:

bool

Default:

false
hidePrevButton

If true, hide the previous-page button.

Type:

bool

Default:

false
onChange

Callback fired when the page is changed.

Type:

func

Signature:

function(event: React.ChangeEvent, page: number) => void
  • event The event source of the callback.
  • page The page selected.
page

The current page.

Type:

integer
renderItem

Render the item.

Type:

func

Default:

(item) => <PaginationItem {...item} />

Signature:

function(params: PaginationRenderItemParams) => ReactNode
  • params The props to spread on a PaginationItem.
shape

The shape of the pagination items.

Type:

'circular' | 'rounded'

Default:

'circular'
showFirstButton

If true, show the first-page button.

Type:

bool

Default:

false
showLastButton

If true, show the last-page button.

Type:

bool

Default:

false
siblingCount

Number of always visible pages before and after the current page.

Type:

integer

Default:

1
size

The size of the component.

Type:

'small' | 'medium' | 'large' | string

Default:

'medium'
sx

The system prop that allows defining system overrides as well as additional CSS styles.

Type:

Array<func | object | bool> | func | object
variant

The variant to use.

Type:

'outlined' | 'text' | string

Default:

'text'

The ref is forwarded to the root element.

Theme default props

You can use MuiPagination to change the default props of this component with the theme.

CSS

The following class names are useful for styling with CSS (the state classes are marked).
To learn more, visit the component customization page.

.MuiPagination-rootroot

Styles applied to the root element.

.MuiPagination-ulul

Styles applied to the ul element.

.MuiPagination-outlinedoutlined

Styles applied to the root element if variant="outlined".

.MuiPagination-texttext

Styles applied to the root element if variant="text".

You can override the style of the component using one of these customization options: