Table

Table is a table component equipped with column sorting, row selection, and click event features.

idfirstNamelastNameageemail
0LamarKoepp42Carleton92@yahoo.com
1MargeLabadie24Joanne58@hotmail.com
2MartinaLowe29Glenn55@yahoo.com
3AshlynnJohnson18Robert.Yundt@gmail.com
4VioletRoob27Shannon_Williamson81@yahoo.com
5AgnesHomenick58Edwin53@yahoo.com
6WhitneySawayn50Zula.Barton68@yahoo.com
7MaggieHagenes33Aisha_Wilkinson@yahoo.com
8GingerCollins41Ethel79@gmail.com
9MarielaSwaniawski25Abel_Gutkowski@yahoo.com

Usage

import { Table } from "@yamada-ui/react"
<Table />

Change Variant

idfirstNamelastNameageemail
0BridieMohr59Samuel_Osinski@hotmail.com
1SethPfannerstill50Madeline_Jacobs@yahoo.com
2BernitaMayert33Brice_Harvey87@yahoo.com
3ShaneDicki30Sylvia_OConner-Koepp@hotmail.com
4CollinGlover46Minnie_Thompson-Considine@hotmail.com
5AlvinHeathcote37Kamille_Sporer77@yahoo.com
6RubyLynch25Norma65@gmail.com
7NedraHeidenreich28Willis.Rau43@hotmail.com
8AbelHilll33Edyth.Jast@yahoo.com
9BoydLarkin50Alycia92@gmail.com
idfirstNamelastNameageemail
0BridieMohr59Samuel_Osinski@hotmail.com
1SethPfannerstill50Madeline_Jacobs@yahoo.com
2BernitaMayert33Brice_Harvey87@yahoo.com
3ShaneDicki30Sylvia_OConner-Koepp@hotmail.com
4CollinGlover46Minnie_Thompson-Considine@hotmail.com
5AlvinHeathcote37Kamille_Sporer77@yahoo.com
6RubyLynch25Norma65@gmail.com
7NedraHeidenreich28Willis.Rau43@hotmail.com
8AbelHilll33Edyth.Jast@yahoo.com
9BoydLarkin50Alycia92@gmail.com

Change Size

idfirstNamelastNameageemail
0CruzHaley29Leon33@hotmail.com
1PerryKassulke47Antoinette_Shields26@gmail.com
2SibylProsacco39Raquel.Kovacek41@gmail.com
3AshleeSchimmel63Jeremie.Donnelly@hotmail.com
4TashaBosco26Keira.Toy@gmail.com
5JoyHoeger39Kelly73@hotmail.com
6IgnacioHegmann52Maryann_Parker@gmail.com
7LloydHickle19Terrance.Breitenberg@gmail.com
8VelmaFritsch38Garry_Mraz@gmail.com
9CathyLind34Julian_Lind@hotmail.com
idfirstNamelastNameageemail
0CruzHaley29Leon33@hotmail.com
1PerryKassulke47Antoinette_Shields26@gmail.com
2SibylProsacco39Raquel.Kovacek41@gmail.com
3AshleeSchimmel63Jeremie.Donnelly@hotmail.com
4TashaBosco26Keira.Toy@gmail.com
5JoyHoeger39Kelly73@hotmail.com
6IgnacioHegmann52Maryann_Parker@gmail.com
7LloydHickle19Terrance.Breitenberg@gmail.com
8VelmaFritsch38Garry_Mraz@gmail.com
9CathyLind34Julian_Lind@hotmail.com
idfirstNamelastNameageemail
0CruzHaley29Leon33@hotmail.com
1PerryKassulke47Antoinette_Shields26@gmail.com
2SibylProsacco39Raquel.Kovacek41@gmail.com
3AshleeSchimmel63Jeremie.Donnelly@hotmail.com
4TashaBosco26Keira.Toy@gmail.com
5JoyHoeger39Kelly73@hotmail.com
6IgnacioHegmann52Maryann_Parker@gmail.com
7LloydHickle19Terrance.Breitenberg@gmail.com
8VelmaFritsch38Garry_Mraz@gmail.com
9CathyLind34Julian_Lind@hotmail.com

Change Color Scheme

