Table

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

idfirstNamelastNameageemail
0DominickDeckow63Casey.Bartell@hotmail.com
1NinaGorczany51Vincent.Torp9@gmail.com
2EnolaKunde51Connie5@yahoo.com
3TinaHand32Ginger.Sipes@hotmail.com
4DonnaFeeney32Emmanuel3@gmail.com
5GregKeebler47Lana.Jaskolski43@gmail.com
6StephaniaSmith49Henry24@yahoo.com
7MarjorieLangworth20Vickie76@gmail.com
8VictorTromp52Moses_Murazik@gmail.com
9LilaReynolds49Cathryn_Price@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0TayaGerhold33Reid_Runte@gmail.com
1RevaRoberts37Austin86@gmail.com
2SabrynaDeckow63Greg_Harris-Bahringer58@hotmail.com
3RosellaHudson32Rosalind7@yahoo.com
4MelanieHarris53Antonina4@yahoo.com
5WallaceRunolfsdottir18Alessandro79@yahoo.com
6GinaFadel-O'Conner29Gudrun56@yahoo.com
7LornaGusikowski31Nat_Skiles16@gmail.com
8LelaDaugherty40Richard.Rosenbaum12@yahoo.com
9AlexisLubowitz53Emelia.Ryan50@gmail.com
idfirstNamelastNameageemail
0TayaGerhold33Reid_Runte@gmail.com
1RevaRoberts37Austin86@gmail.com
2SabrynaDeckow63Greg_Harris-Bahringer58@hotmail.com
3RosellaHudson32Rosalind7@yahoo.com
4MelanieHarris53Antonina4@yahoo.com
5WallaceRunolfsdottir18Alessandro79@yahoo.com
6GinaFadel-O'Conner29Gudrun56@yahoo.com
7LornaGusikowski31Nat_Skiles16@gmail.com
8LelaDaugherty40Richard.Rosenbaum12@yahoo.com
9AlexisLubowitz53Emelia.Ryan50@gmail.com

Change Size

idfirstNamelastNameageemail
0LorraineHeathcote64Ottilie_Zulauf@yahoo.com
1BrennaShields53Maryann_Labadie5@hotmail.com
2LillianCrist36Olivia55@yahoo.com
3EltaDooley44Wade29@gmail.com
4MargueritePowlowski28Kathryne.Veum@gmail.com
5LuciousSmith40Ismael57@gmail.com
6RoselynDavis-Franecki24Vincent19@yahoo.com
7RoseCassin49Angelica50@yahoo.com
8BrittanySchneider35Litzy12@hotmail.com
9MeghanWolf48Olaf.Stehr@hotmail.com
idfirstNamelastNameageemail
0LorraineHeathcote64Ottilie_Zulauf@yahoo.com
1BrennaShields53Maryann_Labadie5@hotmail.com
2LillianCrist36Olivia55@yahoo.com
3EltaDooley44Wade29@gmail.com
4MargueritePowlowski28Kathryne.Veum@gmail.com
5LuciousSmith40Ismael57@gmail.com
6RoselynDavis-Franecki24Vincent19@yahoo.com
7RoseCassin49Angelica50@yahoo.com
8BrittanySchneider35Litzy12@hotmail.com
9MeghanWolf48Olaf.Stehr@hotmail.com
idfirstNamelastNameageemail
0LorraineHeathcote64Ottilie_Zulauf@yahoo.com
1BrennaShields53Maryann_Labadie5@hotmail.com
2LillianCrist36Olivia55@yahoo.com
3EltaDooley44Wade29@gmail.com
4MargueritePowlowski28Kathryne.Veum@gmail.com
5LuciousSmith40Ismael57@gmail.com
6RoselynDavis-Franecki24Vincent19@yahoo.com
7RoseCassin49Angelica50@yahoo.com
8BrittanySchneider35Litzy12@hotmail.com
9MeghanWolf48Olaf.Stehr@hotmail.com

Change Color Scheme

