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
Thiel, Cartwright and Cormier93415116Joy_Dach@gmail.comSteuber - Corkery Christiansen LLC568-892-6953 x520South Africa53478-3643
Abshire - Champlin25308920Jessie70@yahoo.comKiehn - Quitzon Shanahan, Nicolas and Rosenbaum(722) 592-9663 x8279Eritrea22975-3103
Kulas - Koss11779589Bridgette_Langworth@hotmail.comBraun LLC Friesen LLC(410) 816-5178 x50104Aruba06423
Nicolas LLC70487800Jeffery35@hotmail.comPowlowski, Jacobson and Glover Durgan Group(824) 303-2942 x810Estonia54736-7588
Kulas - Huel82906006Libbie49@hotmail.comFunk - Lesch Mante, Cummerata and Johnston(442) 890-9428 x1167Saint Pierre and Miquelon42537-0699
Schmidt and Sons57550921Sophia22@hotmail.comLabadie - Collins Monahan - Kulas564.261.9545 x0423France26441
Schumm, Stoltenberg and Jacobi55588231Yadira_Marquardt-Ullrich@hotmail.comGleason, Treutel and Pagac Wiza Group515-851-5607 x7114Djibouti16360
Langosh, Lueilwitz and Wisozk69844072Christy.Reichel34@hotmail.comRodriguez Group Hegmann and Sons910.270.5729 x3564Timor-Leste18189-6021
Becker - Osinski03392998Nels_Smith12@hotmail.comFeest, Kerluke and Kshlerin McClure - Aufderhar(329) 449-9479 x08868Benin52090
Wiza, Mante and Stanton65614144Dillan35@hotmail.comDouglas Inc Koss Inc(974) 787-0392Tajikistan65081

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
Thiel, Cartwright and Cormier93415116Joy_Dach@gmail.comSteuber - Corkery Christiansen LLC568-892-6953 x520South Africa53478-3643
Abshire - Champlin25308920Jessie70@yahoo.comKiehn - Quitzon Shanahan, Nicolas and Rosenbaum(722) 592-9663 x8279Eritrea22975-3103
Kulas - Koss11779589Bridgette_Langworth@hotmail.comBraun LLC Friesen LLC(410) 816-5178 x50104Aruba06423
Nicolas LLC70487800Jeffery35@hotmail.comPowlowski, Jacobson and Glover Durgan Group(824) 303-2942 x810Estonia54736-7588
Kulas - Huel82906006Libbie49@hotmail.comFunk - Lesch Mante, Cummerata and Johnston(442) 890-9428 x1167Saint Pierre and Miquelon42537-0699
Schmidt and Sons57550921Sophia22@hotmail.comLabadie - Collins Monahan - Kulas564.261.9545 x0423France26441
Schumm, Stoltenberg and Jacobi55588231Yadira_Marquardt-Ullrich@hotmail.comGleason, Treutel and Pagac Wiza Group515-851-5607 x7114Djibouti16360
Langosh, Lueilwitz and Wisozk69844072Christy.Reichel34@hotmail.comRodriguez Group Hegmann and Sons910.270.5729 x3564Timor-Leste18189-6021
Becker - Osinski03392998Nels_Smith12@hotmail.comFeest, Kerluke and Kshlerin McClure - Aufderhar(329) 449-9479 x08868Benin52090
Wiza, Mante and Stanton65614144Dillan35@hotmail.comDouglas Inc Koss Inc(974) 787-0392Tajikistan65081

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>