idfirstNamelastNameageemail
0BeverlyHowe37Johnny70@gmail.com
1GuadalupePaucek28Jammie_Harber73@yahoo.com
2NoahZboncak36Pietro_Mayer@gmail.com
3FaithJenkins20Rachel_Fadel@gmail.com
4LelahKerluke47Allan.Walter-Turcotte13@hotmail.com
5JaniyaBartell43Maria.Kerluke85@gmail.com
6AimeeThompson46Joshua.Orn98@yahoo.com
7TessieLemke65Alton.Sipes74@hotmail.com
8MargieMcGlynn25Trent_Brown@hotmail.com
9IssacWalker33Reagan.Graham69@yahoo.com
idfirstNamelastNameageemail
0BeverlyHowe37Johnny70@gmail.com
1GuadalupePaucek28Jammie_Harber73@yahoo.com
2NoahZboncak36Pietro_Mayer@gmail.com
3FaithJenkins20Rachel_Fadel@gmail.com
4LelahKerluke47Allan.Walter-Turcotte13@hotmail.com
5JaniyaBartell43Maria.Kerluke85@gmail.com
6AimeeThompson46Joshua.Orn98@yahoo.com
7TessieLemke65Alton.Sipes74@hotmail.com
8MargieMcGlynn25Trent_Brown@hotmail.com
9IssacWalker33Reagan.Graham69@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0PercyO'Hara63Ella.Gislason44@yahoo.com
1FernandoAbbott32Matt36@yahoo.com
2HuldaSanford51Micah.Rau@yahoo.com
3ReeceMitchell65Winifred_Robel@hotmail.com
4HudsonCummerata28Mike_Hand@gmail.com
5BurdetteMetz64Kenny_Cruickshank0@yahoo.com
6AlvinaJohnson48Dexter26@yahoo.com
7MorrisStamm60Mozell_Hahn-Barrows@yahoo.com
8JohannaRolfson32Neil_Hagenes@gmail.com
9TristonChristiansen50Stacey.Mraz66@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0MelodyStoltenberg34Kenny55@yahoo.com
1MikeFritsch51Jalen.Huels@yahoo.com
2AnnMcClure41Barney_Hermann38@hotmail.com
3JoesphKohler37Gerardo19@gmail.com
4RaulReilly51Savion72@hotmail.com
5MatteoHyatt48Jamie36@gmail.com
6JessBarrows60Lora65@yahoo.com
7EdHeller47Pamela92@hotmail.com
8DanielleHerzog58Aliza_Kerluke30@hotmail.com
9DeannaKub-Feil55Astrid.Sipes98@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0DaniellaUllrich25Andy66@yahoo.com
1KelliMante50Melba.Haley93@yahoo.com
2JabariSenger54Joshuah.Ward@yahoo.com
3LacyMueller36Neil_Hammes80@yahoo.com
4AndrewRaynor56Ray_Hintz@yahoo.com
5LauraSchmeler34Karson.Gleichner95@hotmail.com
6LavernaDicki37Orie74@hotmail.com
7ChayaJacobi55Tyra_Ratke@hotmail.com
8MayraRobel63Glen.Wiza39@gmail.com
9BennieHilll49Winifred28@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0SkyeCasper64Shaun_Fay66@gmail.com
1NicholausThompson18Irving_DAmore@gmail.com
2AntonetteFeest45Susie4@gmail.com
3RoderickMosciski40Eldora_Ward89@gmail.com
4DannyRohan63Felix.Feeney23@gmail.com
5MarionGrady43Madonna_Heidenreich34@yahoo.com
6RandyBednar51Clement.Parker9@gmail.com
7MeredithAltenwerth43Arlene_Feil70@yahoo.com
8IdaDouglas37Lora.Pfeffer16@hotmail.com
9RoseLegros35Owen.Sawayn91@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0MakaylaOsinski56Mario_Hane@yahoo.com1-940-319-1158adminactive6/1/20253/13/2025
1SunnyTurcotte56Enrique78@yahoo.com618-687-9823 x19128useractive3/9/202512/15/2025
2CarmelaConnelly49Lowell_Crona98@hotmail.com(315) 270-2339 x1543admininactive8/20/20252/20/2026
3LorenzaMoore51Derek.Morissette5@hotmail.com294-682-1825admininactive10/22/202512/17/2025
4FrederickJohns58Rossie.Christiansen@gmail.com344.952.8228 x9308useractive8/7/20252/24/2026
5PalmaKautzer54Rhett5@gmail.com(544) 526-7260 x2152admininactive7/15/20251/11/2026
6ShariWisozk20Nathanael.McLaughlin36@hotmail.com1-260-283-3950useractive8/20/202511/16/2025
7LeonNicolas57Colin.Dooley3@gmail.com827-870-9413 x836useractive8/20/20255/4/2025
8DannieGreen40Jorge61@yahoo.com(653) 834-0829 x17317useractive7/11/20255/26/2025
9EvansWatsica20Kayley53@yahoo.com1-327-330-6219 x1868userinactive9/20/20256/22/2025