idfirstNamelastNameageemail
0LessieMitchell21Sadye_Breitenberg28@hotmail.com
1HilbertDietrich25Camille_Yundt@gmail.com
2AshtynRosenbaum53Angela.Marquardt54@gmail.com
3BernieToy58Marco7@hotmail.com
4SidSchulist24Edith23@gmail.com
5AlfonsoAbernathy54Josiah_Boehm63@gmail.com
6BernadetteGrant32Geraldine.Keeling@yahoo.com
7GustavoJerde18Rosa.Gutkowski@hotmail.com
8JustinFisher30Alan27@gmail.com
9GarretRaynor61Leigh.Hartmann18@gmail.com
idfirstNamelastNameageemail
0LessieMitchell21Sadye_Breitenberg28@hotmail.com
1HilbertDietrich25Camille_Yundt@gmail.com
2AshtynRosenbaum53Angela.Marquardt54@gmail.com
3BernieToy58Marco7@hotmail.com
4SidSchulist24Edith23@gmail.com
5AlfonsoAbernathy54Josiah_Boehm63@gmail.com
6BernadetteGrant32Geraldine.Keeling@yahoo.com
7GustavoJerde18Rosa.Gutkowski@hotmail.com
8JustinFisher30Alan27@gmail.com
9GarretRaynor61Leigh.Hartmann18@gmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0DavidAufderhar62Greg_Donnelly@gmail.com
1MariettaHettinger40Phil_Orn22@gmail.com
2MajorBradtke23Don_Emmerich@hotmail.com
3MyraProsacco-Schuppe47Stacey64@gmail.com
4ElissaDouglas29Josephine.Tromp-Roob91@gmail.com
5MelodyShanahan49Felton63@gmail.com
6JesseTillman27Darryl9@gmail.com
7MelindaWest36Noel_Stehr@yahoo.com
8BuckLynch18Brisa.Wilkinson73@hotmail.com
9ElvisKihn54Sammy84@hotmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0BrandiJaskolski28Kathryn58@yahoo.com
1GuillermoFeeney36Ole6@hotmail.com
2VinnieArmstrong61Sharon.Boehm43@hotmail.com
3DellKeeling-Cartwright53Hazel.Rippin50@gmail.com
4KarlMohr44Viola_Kuhic@hotmail.com
5EricMorissette38Ardith.Ratke32@yahoo.com
6VickieSmith53Isabella_Wiegand@yahoo.com
7GracielaKulas30Ada.Thompson@yahoo.com
8ElaineYundt45Phillip91@hotmail.com
9SueKuvalis50Michele_Daniel66@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0KellieFriesen19Jennifer_Buckridge75@gmail.com
1AlfredoBartoletti28Vaughn87@yahoo.com
2WhitneyKoch35Genoveva67@gmail.com
3GenesisTromp62Brandyn99@yahoo.com
4JamesJerde64Helmer.Bednar@yahoo.com
5AllyKshlerin19Harrison13@yahoo.com
6MarioWehner28Donny51@yahoo.com
7AidaTowne40Colin.Funk97@gmail.com
8BayleeAbbott29Jamar_Schuppe96@hotmail.com
9NelsKovacek56Dale.Ernser99@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0SandyCorkery63Toy_Casper35@gmail.com
1HaileeMetz29Lionel77@hotmail.com
2ElsaYundt41Fabiola.Orn75@yahoo.com
3DaisyO'Reilly25Jadon.Abernathy42@gmail.com
4KristaD'Amore61Anita.Roberts55@hotmail.com
5RyleighHomenick26Flavie.Frami27@gmail.com
6JackySwift23Emanuel.Gibson32@gmail.com
7ImogeneGoyette44Clarissa_Sipes46@hotmail.com
8MiracleBergnaum-Tillman38Clara81@hotmail.com
9RowanNicolas61Leroy44@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0AgnesKling-Funk38Lonnie.Schaefer79@gmail.com607-415-7655 x981admininactive10/5/20253/15/2026
1KatieHahn-Olson49Joe.Rosenbaum64@yahoo.com1-286-600-5444 x583useractive12/3/20255/13/2026
2EdnaLubowitz48Eleazar.Marquardt@yahoo.com1-792-486-7673 x88087userinactive4/2/20264/15/2026
3StefanWilderman43Seth.Marks@gmail.com342.430.4198 x4903adminactive12/8/20258/20/2025
4MarcelinoWalsh35Roman.Mosciski@gmail.com557-530-8937 x661useractive9/15/20255/29/2026
5ItzelJakubowski27Joan.Cole45@yahoo.com1-474-460-8154 x075adminactive1/3/20266/22/2026
6RussellRunolfsdottir59Emmy.Hahn79@hotmail.com1-606-846-6333 x3925adminactive5/5/20268/19/2025
7ChristopheHartmann65Myra_Johnson@yahoo.com1-830-252-8399 x88649admininactive6/18/202611/2/2025
8AngeloLarkin43Harvey45@hotmail.com874.885.4659 x96954useractive2/3/20265/27/2026
9LavadaMayer33Kristin_Feeney@yahoo.com1-379-688-5074 x757adminactive12/6/20257/11/2026

