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
Sporer LLC00542048Halle.Cummerata15@hotmail.comRutherford, Braun and Armstrong Littel, Hessel and Dooley612.572.4527Namibia27278-8708
Witting and Sons36831536Humberto.Batz@hotmail.comDoyle - Hansen DuBuque, Ruecker and Kemmer987-649-5263Tanzania85499
Denesik Inc69356354Asha46@yahoo.comPollich and Sons Stokes - Adams(251) 333-1938Seychelles11212
Lakin and Sons73163236Jessie36@gmail.comJacobs, Hayes and Wisozk Hane, Wuckert and Stracke(772) 585-1135Wallis and Futuna27642-5022
Mertz - Kessler85268272Gregoria47@yahoo.comBlock and Sons Jast Group1-741-235-4259Madagascar37584
Frami LLC49291621Ellsworth_Abshire45@yahoo.comLedner, Kassulke and Gibson Hand Inc(778) 467-5758 x07744Grenada34918
Bartell LLC69929214Cicero71@gmail.comRodriguez, Parker and Zboncak Mann, Wunsch and Ferry(547) 967-2962 x9072Turkey38917
Mayer, Fritsch and Kiehn71508402Flo_Bins-Huel@gmail.comVonRueden - Lindgren Bernhard - Conroy785-462-8881 x02176Haiti31330
Morar, Roob and Kozey41081143Leo.Pacocha52@gmail.comFlatley - McDermott Carroll, Satterfield and Bahringer(882) 776-2512Turks and Caicos Islands09520
Olson - Friesen76896157Alta30@hotmail.comO'Kon LLC Rice LLC(613) 607-2492Albania80831-3446

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
Sporer LLC00542048Halle.Cummerata15@hotmail.comRutherford, Braun and Armstrong Littel, Hessel and Dooley612.572.4527Namibia27278-8708
Witting and Sons36831536Humberto.Batz@hotmail.comDoyle - Hansen DuBuque, Ruecker and Kemmer987-649-5263Tanzania85499
Denesik Inc69356354Asha46@yahoo.comPollich and Sons Stokes - Adams(251) 333-1938Seychelles11212
Lakin and Sons73163236Jessie36@gmail.comJacobs, Hayes and Wisozk Hane, Wuckert and Stracke(772) 585-1135Wallis and Futuna27642-5022
Mertz - Kessler85268272Gregoria47@yahoo.comBlock and Sons Jast Group1-741-235-4259Madagascar37584
Frami LLC49291621Ellsworth_Abshire45@yahoo.comLedner, Kassulke and Gibson Hand Inc(778) 467-5758 x07744Grenada34918
Bartell LLC69929214Cicero71@gmail.comRodriguez, Parker and Zboncak Mann, Wunsch and Ferry(547) 967-2962 x9072Turkey38917
Mayer, Fritsch and Kiehn71508402Flo_Bins-Huel@gmail.comVonRueden - Lindgren Bernhard - Conroy785-462-8881 x02176Haiti31330
Morar, Roob and Kozey41081143Leo.Pacocha52@gmail.comFlatley - McDermott Carroll, Satterfield and Bahringer(882) 776-2512Turks and Caicos Islands09520
Olson - Friesen76896157Alta30@hotmail.comO'Kon LLC Rice LLC(613) 607-2492Albania80831-3446

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>