Header Groups

iduser
nameageemail
firstNamelastName
0ReneeKessler56Gerard58@gmail.com
1GiovannaWiegand54Jerrold_Kessler16@yahoo.com
2SueKuhic32Blake_Nader91@hotmail.com
3LisaBoyer31Reva.Strosin34@gmail.com
4HeatherGleason41Nathan.Ruecker-Brown@hotmail.com
5LaurianneGoyette38Byron_Ledner@yahoo.com
6DarlaStracke63John.Dach@hotmail.com
7BurleyThiel55Rosario.Aufderhar51@yahoo.com
8AlessiaEmard33Javonte.Gutmann@gmail.com
9AylaOberbrunner21Ernest_Schaden@gmail.com
iduser
nameageemail
firstNamelastName
0AngelBruen31Aaron.Bernhard@gmail.com
1PaxtonRaynor57Oscar69@hotmail.com
2MargieBotsford57Ian23@hotmail.com
3BerthaHansen62Leah.Parker@yahoo.com
4JohnsonKunde27Simeon90@gmail.com
5MargotCasper52Don.Koelpin12@hotmail.com
6GlennHowell61Carmel_Hand23@hotmail.com
7BrookBoyer37Myron36@yahoo.com
8MabelKohler44Rollin_Lehner22@gmail.com
9BerthaWeissnat53Vallie_Kunze62@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

To disable keyboard navigation, set enableKeyboardNavigation to false. The default is true.

idfirstNamelastNameageemail
0JaneWindler39Victor_Sipes73@yahoo.com
1DaisySwift54Tracy_Yundt95@gmail.com
2ScottieZulauf62Jeremie.Hyatt15@hotmail.com
3DenaOrtiz45Max43@yahoo.com
4DanaNolan50Rick_Smith@gmail.com
5JakaylaDouglas25Eduardo.Reilly@hotmail.com
6RobertoCrona45Erin.Monahan@yahoo.com
7MaeWindler57Lyda_Franecki88@gmail.com
8VernaBecker50Kenny54@yahoo.com
9BrandyMueller63Helene29@yahoo.com

Set Initial Focusable Cell

To set the initial focusable cell, set initialFocusableCell to an object with the column and row indices ({ colIndex: number, rowIndex: number }). The default is { colIndex: 0, rowIndex: 0 }.

idfirstNamelastNameageemail
0OraWeber22Kaycee83@gmail.com
1RuthWeissnat28Ava_Monahan@gmail.com
2ArleneNolan54Wade55@yahoo.com
3MaximusLarson56Leslie_Schimmel-Sanford43@gmail.com
4NicholasFadel36Orville_Predovic83@gmail.com
5KellyKuhn33Kimberly_Bergstrom47@yahoo.com
6ChristyBarton23Christian.Mraz@yahoo.com
7TalonKassulke29Kelly16@gmail.com
8OraHeidenreich33Kailyn_Carroll27@yahoo.com
9RaeganRunolfsson40Esther_Reichert34@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0IreneFerry61Janis12@gmail.com
1LucioMoen58Sofia.Pagac@yahoo.com
2VictorReichel31Russell.Koelpin@yahoo.com
3LeahBechtelar64Charlie84@hotmail.com
4GaryGutkowski31Christian39@hotmail.com
5BryantFisher35Gail23@hotmail.com
6LeeWard38Jaime9@gmail.com
7AlphonsoLarkin45Naomi_Durgan@gmail.com
8GeraldineLeuschke48Otis_Davis@gmail.com
9JudyChristiansen39Roslyn63@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0NickolasKertzmann26Tasha82@hotmail.com
1WillHessel31Darius43@gmail.com
2MurielStamm62Victor38@yahoo.com
3MaureenStehr30Leona45@yahoo.com
4ClaireSanford39Russell_Prosacco55@yahoo.com
5UnaSchamberger63Aubree_Doyle10@hotmail.com
6BridgetBeahan46Clark.Altenwerth@yahoo.com
7KirstenWunsch36Peter.Satterfield39@gmail.com
8GregorioLangworth46Stefan.OKon@yahoo.com
9ChetStrosin41Margarete_Kovacek@yahoo.com