Header Groups

iduser
nameageemail
firstNamelastName
0MartaO'Keefe32Tracey94@yahoo.com
1DeeEbert63Osvaldo_Beahan@hotmail.com
2JadeOndricka54Liana20@hotmail.com
3HildaAuer55Tracey.Hilll@yahoo.com
4GingerRice54Maria37@gmail.com
5MarshaKonopelski46Frankie_Beahan69@gmail.com
6PorterO'Keefe38Monica.Wilderman73@gmail.com
7IdellaConnelly45Dewey92@yahoo.com
8WinifredMetz61Mildred.Kassulke@gmail.com
9EmmanuelleJohns61Emil7@gmail.com
iduser
nameageemail
firstNamelastName
0HortenseWatsica28Everett.Hilpert@gmail.com
1TwilaAuer18Chad_Kilback@hotmail.com
2HollySatterfield26Vincent.Veum@yahoo.com
3EddHarris60Erica36@hotmail.com
4LexieHudson59Melvin4@hotmail.com
5ChristineHowe44Soledad48@hotmail.com
6JedBrakus33Gerard.Ondricka@gmail.com
7JanetBerge35Wilson_Heaney30@gmail.com
8KenyaBosco25Alfreda.Koch78@hotmail.com
9LurlineHayes62Winfield_Rodriguez45@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0AllieSchinner35Victor91@gmail.com
1HarryGerlach39Sarah_Monahan67@hotmail.com
2MarshaKoepp51Taurean92@yahoo.com
3LurlineConn19Catherine_Wiegand37@yahoo.com
4MelodyCrooks51Brent46@yahoo.com
5DeshawnMarquardt35Justine33@gmail.com
6AlizeKonopelski54Justice_Wuckert@yahoo.com
7ShannonBayer35Samuel.Emard@gmail.com
8AlainaWaelchi61Mable.Cassin@hotmail.com
9JoeDonnelly43Danyka.Harvey@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
0KingMarquardt38Alena_Cummings33@yahoo.com
1ElliotHoeger36Oliver_Haag81@yahoo.com
2MelanieProsacco40Wendell_Deckow@gmail.com
3IrvingKiehn58Alphonso27@hotmail.com
4MireyaLuettgen28Becky_Waters56@hotmail.com
5DorotheaHeaney58Hazle80@hotmail.com
6LeolaShanahan47Markus.Langworth@hotmail.com
7CamylleRolfson30Chelsea.Harber-Heller50@gmail.com
8BreannaJakubowski36Shawn_Turcotte30@hotmail.com
9AvisJast42Gilbert.Raynor82@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0DavinBarton27Tiana_Funk@gmail.com
1FrankPaucek26Lynda.Rosenbaum@hotmail.com
2NataliaPacocha47Jaylen.Boyer@gmail.com
3SylvesterYost33Gussie_Botsford83@hotmail.com
4ReaganHoeger29Jo65@hotmail.com
5RitaSauer38Edward_Sanford93@hotmail.com
6DallasReichert31Adah31@yahoo.com
7DanaKovacek38Meredith.Kunde11@yahoo.com
8MaryseBrekke59Alfredo_Ondricka@yahoo.com
9WesleyFriesen35Rosetta94@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0BerniceAbernathy31Ryan.Prohaska27@gmail.com
1MiltonChristiansen19Gwen_Botsford66@gmail.com
2EliBuckridge48Roberta.Cremin7@gmail.com
3AprilHegmann37Nels_Fisher81@hotmail.com
4FloraCole49Lloyd.Keeling16@hotmail.com
5JermainBoyle19Sylvia45@gmail.com
6DelilahKuvalis30Arnold35@gmail.com
7MarjolaineRohan31Maxwell91@yahoo.com
8ArvelMacejkovic22Darryl12@hotmail.com
9BulahHills42Shanny_Kihn@gmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
4LyricKoch44Thomas_OConnell38@yahoo.com
1ColinFritsch43Jeffry_Fritsch-Olson87@yahoo.com
6BonnieBashirian42Diane_Ryan14@yahoo.com
3JeramyWisozk40Lolita_Mitchell2@gmail.com
0GeoffreyConroy37Caroline.Lang@hotmail.com
8SebastianGreenfelder32Raquel_Herman@gmail.com
5JasperGrimes30Jenifer_Breitenberg@gmail.com
9VickyVon29Marie_Torp@yahoo.com
2BentonHarvey25Wilson97@hotmail.com
7ChelseaKrajcik24Stevie_Jacobson38@yahoo.com

