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
Berge - Hessel38949920Edmond59@yahoo.comMohr - Parisian Kshlerin, Kshlerin and Kuphal796.957.9724Hong Kong30582-3347
Blanda and Sons03177335Darby_Feest62@yahoo.comFlatley, Casper and Batz Miller - McGlynn(890) 256-7498 x4008Argentina05265
O'Reilly, Doyle and Donnelly90915262Elyssa_Walter91@hotmail.comJohnston - Frami Champlin, Blanda and Reilly1-466-648-6579 x7086Italy83741-1191
Wilderman and Sons73202761Gordon.Walter-Jenkins10@yahoo.comGrimes and Sons Reynolds Inc(503) 700-8487 x83759Uzbekistan28331-9861
Murray - Halvorson51264959Tania_Ankunding@gmail.comSchulist Group Stracke Inc(598) 401-8646Spain77537-6155
Morissette Inc42417337Janet5@hotmail.comKlein, Flatley and Beatty Jones, Daugherty and Brown959-323-0791 x09547Angola67362
Pfannerstill, Schinner and Zemlak27213999Kiarra.Waelchi@hotmail.comHilll - Schuster Frami, Flatley and Hartmann597-207-4607 x834Vietnam13157-9245
Stark and Sons13211317Theodore37@gmail.comPollich and Sons Bartell, Bartoletti and Reichert904.957.5552Brazil90675-2031
Heaney - Trantow17447947Vicente.Volkman@gmail.comBartell - Powlowski Heidenreich LLC677.426.0403Trinidad and Tobago36844
Wisoky, Murazik and Haley34359774Anabel18@gmail.comSenger and Sons Bechtelar - Bednar822.908.0125 x71648Micronesia82133

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
Berge - Hessel38949920Edmond59@yahoo.comMohr - Parisian Kshlerin, Kshlerin and Kuphal796.957.9724Hong Kong30582-3347
Blanda and Sons03177335Darby_Feest62@yahoo.comFlatley, Casper and Batz Miller - McGlynn(890) 256-7498 x4008Argentina05265
O'Reilly, Doyle and Donnelly90915262Elyssa_Walter91@hotmail.comJohnston - Frami Champlin, Blanda and Reilly1-466-648-6579 x7086Italy83741-1191
Wilderman and Sons73202761Gordon.Walter-Jenkins10@yahoo.comGrimes and Sons Reynolds Inc(503) 700-8487 x83759Uzbekistan28331-9861
Murray - Halvorson51264959Tania_Ankunding@gmail.comSchulist Group Stracke Inc(598) 401-8646Spain77537-6155
Morissette Inc42417337Janet5@hotmail.comKlein, Flatley and Beatty Jones, Daugherty and Brown959-323-0791 x09547Angola67362
Pfannerstill, Schinner and Zemlak27213999Kiarra.Waelchi@hotmail.comHilll - Schuster Frami, Flatley and Hartmann597-207-4607 x834Vietnam13157-9245
Stark and Sons13211317Theodore37@gmail.comPollich and Sons Bartell, Bartoletti and Reichert904.957.5552Brazil90675-2031
Heaney - Trantow17447947Vicente.Volkman@gmail.comBartell - Powlowski Heidenreich LLC677.426.0403Trinidad and Tobago36844
Wisoky, Murazik and Haley34359774Anabel18@gmail.comSenger and Sons Bechtelar - Bednar822.908.0125 x71648Micronesia82133

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>