Set Default Sorting

To set the default sorting, set defaultSorting to an array of objects with the column id and direction.

idfirstNamelastNameageemail
0LorraineCrooks63Viola.McKenzie-Cronin4@yahoo.com
6MarieUllrich61Elliot.Jaskolski@yahoo.com
7JanetPagac61Debra65@hotmail.com
1JessicaMueller51Clifton.Wehner@yahoo.com
2KellenLedner49Saige_Sipes80@yahoo.com
4RandalBartoletti39Paula.Orn49@hotmail.com
3DallasGibson37Brett_Kutch@hotmail.com
8ShannonProsacco30Teri55@hotmail.com
9RayLeffler-Fahey29Liza.Rolfson@hotmail.com
5JovaniNienow18Troy97@gmail.com

Disable Sorting

To disable sorting, set enableSorting to false. The default is true.

idfirstNamelastNameageemail
0DoyleHaley56Edward_Adams@hotmail.com
1SantiagoDouglas50Noe_Jerde@gmail.com
2OraFarrell31Pearl99@hotmail.com
3RichardOsinski49Bernadette27@yahoo.com
4ArturoOrn21Myrtie32@hotmail.com
5EbonyWilliamson44Rudolph_Mayer40@gmail.com
6MadelineRath33Tyler_Hegmann-Rippin@yahoo.com
7JordonKoss41Tanner_Fay@gmail.com
8ImaniParisian24Katarina_Schimmel28@hotmail.com
9JermaineKerluke60Gretchen_Fisher77@hotmail.com

Disable Multi Sorting

To disable multi sorting, set enableMultiSort to false. The default is true.

idfirstNamelastNameageemail
0FlaviePagac64Adolph48@hotmail.com
1EarleneJacobi31Alma.Jenkins41@gmail.com
2MarlonHerzog61Israel_Lakin95@gmail.com
3CassandreOndricka37Arno85@yahoo.com
4RosinaBergnaum42Randall_Sauer@gmail.com
5AudreyD'Amore55Annamae55@gmail.com
6TheresaLakin37Megan.Hintz33@gmail.com
7OdieHoeger38Marquise_Vandervort@gmail.com
8DominicThiel43Andres19@gmail.com
9HelenKunze21Jesus_Nitzsche-Mann@gmail.com

Set Maximum Sortable Columns

To set the maximum sortable columns, set maxMultiSortColCount to a number.

idfirstNamelastNameageemail
0YazminCollier33April48@gmail.com
1HenriPollich36Clara.Cormier80@gmail.com
2CedricJones37Alisha_Macejkovic-Batz25@yahoo.com
3TyriqueFraney58Josefina21@gmail.com
4HermanLeffler28Raquel11@gmail.com
5AlysaTremblay31Wade34@gmail.com
6IsraelSimonis55Kaleigh.Towne@gmail.com
7ColinKlocko-Daniel49Stacey20@yahoo.com
8AnaisBernier28Danny59@gmail.com
9JavierHeaney21Dana_Hudson@gmail.com

Manual Sorting

To use manual sorting, set manualSorting to true. The default is false.

idfirstNamelastNameageemail
0BerthaWolf-Bradtke58Ian74@yahoo.com
1AngieReinger55Ana_Greenfelder@gmail.com
2SonjaRatke35Stella_Schowalter99@gmail.com
3SergioMante43Harriet11@hotmail.com
4MattRunolfsdottir38Imogene_Bode@hotmail.com
5LucilleTurner62Joany.Langosh63@hotmail.com
6MaryOrn19Emanuel_Emmerich21@gmail.com
7MarianBayer29Nina.Bogan@yahoo.com
8SamuelFisher55Lucia57@hotmail.com
9AliceKeebler48Ali.Grimes45@gmail.com