Disable Sorting

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

idfirstNamelastNameageemail
0EdKoch34Corene45@yahoo.com
1ElmerStehr28Randall41@yahoo.com
2JenaMacGyver45Merl_Bahringer56@yahoo.com
3JadeRosenbaum27Myriam.Fay86@hotmail.com
4SheldonWelch34Michele55@hotmail.com
5EmilyKing55Melany.Hirthe@yahoo.com
6LeopoldoRodriguez28Marcos.Kilback35@yahoo.com
7KendallBalistreri59Liam.Sanford85@hotmail.com
8ForrestQuitzon60Mae10@yahoo.com
9FredDickens56Edna25@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0DellaSchmidt32Betty84@hotmail.com
1SadieLangosh18Ludie.Wyman76@yahoo.com
2PhilMertz65Shelley1@yahoo.com
3MetaSwaniawski56Harvey.Yost34@gmail.com
4CandidaOberbrunner29Delphia36@yahoo.com
5BarryDouglas40Sergio_Pouros@gmail.com
6KatrinaRogahn36Wiley.Walsh79@hotmail.com
7GeovanniHegmann35Toni3@gmail.com
8ArthurEffertz62Joey.Harvey21@yahoo.com
9AnastacioWalker55Kristine_Hilll47@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0DonGreenholt33Perry_Hammes75@hotmail.com
1ShawnaBerge63Lambert44@hotmail.com
2WebsterKeeling26Travis_Pollich92@gmail.com
3TerriErnser28Matteo68@gmail.com
4MeghanPowlowski-Schimmel57Brian_Cormier@hotmail.com
5RemingtonWest37Shirley_Jakubowski@yahoo.com
6PattiHuels27Moses.Hermiston@yahoo.com
7MarianFadel50Kristie.Rau45@yahoo.com
8MaceyMoore45Jerome55@yahoo.com
9PaulVonRueden31Melanie24@gmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0TammyRunolfsson56Winifred.Dickinson62@hotmail.com
1PaulaGerhold35Marjorie.Tillman32@yahoo.com
2BobbieMosciski47Kristofer85@yahoo.com
3KevenBoehm54Irma_Labadie61@hotmail.com
4EricZieme34Abraham.Cruickshank97@yahoo.com
5SalvatoreSawayn18Boyd22@hotmail.com
6CarmelaHintz27Eulah92@gmail.com
7RetaBreitenberg22Murl17@hotmail.com
8RyderJacobs44Abraham61@gmail.com
9FlavioWillms38Garrett.Veum@yahoo.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
0RoxanneHeidenreich36Eve.Hilll99@hotmail.com
1AllisonHettinger40Peter.Lakin17@yahoo.com
2AnnabelDurgan49Dorian_Parisian@gmail.com
3JustinaUllrich35Jenny_Hermann@hotmail.com
4EmileQuigley29Candice_Ankunding@yahoo.com
5EzraBlick58Fatima97@hotmail.com
6ErnestoStracke41Clint.Streich54@hotmail.com
7MargotBradtke25Abbigail_Littel-Harris@gmail.com
8LyricSchowalter34Dino.Connelly@hotmail.com
9MayraBednar48Nina.Kozey@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0AbigailBarton65Juanita65@yahoo.com
1JamesSmith47Zoey47@hotmail.com
2AdaStreich53Vicente41@gmail.com
3JohnnyReynolds45Joe.Stehr-Feeney@yahoo.com
4TheodoraSwaniawski47Sergio97@hotmail.com
5AltaTorphy41Dasia9@yahoo.com
6RobertoOndricka30Caroline45@gmail.com
7TammyLebsack20Tim27@hotmail.com
8LeoMohr-Ortiz53Melvina_Runolfsdottir10@hotmail.com
9JoannieKling64Clara_Padberg2@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
0RowenaLittle47Blaise.Glover@hotmail.com
1CharlotteKonopelski24Bethany97@hotmail.com
2BradBahringer46Angie_Konopelski32@yahoo.com
3VelmaPacocha56Janis_Dibbert@yahoo.com
4PauletteGislason47Myra88@gmail.com
5MartinaStanton41Garrett52@gmail.com
6LaurenceWeber26Ivy.Larson60@gmail.com
7AutumnAbernathy46Lee27@hotmail.com
8AmberBosco20Curtis_Nikolaus18@gmail.com
9MarshaMoen45Chandler_Lebsack@hotmail.com
10JosephProhaska-Hills59Edison_Gutmann31@yahoo.com
11SusanaBoehm41Lorena.Borer54@gmail.com
12EleanoraSchumm-Hackett57Savion30@gmail.com
13AltonMoen19Sylvester_Wiza41@gmail.com
14AriMiller49Casandra_Casper@yahoo.com
15HuldaMills59Terrance.Kuhn28@gmail.com
16FrederickTromp63Mattie_Homenick85@yahoo.com
17DinaStamm40Georgette.King29@gmail.com
18EvangelineFriesen18Deontae39@gmail.com
19MonaHarber62Nannie55@yahoo.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
10BroderickCrona47Pierre36@yahoo.com
11CassieCartwright44Norman.Lakin@gmail.com
12EdmundMurazik20Jack_Lubowitz@hotmail.com
13LouReinger59Teri.Sporer92@yahoo.com
14VickiEffertz49Doreen_Osinski31@yahoo.com
15SherryMoore42Felicity_Rowe-Miller62@hotmail.com
16JavierFeeney39Delphia_King7@gmail.com
17ArnoldoRobel20Virginie_Hettinger@gmail.com
18RolandWitting39Hipolito.Hand@yahoo.com
19WalterGoodwin41Felton_Christiansen49@hotmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0LeonardKoepp65Marcelle31@gmail.com
1JeremyDibbert33Maxwell.Conroy18@hotmail.com
2GarryBrakus54Samantha.Mayert73@gmail.com
3ChristieCollier63Irene.Hayes@gmail.com
4JaydeHuel39Lorene.Jaskolski3@yahoo.com
5BillieJohns26Luella.Donnelly23@gmail.com
6EthelHarber42Joe28@yahoo.com
7AlonzoMaggio64Cindy.Ondricka@hotmail.com
8HectorNolan58Bartholome_Weimann@hotmail.com
9MelvinCarroll28Brad99@yahoo.com
10CindyRice-Effertz37Jeramie.Barton@hotmail.com
11SabrinaCarter18Jeanette49@hotmail.com
12MaurineBailey52Kaylah12@hotmail.com
13NarcisoSauer39Ervin31@yahoo.com
14GaryLemke36Paula_Yost54@yahoo.com
15JohnnyO'Kon54Gabriel.Doyle46@yahoo.com
16IlaLubowitz21Martine89@yahoo.com
17LyndaDoyle58Carla55@yahoo.com
18KennyLegros23Craig.Welch@yahoo.com
19AllyPfeffer26Matthew58@hotmail.com

