BumblebeeBumblebee

Paginated table

Live demo

PaginatedTable

I am an info banner
Customers table
Registered business nameAccount ID
Contact Email
Business display name
Telephone number
Country
Postal code
Actions
McCullough - Bradtke87836524Blaze.Deckow34@yahoo.comMohr - Olson Kutch - Willms1-245-633-5875 x7441Senegal01812
Lind, Breitenberg and Rice84934261Elza70@hotmail.comGutkowski - Jones Koch - Gottlieb1-345-312-1579 x68438Sudan42926
Kilback LLC21401568Remington_Hudson-McCullough@hotmail.comBlanda LLC Konopelski, Kuhn and Volkman(444) 637-9227 x38379Georgia40985
Jacobson, Zboncak and Metz88935979Ethelyn.Schimmel79@hotmail.comLang - Carroll Bashirian - Rempel899-901-2850 x111Kiribati28440
Kessler - Lebsack76200837Garrick_Schneider6@gmail.comBosco - Feeney Lakin, Quitzon and McCullough(605) 665-4949 x7149Kenya17900-0408
Skiles and Sons62675558Novella.Shields34@yahoo.comWatsica - Lindgren Raynor - Stark706.729.2590San Marino84391-0369
Gibson - Harvey56752832Giles.Cruickshank@hotmail.comHeller - Welch Breitenberg LLC(465) 570-7448 x668Virgin Islands, U.S.06277-9541
Gutmann, Schneider and Lemke52477485Jerry.Collier@gmail.comHarber - Borer Bayer Group(938) 928-6077 x969Liberia09656-5421
Prosacco, Williamson and Spinka04830214Berenice_Price@hotmail.comHomenick - Bartell Prohaska - Stanton(330) 903-7078Gabon09278-1264
Jakubowski - Bauch07582811Leatha_Green55@gmail.comHamill, Collier and Rodriguez Jacobi and Sons690.558.1228Botswana28611

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

PaginatedTable with 2 pinned columns

I am an alert banner
Customers table
Registered business nameAccount IDContact Email
Business display name
Telephone number
Country
Postal code
Actions
McCullough - Bradtke87836524Blaze.Deckow34@yahoo.comMohr - Olson Kutch - Willms1-245-633-5875 x7441Senegal01812
Lind, Breitenberg and Rice84934261Elza70@hotmail.comGutkowski - Jones Koch - Gottlieb1-345-312-1579 x68438Sudan42926
Kilback LLC21401568Remington_Hudson-McCullough@hotmail.comBlanda LLC Konopelski, Kuhn and Volkman(444) 637-9227 x38379Georgia40985
Jacobson, Zboncak and Metz88935979Ethelyn.Schimmel79@hotmail.comLang - Carroll Bashirian - Rempel899-901-2850 x111Kiribati28440
Kessler - Lebsack76200837Garrick_Schneider6@gmail.comBosco - Feeney Lakin, Quitzon and McCullough(605) 665-4949 x7149Kenya17900-0408
Skiles and Sons62675558Novella.Shields34@yahoo.comWatsica - Lindgren Raynor - Stark706.729.2590San Marino84391-0369
Gibson - Harvey56752832Giles.Cruickshank@hotmail.comHeller - Welch Breitenberg LLC(465) 570-7448 x668Virgin Islands, U.S.06277-9541
Gutmann, Schneider and Lemke52477485Jerry.Collier@gmail.comHarber - Borer Bayer Group(938) 928-6077 x969Liberia09656-5421
Prosacco, Williamson and Spinka04830214Berenice_Price@hotmail.comHomenick - Bartell Prohaska - Stanton(330) 903-7078Gabon09278-1264
Jakubowski - Bauch07582811Leatha_Green55@gmail.comHamill, Collier and Rodriguez Jacobi and Sons690.558.1228Botswana28611

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 variant="info">
      <Text>I am a banner</Text>
    </PaginatedTable.Banner>
  }
>
  <PaginatedTable.OffsetPagination {...pagination}>
    {values.from} - {values.to} of {values.total}
  </PaginatedTable.OffsetPagination>
</Paginated>