Change Sorting Toggle

By default, when sorting is enabled, it starts in ascending order. If you want to start in descending order, set sortDescFirst to true. If you want to set it only for specific columns, set sortDescFirst to true for each column in columns. The default is false.

idfirstNamelastNameageemail
0BrownKonopelski21Felipe.Prosacco73@gmail.com
1ClayOndricka28Bella.Hintz99@hotmail.com
2TommieTreutel49Rod67@hotmail.com
3KarlieWolff28Gina96@yahoo.com
4RossCronin58Sabrina_Champlin@hotmail.com
5HarleyPacocha37Tracy_Cassin@yahoo.com
6SalvatoreGulgowski36Dedric61@hotmail.com
7KatherineKassulke32Amie.Waelchi85@hotmail.com
8ReganCummings26Amelia89@hotmail.com
9JaylenErnser56Sherry_Beier@gmail.com

Control Sorting

idfirstNamelastNameageemail
0LyndaFrami37Jo.Nikolaus@gmail.com
1GerardBoyer52Randall4@hotmail.com
2AntwonCorwin22Juan78@hotmail.com
3KarlaRomaguera25Margarette.Kulas90@yahoo.com
4RandalRippin24Sheridan_Armstrong38@hotmail.com
5HeloiseFisher62Kelly95@gmail.com
6FloraGibson19Debbie.Hoppe-Von47@hotmail.com
7DoloresShanahan18Emmanuel48@gmail.com
8JenniferGrady30Esperanza20@yahoo.com
9WillardQuigley50Orion.Schneider50@yahoo.com

Enable Pagination

To enable pagination, set enablePagination to true and set the component that controls the pagination to header or footer. The default is false.

idfirstNamelastNameageemail
0KatieKunde19Jonathan.Hand@gmail.com
1BrentHeaney31Esta_Bednar54@gmail.com
2ErickaJast44Sonja_McDermott56@hotmail.com
3OliviaProhaska19Johann48@gmail.com
4HeatherDaniel29Edmond.Gerlach13@yahoo.com
5AaronHirthe31Terrell.Little65@gmail.com
6LynnJacobi63Eva_Gislason37@hotmail.com
7DanykaDaugherty-Keebler21Olive.Christiansen74@hotmail.com
8BonnieHoppe-Ryan33Alfreda_Batz@yahoo.com
9LeoGottlieb41Kristina.Farrell-Homenick@hotmail.com
10KayaFeest53Brent.White14@yahoo.com
11MyahBartell53Freeman79@yahoo.com
12RichardO'Conner47Todd.Bradtke@yahoo.com
13WalterTowne23Calista.Considine@gmail.com
14RossieRippin43Verda76@yahoo.com
15ArleneStrosin53Dana.Graham74@yahoo.com
16EwaldMcCullough20Santino15@yahoo.com
17KellyO'Hara50Francis71@gmail.com
18OtisSwift18Shirley_Torphy@hotmail.com
19ClarissaTremblay47Amos_Schulist14@hotmail.com

Set Default Page Index and Page Size

To set the default page index and page size, set defaultPagination to an object with the pageIndex and pageSize.

idfirstNamelastNameageemail
10PhyllisKreiger26Kameron88@yahoo.com
11DougConnelly23Shelia_Nitzsche70@yahoo.com
12CyrilMurray20Mable5@hotmail.com
13FabianLeuschke23Scotty.Rogahn@hotmail.com
14ClaraDouglas59Jimmie.Tillman@gmail.com
15ShermanRuecker60Eva_Nader@hotmail.com
16OlafZieme40Leon_Anderson65@hotmail.com
17GrantFraney44Arne.Christiansen@yahoo.com
18ByronHermann39Owen_Keeling@yahoo.com
19DamonHagenes37Mary.Friesen86@hotmail.com

Use Manual Pagination

To use manual pagination, set manualPagination to true. The default is false.