Control Pagination

idfirstNamelastNameageemail
0MeredithCummerata32Tyshawn.Smith@yahoo.com
1PercyHarber48Joan23@gmail.com
2ConstantinRyan63Shawna_Rau@gmail.com
3VirginiaWilliamson23Tyler.Bayer8@yahoo.com
4KyleeMcLaughlin34Jaylon_Buckridge-Tremblay@hotmail.com
5EmeliaCollins41Clementina52@yahoo.com
6DianeLowe53Frank87@gmail.com
7KingWolf18Irma_Lindgren@gmail.com
8KristaHauck49Nico.Erdman@gmail.com
9AprilEmard27Joan.Wilkinson10@gmail.com
10MelvinaPollich49Freda86@yahoo.com
11MuhammadLeannon37Rosamond_Haag@gmail.com
12JosianneThiel52Iris.Champlin@gmail.com
13SantinaBeahan53Granville.Schuster-Metz95@yahoo.com
14PamelaWisozk42Sheri56@gmail.com
15MaidaSenger19Irene_OConnell90@gmail.com
16RoyCummings37Sheri_Feeney@gmail.com
17ElainaHoeger40Jayden.Abshire@yahoo.com
18GerardHuel46Elbert_Stoltenberg21@gmail.com
19RheaRoberts25Benny_Auer@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0RosendoSchuppe58Lane84@hotmail.com
1JoeyJohnston58Joan.DAmore98@hotmail.com
2LinwoodBorer43Skylar93@gmail.com
3AmandaEmard31Nathaniel60@hotmail.com
4IrisMorissette21Montana63@hotmail.com
5InezSwaniawski49Mallie_Weimann93@gmail.com
6BethelQuitzon58Christian40@yahoo.com
7LoriGibson57Wm34@hotmail.com
8JaquelinGreenholt53Larry.Franey13@yahoo.com
9AnnabelleFerry60Ervin_Treutel@gmail.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
0ErikaAltenwerth34Tess63@yahoo.com
1HelmerParker26Emmett10@yahoo.com
2VivienneTillman47Louis.Baumbach-Stanton@gmail.com
3DianneCarter40Juliana_Heaney90@yahoo.com
4BernadetteMcCullough38Adrain_Runolfsdottir@hotmail.com
5ClaudiaVandervort42Corrine43@hotmail.com
6WillieMorar18Jason.Halvorson@gmail.com
7MariaBreitenberg32Margaretta95@hotmail.com
8NinaLangosh28Dwayne_Flatley93@hotmail.com
9JeromeSchumm24Leo_Keeling27@yahoo.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0KaylieGreenfelder21Amani.Batz47@hotmail.com
1DavionNader56Kerry20@gmail.com
2EvaReichert46Brooke.Hane6@hotmail.com
3ItzelMorissette18Barrett83@gmail.com
4DejonHuel39Cristina.Hoppe24@hotmail.com
5TrishaVandervort20Adelbert_Anderson-Donnelly28@gmail.com
6MarilyneSchmitt59Elisa.Kertzmann@hotmail.com
7LaviniaKovacek50Nickolas.Bernier45@yahoo.com
8CarolConnelly54Isaac_Ortiz@gmail.com
9LanaWintheiser18Woodrow_Macejkovic@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0LaurieNolan60Anthony_Rice-Watsica64@hotmail.com
1AllenHegmann25Emilia_Morar0@yahoo.com
2JacquelineKertzmann22Markus.Rodriguez64@gmail.com
3GenevaWisozk41Larry.Pouros87@hotmail.com
4SylvesterUllrich19Elenor_Effertz89@hotmail.com
5PiperKuhn55Dwayne75@gmail.com
6LaurieHoppe56Dina.West19@yahoo.com
7GingerSchumm63Brent88@yahoo.com
8MyaPfannerstill51Toni.Cole11@gmail.com
9PierceBeer22Dereck.Kunze@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0ElsaShanahan29Arvid_Olson-Hodkiewicz86@yahoo.com
1DennisCrist55Woodrow90@gmail.com
2JoshuaSchiller59Noelia6@gmail.com
3ElinorKihn21Larry_Bashirian@hotmail.com
4AnyaPaucek33Jessyca_Hamill65@yahoo.com
5RuthAnderson34Elaine_Fahey15@hotmail.com
6TommieJohnston48Jazmyne.Lueilwitz@gmail.com
7ClintonConnelly42Carmel.Lowe@yahoo.com
8CharlotteSchroeder63Drake_Hyatt@yahoo.com
9HelenWilliamson41Rickey_OKeefe@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0BoydGreenfelder47Edwin.Upton24@hotmail.com
1BrentSauer65Layne50@gmail.com
2HelenLockman49Devonte_Kertzmann@hotmail.com
3IanHickle32Shirley.Crist-Hills58@gmail.com
4DelbertHyatt45Bernard86@yahoo.com
5VerlieGoodwin45Luciano4@hotmail.com
6BettyMayert25Olaf_Littel25@hotmail.com
7IraDuBuque50Janice80@yahoo.com
8BennieO'Kon45Lauryn67@yahoo.com
9HarryBoyer59Jeremy.Kunde@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0JulianCrooks62Irma38@hotmail.com
1MaeJakubowski43Rebecca.Gusikowski41@gmail.com
2ZanderDickens18Neil.Bayer98@gmail.com
3SuzanneErdman39Oliver_Greenholt70@gmail.com
4PaxtonNikolaus27Micheal_Schuster@hotmail.com
5GeorgiaSipes25Sheila.Lowe48@yahoo.com
6JettieWeber44Sabrina_Schmeler89@yahoo.com
7MyrtleBuckridge52Candice.Schowalter98@hotmail.com
8LeolaWatsica42Emil17@hotmail.com
9KennyWiza48George.Crooks@yahoo.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
0MarvinStiedemann19Ryder_Mueller@gmail.com
8CasimirTurcotte54Glen_Flatley91@gmail.com

