BumblebeeBumblebee

Paginated table

Live demo

PaginatedTable

I am a banner
Customers table
Registered business nameAccount ID
Contact Email
Business display name
Telephone number
Country
Postal code
Actions
Schinner, Roberts and Kilback16204041Aidan_Oberbrunner71@gmail.comBaumbach, Raynor and Jacobs Goyette - Dickinson1-994-264-3213 x08812Eswatini21460-0243
Harris, Schulist and Zulauf53589582Lionel81@gmail.comConn, Hahn and Considine Dickinson - Cole(410) 940-6295Serbia72147-6294
Ullrich and Sons61744462Kiarra.Reinger30@gmail.comMacejkovic Inc Russel LLC840-551-0131 x174Estonia69803-1352
Sawayn, Dare and Breitenberg20266467Lowell4@yahoo.comHilll, Pouros and Rau Marks - Schaden287-647-9732 x020Lebanon97159
Quigley, O'Reilly and Boyle93600365Brendon.Wuckert@gmail.comMorar - Maggio Kovacek, Schuster and Cronin304.571.9127 x971Slovenia62341
Quitzon - Jast70122589Issac_Jerde31@gmail.comKub - Cole Hackett, Hermiston and Dickinson650.373.3633 x0259Equatorial Guinea06707
Douglas, Smith and Beer40788843Cecilia.Herzog@hotmail.comLueilwitz - Roob Casper - Kling(746) 787-2062 x370Venezuela09636-8217
Rohan, Bayer and Daugherty69757165Agustin92@yahoo.comKrajcik Inc Crona, Ritchie and Nader714-369-0301 x175Bhutan52183
Kovacek - Kuphal68635633Bo76@yahoo.comKrajcik Group Hammes, Kovacek and Welch574.468.7858 x0698Reunion55817-8669
Kovacek, Rolfson and Franey80912883Adonis74@yahoo.comMarquardt Inc Schmidt, Robel and Blanda748-384-3964 x54461Liechtenstein92075-3009

Viewing {total,select,0{{current} of {total}}1{{current} of {total}}other{1-{current} of {total}}}

PaginatedTable with 2 pinned columns

I am a banner
Customers table
Registered business nameAccount IDContact Email
Business display name
Telephone number
Country
Postal code
Actions
Schinner, Roberts and Kilback16204041Aidan_Oberbrunner71@gmail.comBaumbach, Raynor and Jacobs Goyette - Dickinson1-994-264-3213 x08812Eswatini21460-0243
Harris, Schulist and Zulauf53589582Lionel81@gmail.comConn, Hahn and Considine Dickinson - Cole(410) 940-6295Serbia72147-6294
Ullrich and Sons61744462Kiarra.Reinger30@gmail.comMacejkovic Inc Russel LLC840-551-0131 x174Estonia69803-1352
Sawayn, Dare and Breitenberg20266467Lowell4@yahoo.comHilll, Pouros and Rau Marks - Schaden287-647-9732 x020Lebanon97159
Quigley, O'Reilly and Boyle93600365Brendon.Wuckert@gmail.comMorar - Maggio Kovacek, Schuster and Cronin304.571.9127 x971Slovenia62341
Quitzon - Jast70122589Issac_Jerde31@gmail.comKub - Cole Hackett, Hermiston and Dickinson650.373.3633 x0259Equatorial Guinea06707
Douglas, Smith and Beer40788843Cecilia.Herzog@hotmail.comLueilwitz - Roob Casper - Kling(746) 787-2062 x370Venezuela09636-8217
Rohan, Bayer and Daugherty69757165Agustin92@yahoo.comKrajcik Inc Crona, Ritchie and Nader714-369-0301 x175Bhutan52183
Kovacek - Kuphal68635633Bo76@yahoo.comKrajcik Group Hammes, Kovacek and Welch574.468.7858 x0698Reunion55817-8669
Kovacek, Rolfson and Franey80912883Adonis74@yahoo.comMarquardt Inc Schmidt, Robel and Blanda748-384-3964 x54461Liechtenstein92075-3009

Viewing {total,select,0{{current} of {total}}1{{current} of {total}}other{1-{current} of {total}}}

Code

Paginated Table

import { PaginatedTable } from './paginated-table';

const values = Table.OffsetPagination.paginationToResultValues(
  pagination,
  window.navigator.language,
);

<PaginatedTable
  caption="Table caption"
  rows={rows}
  columns={columns}
  fallbackMessage="Fallback message"
>
  <PaginatedTable.OffsetPagination {...pagination}>
    {values.from} - {values.to} of {values.total}
  </PaginatedTable.OffsetPagination>
</PaginatedTable>;

Paginated table with variant option in the table cells

import{ PaginatedTable } from './paginated-table';

const columns: Columns = [
  {
    headerName: 'Registered business name',
    field: 'companyName',
    cellTextVariant: 'captionMedium150',
  },
  {
    headerName: 'Business display name',
    field: 'displayName',
    cellTextVariant: 'captionMedium150',
  },
  {
    headerName: 'Contact Email',
    field: 'emailAddress',
    cellTextVariant: 'captionMedium150',
  },
];

<PaginatedTable
  caption="Table caption"
  rows={rows}
  columns={columns}
  fallbackMessage="Fallback message"
  banner={
    <PaginatedTable.Banner>
      <Text>I am a banner</Text>
    </PaginatedTable.Banner>
  }
>
  <PaginatedTable.OffsetPagination {...pagination}>
    {values.from} - {values.to} of {values.total}
  </PaginatedTable.OffsetPagination>
</Paginated>