idfirstNamelastNameageemail
0BernadineSenger28Nikita.Zemlak90@gmail.com
1GeoffreyCarroll44Adeline.Goyette@hotmail.com
2HarmonySchimmel60Lenna_Oberbrunner@hotmail.com
3OctaviaKuhn43Zetta28@gmail.com
4FeliciaRosenbaum21Jana_Bergnaum@hotmail.com
5SherwoodWard26Mandy_Price@yahoo.com
6JamieAnkunding20Fausto.Konopelski@yahoo.com
7IsabelleNienow43Carl_Boyle87@yahoo.com
8EdmondFriesen62Jennifer_Rosenbaum90@gmail.com
9DawsonRenner29Callie52@gmail.com
10WinifredBergnaum33Lacy18@gmail.com
11WilburnBayer18Gilberto.Bartell@hotmail.com
12PercivalGrady43Nicholas.OKon75@yahoo.com
13LyricEmard24Graham26@gmail.com
14RaheemDooley36Sonya23@yahoo.com
15JuanJones45Geoffrey_Jacobs48@yahoo.com
16BryceKuhlman28Pearline0@gmail.com
17MonicaKlocko20Walter.Price@yahoo.com
18AlisaSchaefer59Quinten86@hotmail.com
19OliveHodkiewicz27Hollie.Nienow91@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0RosamondMetz21Thomas37@hotmail.com
1DeweyLockman53Myrtice.Gleichner@yahoo.com
2LilaHansen57Retha_Brekke6@gmail.com
3NarcisoZulauf26Kellie.Herman37@gmail.com
4ColleenHaley-Donnelly48Angelica.Cremin@hotmail.com
5MathildeBernhard63Florence32@yahoo.com
6LeticiaKing47Murl_Klein63@yahoo.com
7CaroleHegmann23Adrain_Krajcik96@hotmail.com
8IanCummerata26Alex_Wyman@gmail.com
9LatoyaStroman50Tanya86@yahoo.com
10GarfieldKemmer36Alba_Roob24@hotmail.com
11LucyErnser54Shawna_Prosacco@gmail.com
12KathyBashirian49Armando11@hotmail.com
13MeganeGraham54Fernando_Bartell@hotmail.com
14ShellySchuster-Reichert44Wilma69@yahoo.com
15KristofferJenkins29Ruthe_Wolff0@gmail.com
16BenedictMayert28Myron.Ruecker@yahoo.com
17NinaBrakus41Daniel63@gmail.com
18MargaritaWolf42Ora_McCullough@yahoo.com
19BrendaWeissnat57Sharon44@hotmail.com

Enable Row Selection

To enable row selection, set enableRowSelection to true. The default is false.

idfirstNamelastNameageemail
0MartySchaden41Chandler35@gmail.com
1MyaAufderhar38Haskell_Steuber@hotmail.com
2DougLowe50Dominic73@gmail.com
3VioletCremin54Thelma_Hudson@hotmail.com
4RonnieHand24Guadalupe.Goldner@hotmail.com
5HowardJohns35Alberta_Rodriguez91@yahoo.com
6RyleyAbshire49Nathan31@hotmail.com
7AntoniettaCrist18Ed.Stehr70@hotmail.com
8MyriamFadel-Franecki57Delphia_Turner@yahoo.com
9BrianneMayer50Stella_Thompson60@yahoo.com

Set Default Selected Rows

To set the default selected rows, set defaultRowSelection to an object with the index of the data as the key.

idfirstNamelastNameageemail
0JaniceDibbert23Elissa31@yahoo.com
1WaltonBraun21Alton.Gleichner71@hotmail.com
2JaclynStracke60Jacynthe.Bechtelar96@gmail.com
3LeticiaCorkery42Joey_Anderson@hotmail.com
4BradMaggio30Ira.Harris46@hotmail.com
5TracyBauch44Wilburn.Marvin@yahoo.com
6SylviaPredovic20Isabelle35@yahoo.com
7NewellGraham30Velma19@hotmail.com
8BernardoStreich30Lewis_Lehner37@hotmail.com
9ZacheryHowell18Devan1@hotmail.com

Enable Row Selection on Click

To enable row selection on click, set selectOnClickRow to true. The default is false.