Control Filter

idfirstNamelastNameageemail
0JordiRuecker-Bernhard45Napoleon.Quitzon96@yahoo.com
1JoannyMurray56Jerry4@hotmail.com
2DorisZboncak58Alexander29@hotmail.com
3DenaRohan29Craig_Brown16@gmail.com
4KatharinaRolfson54Stephen_Homenick72@gmail.com
5ScarlettWatsica27Hazel45@gmail.com
6TommyReichert18Vincent87@hotmail.com
7JoseBradtke32Silvia.Koepp70@hotmail.com
8RachaelMayert65Ed26@gmail.com
9KarolannStrosin-Wintheiser48Veda_Leannon@gmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0JulioDeckow29Dayna.Strosin14@gmail.com
1MargePollich53Janet_Hammes@gmail.com
2AbbieMonahan53Kylie.Kutch96@gmail.com
3PamDickens62Aubrey29@hotmail.com
4ConsueloLockman38Darla_Harris61@hotmail.com
5AntoneStanton64Abel_Morissette10@yahoo.com
6MikaylaTurcotte40Glenda.Denesik@gmail.com
7LibbieProsacco33Ervin.Tremblay@hotmail.com
8ErichWard24Krista_Predovic46@hotmail.com
9LuciaVolkman34Stacey58@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
0AshtonHackett27Stephen.Corkery@gmail.com
1TommyBernier37Duncan38@hotmail.com
2ElenaHilll47Jonathan_Langosh79@hotmail.com
3KarlAnderson26Earline_Kuphal98@hotmail.com
4BentonProsacco21Ramiro22@hotmail.com
5DeniseBogan19Judy61@hotmail.com
6TiffanySatterfield38Kristy.McCullough@gmail.com
7RicardoOsinski31William.Luettgen@hotmail.com
8PamelaReinger-Stoltenberg30Stevie.Ward39@gmail.com
9GretaMayer25Stacey_Gulgowski13@hotmail.com

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<TableData[]>(() => 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

ElementRoles and AttributesUsage
table.ui-native-table__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.
thead.ui-native-table__theadrole="rowgroup"Indicates that the element is a rowgroup.
tr.ui-native-table__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.
th.ui-native-table__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.
tbody.ui-native-table__tbodyrole="rowgroup"Indicates that the element is a rowgroup.
td.ui-native-table__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.
tfoot.ui-native-table__tfootrole="rowgroup"Indicates that the element is a rowgroup.
label.ui-checkbox__root > inputaria-labelSet to "Select all rows" for the header, and "Select row" for body rows.
th.ui-native-table__th > buttonaria-labelSet to "Sort ascending" for ascending order, "Sort descending" for descending order, and "Clear sorting" when no order is specified.

Similar Components

NativeTable

NativeTable is a component for efficiently organizing and displaying data.

Stat

Stat is used to display numbers or data within a box.

AreaChart

AreaChart is a component for drawing area charts to compare multiple sets of data.

Badge

Badge is a component that emphasizes the status of an item to make it immediately recognizable.

BarChart

BarChart is a component for drawing bar charts to compare multiple sets of data.

Card

Card is a component that groups and displays related information. By default, it renders a article element.

ComposedChart

ComposedChart is a component for drawing composed charts to compare multiple sets of data.

DataList

DataList is used to display a list of data items.

Uses Components & Hooks