Skip to content

Unstyled Table Pagination

Table Pagination is an interface tool for splitting up large amounts of data to make it easier for users to navigate.


The Unstyled Table Pagination component lets you add pagination controls to a table. It controls two properties of its parent table:

  • displayed page index
  • number of rows per page

Table Pagination renders its internal elements in a <td> tag by default so it can be inserted into a table's <tr>. You can use the component or slots.root prop to render a different root element—for example, if you need to place the pagination controls outside of the table. See the Slot props section for details.

Rows per page:

1–5 of 13



After installation, you can start building with this component using the following basic elements:

import TablePaginationUnstyled from '@mui/base/TablePaginationUnstyled';

export default function MyApp() {
  return (
        <TablePaginationUnstyled />


The following demo shows an example of customized pagination controls in a table footer that spans the entire row:

Frozen yoghurt1596
Ice cream sandwich2379

Rows per page:

1–5 of 13


The Unstyled Table Pagination component is composed of a root <td> that houses up to ten interior slots:

  • toolbar
  • spacer
  • selectLabel
  • selectRoot
  • select
  • selectIcon
  • input
  • menuItem
  • displayedRows
  • actions
<td class="MuiTablePaginationUnstyled-root">
  <div class="MuiTablePaginationUnstyled-toolbar">
    <div class="MuiTablePaginationUnstyled-spacer"></div>
    <p class="MuiTablePaginationUnstyled-selectLabel" id="mui-48">Rows per page:</p>
    <select class="MuiTablePaginationUnstyled-select">
      <option class="MuiTablePaginationUnstyled-menuItem">All</option>
    <p class="MuiTablePaginationUnstyled-displayedRows">1–5 of 13</p>
    <div class="MuiTablePaginationUnstyled-actions">
      <button disabled="" aria-label="Go to first page" title="Go to first page">
        aria-label="Go to previous page"
        title="Go to previous page"
      <button aria-label="Go to next page" title="Go to next page">
      <button aria-label="Go to last page" title="Go to last page">

Slot props

Use the component prop to override the root slot with a custom element:

<TablePaginationUnstyled component="div" />

Use the slots prop to override any interior slots in addition to the root:

<TablePaginationUnstyled slots={{ root: 'div', toolbar: 'nav' }} />

Use the slotProps prop to pass custom props to internal slots. The following code snippet applies a CSS class called my-spacer to the spacer slot:

<TablePaginationUnstyled slotProps={{ spacer: { className: 'my-spacer' } }} />


Custom pagination options

You can customize the options shown in the Rows per page select using the rowsPerPageOptions prop. This prop requires an array of either numbers or objects:

  • numbers—each number is used for the option's label and value.

    <TablePaginationUnstyled rowsPerPageOptions={[10, 50]} />
  • objects—the value and label keys are used, respectively, for the value and label of the option (useful for labels such as All).

      rowsPerPageOptions={[10, 50, { value: -1, label: 'All' }]}

Customized look and feel

The following demo shows another example of pagination controls but with additional style customization:

Frozen yoghurt1596
Ice cream sandwich2379

Rows per page:

1–5 of 13


See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.