idfirstNamelastNameageemail
0SadieJones25Aryanna_DuBuque-Goldner@yahoo.com
1ErnestBlock63Toney16@gmail.com
2EugeniaVolkman36Wilbert.Murphy29@hotmail.com
3AlbinShields22Velma_Marquardt@gmail.com
4AmbroseKing-Moen44Audrey.Roberts49@hotmail.com
5EllenKoelpin-Pacocha27Holly.Reichert64@gmail.com
6JuneKozey32Elisa33@yahoo.com
7JakeLueilwitz50Doug.Cole@hotmail.com
8AmberDeckow35Oral27@gmail.com
9HoracioKutch47Zita_Stanton@yahoo.com

Hide Checkbox

To hide the checkbox, set withCheckbox to false. The default is true.

idfirstNamelastNameageemail
0LeahHegmann24Courtney_Mann@gmail.com
1KristopherFisher52Harry_Rosenbaum@yahoo.com
2GarryWhite49Roberta.Balistreri@gmail.com
3HollyDoyle28Alejandro24@gmail.com
4GuillermoStiedemann65Kacie34@gmail.com
5JulianLind35Johnathan_Anderson64@hotmail.com
6RasheedGoldner62Earlene33@yahoo.com
7TressaBernhard65Rochelle52@hotmail.com
8ColbyMcDermott22Allie85@hotmail.com
9MerlinHayes22Zechariah.Howe52@hotmail.com

Disable Row

To disable a row, set enableRowSelection to a function that returns a boolean.

idfirstNamelastNameageemail
0JuanaStokes27Evelyn24@gmail.com
1BernadetteLehner54Aaron31@hotmail.com
2AudreySchinner22Martin.Schmitt80@gmail.com
3FlorineKeebler46Juana.Turcotte95@yahoo.com
4RicardoAbshire44Elijah91@hotmail.com
5DelfinaGreen62Delores_Strosin@gmail.com
6OswaldAbbott56Juan92@yahoo.com
7FranciscoRutherford34Julius_Haley7@hotmail.com
8SabrinaBoyer64Tanya60@gmail.com
9KeshawnJohnston30Nichole.Ferry89@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0AnneMraz28Amos_Emard42@gmail.com
1JadenWill55Taurean_Huel@gmail.com
2IdellCummings58Hugh.Orn@yahoo.com
3KaitlynReilly56Leslie_Marquardt8@hotmail.com
4VivianFay53Justice71@yahoo.com
5FlorenceKeeling65Kimberly_Kulas@hotmail.com
6StanleyLakin57Ginger.Lakin31@hotmail.com
7KarlGreenholt26Sammie7@yahoo.com
8DixieGoodwin43Salvador_White74@hotmail.com
9AngelinaJacobson29Jacob3@gmail.com

Use Filter

To use a filter, set the component that controls the filter to header or footer.

idfirstNamelastNameageemail
0JoanyKoelpin56Emilio49@yahoo.com
1MatthewDurgan59Joanne.Waters23@gmail.com
2TanyaGleichner47Morris_Greenfelder76@yahoo.com
3ConstanceWitting41Otis81@yahoo.com
4OscarHessel55Erica.Thiel@hotmail.com
5JacksonVandervort58Allen_Walsh96@gmail.com
6FrancisEbert61Junius.Hegmann@hotmail.com
7KamronSchroeder41Clyde41@yahoo.com
8SageMonahan53Patsy.Durgan36@yahoo.com
9MinnieWindler35Jeffery_Kutch12@hotmail.com

Set Default Filter

To set the default filter, set defaultColumnFilters to an array of objects with the id and value of the column to filter.

idfirstNamelastNameageemail
0JenningsHeller57Albin.Towne40@gmail.com
3BrandiVandervort39Rodolfo.Parker39@gmail.com
4OrlandoMcClure24Sherman_Kemmer@gmail.com
6EleanorReilly60Stacy_Willms@gmail.com
9KorbinMurazik58Joesph_Wisozk-Luettgen@gmail.com

Control Filter

idfirstNamelastNameageemail
0NoeBarton26Christopher_Fritsch49@yahoo.com
1HomerSmith54Eino_Auer30@hotmail.com
2DorothyNader47Wilson20@yahoo.com
3KeyonJohnson37Christy_Ratke@gmail.com
4AbagailBrekke22Rollin40@gmail.com
5LeslyDietrich38Justin.Hand49@hotmail.com
6SimonBreitenberg19Kenyatta41@gmail.com
7KobyTorphy-Fay59Kianna_Vandervort4@gmail.com
8LanceProhaska20Jermaine.Prosacco89@hotmail.com
9MonteRaynor61Cindy52@yahoo.com

