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
Pfeffer, Auer and Balistreri76764269Emerson.Grant-Rowe@gmail.comAdams, VonRueden and Wiza Quigley, Dicki and Nienow400.204.7358 x969Dominican Republic62299-2495
Rodriguez - Torphy42296499Esteban41@hotmail.comWaters LLC Hegmann, Kuhn and Ritchie(252) 459-8633 x58648Slovenia22297
Block, Jacobson and Braun28958649Toney46@gmail.comAuer LLC Gottlieb - Armstrong1-793-653-3690 x40159Estonia43988-0943
O'Keefe Group15886967Verona.Cassin50@hotmail.comSchultz - Schuster Thiel - Cremin(306) 484-2840 x63434France50791
Beer, Miller and Wiza68863089Emiliano91@hotmail.comGleason, Witting and Hane Ferry Inc805-386-7100 x473Reunion70777
Mante, Feeney and Lowe30931781Lamar_Rempel@hotmail.comOberbrunner, Bashirian and Braun Bayer LLC874.912.2316 x31205Indonesia40737
Hessel - Turner18878588Juston25@hotmail.comWhite, Nienow and Heaney Rice Group(702) 710-0337 x4882Mali54632
Littel and Sons51702323Abdul.Nikolaus@gmail.comBartell - Marks Wiegand - Tremblay650.561.9361 x3176Comoros13210
Jacobi, Hilll and Baumbach81069144Marguerite_Osinski@yahoo.comSipes - Quitzon Sawayn, Schaden and Windler(649) 918-7506 x81381South Sudan22658-6944
Mayert and Sons59232461Chesley.Koepp89@gmail.comGleason LLC Boehm - Watsica1-351-453-5851 x0135Bolivia20922-1875

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
Pfeffer, Auer and Balistreri76764269Emerson.Grant-Rowe@gmail.comAdams, VonRueden and Wiza Quigley, Dicki and Nienow400.204.7358 x969Dominican Republic62299-2495
Rodriguez - Torphy42296499Esteban41@hotmail.comWaters LLC Hegmann, Kuhn and Ritchie(252) 459-8633 x58648Slovenia22297
Block, Jacobson and Braun28958649Toney46@gmail.comAuer LLC Gottlieb - Armstrong1-793-653-3690 x40159Estonia43988-0943
O'Keefe Group15886967Verona.Cassin50@hotmail.comSchultz - Schuster Thiel - Cremin(306) 484-2840 x63434France50791
Beer, Miller and Wiza68863089Emiliano91@hotmail.comGleason, Witting and Hane Ferry Inc805-386-7100 x473Reunion70777
Mante, Feeney and Lowe30931781Lamar_Rempel@hotmail.comOberbrunner, Bashirian and Braun Bayer LLC874.912.2316 x31205Indonesia40737
Hessel - Turner18878588Juston25@hotmail.comWhite, Nienow and Heaney Rice Group(702) 710-0337 x4882Mali54632
Littel and Sons51702323Abdul.Nikolaus@gmail.comBartell - Marks Wiegand - Tremblay650.561.9361 x3176Comoros13210
Jacobi, Hilll and Baumbach81069144Marguerite_Osinski@yahoo.comSipes - Quitzon Sawayn, Schaden and Windler(649) 918-7506 x81381South Sudan22658-6944
Mayert and Sons59232461Chesley.Koepp89@gmail.comGleason LLC Boehm - Watsica1-351-453-5851 x0135Bolivia20922-1875

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>