Enable Column Resizing

To enable column resizing, set enableColumnResizing to true. The default is false.

id
firstName
lastName
age
email
0LionelTowne-Johnson32Adam.Little1@hotmail.com
1BennyDach20Dianne86@gmail.com
2DominicBosco33Alexandra_Labadie@yahoo.com
3AndreRomaguera42Orie31@gmail.com
4FeltonBednar30Willie80@hotmail.com
5ClarabelleKing30Lydia1@yahoo.com
6HenryMayert30Ora_Will69@gmail.com
7IrvinPacocha51Kari11@gmail.com
8ClotildeFritsch23Sylvester28@hotmail.com
9MoniqueHudson39Eileen40@hotmail.com

Change Column Resizing Method

By default, the column resizing timing is changed while dragging. If you want to change it when the drag is finished, set columnResizeMode to "onEnd".

id
firstName
lastName
age
email
0KelliUpton43Ashly23@yahoo.com
1NickToy25Darryl_Bergstrom@gmail.com
2KarlaBreitenberg19Buster65@yahoo.com
3RosemaryStreich33Alison.Howe@yahoo.com
4ThoraGutkowski63Bobby64@gmail.com
5PattiFadel63Clint_Feeney73@gmail.com
6KurtCarroll46Craig.Rippin93@yahoo.com
7KristenWatsica23Lynn_Abshire27@hotmail.com
8CourtneyHirthe22Leila.Hackett87@yahoo.com
9SophieSenger25Hermann.Bergstrom56@gmail.com

Uses Components & Hooks

  • Checkbox
  • Icon
  • NativeTable

Props

Accessibility

The Table follows the WAI-ARIA - Table Pattern for accessibility.

Setting an aria-label on the tableProps allows it to be read by screen readers.

const data = useMemo<Data[]>(() => createTableData(), [])

return (
  <Table
    columns={columns}
    data={data}
    tableProps={{ "aria-label": "User list" }}
  />
)

Keyboard Navigation

KeyDescriptionState
ArrowLeftMoves focus one cell to the left. If focus is on the left-most cell in the row, focus does not move.-
ArrowRightMoves focus one cell to the right. If focus is on the right-most cell in the row, focus does not move.-
ArrowUpMoves focus one cell Up. If focus is on the top cell in the column, focus does not move.-
ArrowDownMoves focus one cell down. If focus is on the bottom cell in the column, focus does not move.-
HomeMoves focus to the first cell in the row that contains focus.-
EndMoves focus to the last cell in the row that contains focus.-
PageUpMoves to the previous page.enablePagination={true}
PageDownMoves to the next page.enablePagination={true}

ARIA Roles and Attributes

ComponentRole and AttributesUsage
NativeTable.Rootrole="grid"Indicates that the element is a grid.
aria-rowcountIndicates the total number of rows in the table.
aria-colcountIndicates the total number of columns in the table.
aria-multiselectableSet to "true" if enableRowSelection is set.
NativeTable.Theadrole="rowgroup"Indicates that the element is a rowgroup.
NativeTable.Trrole="row"Indicates that the element is a row.
aria-rowindexIndicates which row the element is in the table.
aria-disabledWhen enableRowSelection is provided as a function, set "true" for rows that return false.
aria-selectedSet to "true" if the row is selected, "false" if not selected.
NativeTable.Throle="columnheader"Indicates that the element is a columnheader.
aria-rowindexIndicates which row the element is in the table.
aria-colindexIndicates which column the element is in the table.
aria-sortSet to "ascending" for ascending order, "descending" for descending order, and "none" if no order is specified.
NativeTable.Tbodyrole="rowgroup"Indicates that the element is a rowgroup.
NativeTable.Tdrole="gridcell"Indicates that the element is a gridcell.
aria-colindexIndicates which column the element is in the table.
aria-rowindexIndicates which row the element is in the table.
NativeTable.Tfootrole="rowgroup"Indicates that the element is a rowgroup.
Checkboxaria-labelSet to "Select all rows" for the header, and "Select row" for body rows.
SortingIconaria-labelSet to "Sort ascending" for ascending order, "Sort descending" for descending order, and "Clear sorting" when no order is specified.