Table

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

idfirstNamelastNameageemail
0RachelSchimmel51Mertie.Stamm66@yahoo.com
1JoshuaThompson65Hubert_Labadie@gmail.com
2ChaimRoob27Loyal_Considine0@hotmail.com
3RupertStark40Kailey_Kozey@yahoo.com
4BobbyJast62Clarence26@yahoo.com
5AnneRohan-Reichert39Mamie33@hotmail.com
6NyaWilkinson-Walker57Colin_Kertzmann@yahoo.com
7CorineLegros36Vickie.Powlowski82@hotmail.com
8RooseveltKeeling26Chester4@gmail.com
9JazmynHeller32Albert.Kshlerin12@yahoo.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0MeredithMcClure-Feest44Lukas6@gmail.com
1CatherineAltenwerth33Brooke.Boyer@gmail.com
2BreanneRosenbaum61Chelsea6@hotmail.com
3PhilipPadberg42Keenan.Jaskolski@yahoo.com
4MartaHermann29Lizeth_Nicolas@hotmail.com
5JuanMcLaughlin26Marc92@hotmail.com
6BritneyHermann52Lyle.Beatty@yahoo.com
7TiffanySchuster19Barrett.Willms@hotmail.com
8RayKutch21Isom69@gmail.com
9ValerieDoyle30Louise54@yahoo.com
idfirstNamelastNameageemail
0MeredithMcClure-Feest44Lukas6@gmail.com
1CatherineAltenwerth33Brooke.Boyer@gmail.com
2BreanneRosenbaum61Chelsea6@hotmail.com
3PhilipPadberg42Keenan.Jaskolski@yahoo.com
4MartaHermann29Lizeth_Nicolas@hotmail.com
5JuanMcLaughlin26Marc92@hotmail.com
6BritneyHermann52Lyle.Beatty@yahoo.com
7TiffanySchuster19Barrett.Willms@hotmail.com
8RayKutch21Isom69@gmail.com
9ValerieDoyle30Louise54@yahoo.com

Change Size

idfirstNamelastNameageemail
0CecilShanahan39Lempi.Hilll-Monahan@yahoo.com
1DonnyKuhn26Susie.OHara0@gmail.com
2SherryMraz40Augustus95@gmail.com
3StanleyHickle39Constance_Towne58@hotmail.com
4EvelineGibson64Salvador_Torp-Schowalter81@gmail.com
5KristiGusikowski34Janae79@gmail.com
6ChelseaSchumm65Elsie51@yahoo.com
7WardJohns21Pauline.Tromp13@gmail.com
8MohamedMarvin19Rudolph_Carroll28@gmail.com
9PennyMohr29Troy.Beatty@gmail.com
idfirstNamelastNameageemail
0CecilShanahan39Lempi.Hilll-Monahan@yahoo.com
1DonnyKuhn26Susie.OHara0@gmail.com
2SherryMraz40Augustus95@gmail.com
3StanleyHickle39Constance_Towne58@hotmail.com
4EvelineGibson64Salvador_Torp-Schowalter81@gmail.com
5KristiGusikowski34Janae79@gmail.com
6ChelseaSchumm65Elsie51@yahoo.com
7WardJohns21Pauline.Tromp13@gmail.com
8MohamedMarvin19Rudolph_Carroll28@gmail.com
9PennyMohr29Troy.Beatty@gmail.com
idfirstNamelastNameageemail
0CecilShanahan39Lempi.Hilll-Monahan@yahoo.com
1DonnyKuhn26Susie.OHara0@gmail.com
2SherryMraz40Augustus95@gmail.com
3StanleyHickle39Constance_Towne58@hotmail.com
4EvelineGibson64Salvador_Torp-Schowalter81@gmail.com
5KristiGusikowski34Janae79@gmail.com
6ChelseaSchumm65Elsie51@yahoo.com
7WardJohns21Pauline.Tromp13@gmail.com
8MohamedMarvin19Rudolph_Carroll28@gmail.com
9PennyMohr29Troy.Beatty@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0WillardHahn50Betty_Brown2@yahoo.com
1GretaCorwin29Colleen.DAmore9@hotmail.com
2SaraKunze63Kent.Dietrich14@yahoo.com
3NaomiUllrich62Florence_Waters39@yahoo.com
4JaredBuckridge28Marjorie.Langosh@yahoo.com
5CarlosBrakus52Oceane.Hoppe18@hotmail.com
6VincenzaPurdy45Frieda_Bradtke-Farrell5@hotmail.com
7HarryOsinski49Lorene27@gmail.com
8JodiBahringer36Jerrod61@yahoo.com
9EfrenNicolas28Annette_Harber45@hotmail.com
idfirstNamelastNameageemail
0WillardHahn50Betty_Brown2@yahoo.com
1GretaCorwin29Colleen.DAmore9@hotmail.com
2SaraKunze63Kent.Dietrich14@yahoo.com
3NaomiUllrich62Florence_Waters39@yahoo.com
4JaredBuckridge28Marjorie.Langosh@yahoo.com
5CarlosBrakus52Oceane.Hoppe18@hotmail.com
6VincenzaPurdy45Frieda_Bradtke-Farrell5@hotmail.com
7HarryOsinski49Lorene27@gmail.com
8JodiBahringer36Jerrod61@yahoo.com
9EfrenNicolas28Annette_Harber45@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0KenyonSteuber52Mathias.Wyman@gmail.com
1DaronBrown65Ismael.Wintheiser53@gmail.com
2MelissaBeahan19Tyler.Conn@yahoo.com
3PercyVandervort27Rachael.Halvorson@hotmail.com
4BrielleTowne18Reid26@hotmail.com
5MarcosMoen29Fredrick_Keebler20@hotmail.com
6HectorSchuppe43Vicki.Quigley11@hotmail.com
7MaidaSwaniawski44Brett.Erdman@gmail.com
8HectorRenner27Ronald_Kuhn38@hotmail.com
9SherylWisozk41Juanita9@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0WilmaHermann46Rudy_Hegmann@yahoo.com
1KeatonMonahan40Bernard81@gmail.com
2JohathanWeber63Keara.Towne@yahoo.com
3MarvinSwaniawski57Yasmin_Connelly@gmail.com
4EdmondLang31Charlene.Hettinger54@hotmail.com
5DustyBlanda55Bette_Torp@gmail.com
6PriscillaPagac56Russ.Schiller@gmail.com
7ClementineSenger-McClure23Erika_Johnston@gmail.com
8DionStanton49Stacey_Hudson@hotmail.com
9BenSchneider25Alma_Hudson@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0TabithaRobel55Timmothy.Cassin89@hotmail.com
1KirkCronin35Macey.Cruickshank@hotmail.com
2GeoffreyAltenwerth39Alexander39@yahoo.com
3RooseveltJohnson47Howard.Weber@hotmail.com
4OllieJenkins29Lewis.Carroll7@hotmail.com
5HortenseBeahan55Sven53@yahoo.com
6IrvinRomaguera34Gonzalo.Grady@yahoo.com
7DominickO'Reilly30Natalie_Koss86@hotmail.com
8EdnaDicki47Jordan88@hotmail.com
9LeoneSchaefer34Jeanne.McCullough@yahoo.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0LouiseO'Connell24Joan.Hyatt@hotmail.com
1LorraineMohr30Garth65@hotmail.com
2LauraMacGyver59Bradly24@yahoo.com
3FatimaWaters19Gretchen.Hessel@yahoo.com
4OrphaLesch34Moriah_Rutherford89@hotmail.com
5StephanieWest32Josefina.Bernier74@hotmail.com
6BiankaBrekke22Nathaniel.Lubowitz@hotmail.com
7FaustinoBrakus40Victoria67@yahoo.com
8CarsonDurgan40Adriana.Waelchi@hotmail.com
9CarltonSchumm29Pablo.Dooley@hotmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0JanisGoyette35Misty76@hotmail.com1-418-959-4965 x3758admininactive6/21/20262/10/2026
1DwightDouglas52Esther66@hotmail.com(626) 751-2499 x36652admininactive8/9/202512/4/2025
2EllsworthSmith24Daija15@hotmail.com499.978.4436 x473useractive7/4/202610/6/2025
3NellaSchmidt63Ressie_Yost50@hotmail.com791-992-2857 x07296admininactive7/17/20266/29/2026
4JuanaWalker36Warren94@gmail.com877-825-0470 x5805adminactive3/14/20261/11/2026
5NathanTrantow39Tyrese69@gmail.com(383) 281-6759 x891adminactive6/15/20266/10/2026
6JewellRatke61Halie_Kertzmann-Dare15@gmail.com997-553-1019adminactive3/18/202611/8/2025
7MindyBeer46Keira17@gmail.com(323) 840-3409 x5370admininactive6/28/20263/6/2026
8AnthonyKessler49Maeve46@gmail.com(369) 472-9854 x10427useractive4/27/20264/4/2026
9SteveMayert64Earl_Mayer67@hotmail.com(658) 888-4886 x10924admininactive6/26/20266/22/2026

Header Groups

iduser
nameageemail
firstNamelastName
0SheilaRutherford35Elian_Senger@gmail.com
1FrederickReilly48Columbus_Johnson@yahoo.com
2JoshSatterfield55Traci_Jerde53@gmail.com
3KateBarrows64Rosetta54@hotmail.com
4DedricWillms58Trycia67@gmail.com
5HoraceNienow57Muriel.Boyle89@gmail.com
6NorwoodGerlach60Jenny_Kunze88@yahoo.com
7ColtLind18Francisca_Stroman37@yahoo.com
8AylaToy59Mattie72@hotmail.com
9WilfredErdman51Edmond.Hessel77@hotmail.com
iduser
nameageemail
firstNamelastName
0KenBeer61Faith.Swift91@yahoo.com
1PennyMetz27Verda_Wehner@hotmail.com
2GuySwift21Cedric_Heathcote36@yahoo.com
3FrancoAnkunding54Darrin_Roob78@yahoo.com
4WilbertHessel21Karson.Auer@yahoo.com
5ChandlerMcDermott53Jeannette.McCullough@gmail.com
6RodolfoJaskolski49Demetris_Goldner@gmail.com
7KennyLittel27Scot82@gmail.com
8KathleenProsacco35Al_Shields@gmail.com
9LaceyVonRueden45Clint.Friesen@gmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0CraigLynch65Josefina_Parisian34@yahoo.com
1GarnettDibbert64Enrico_Howell@gmail.com
2LarueBeer37Everett.Hegmann@yahoo.com
3EnricoRempel30Janice.Stroman63@hotmail.com
4AliceVon36Aubrey_Ernser@gmail.com
5LillianJohnston36Aiyana48@yahoo.com
6VernonNader28Ismael_Mayert@hotmail.com
7BillyPfannerstill64Tammy30@hotmail.com
8ClarenceHodkiewicz35Melba.Kuphal@gmail.com
9AgnesQuigley31Triston46@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
0BethSchuster19Reilly95@hotmail.com
1DanKlocko25Eldred.Rodriguez-Brakus@hotmail.com
2TammyLueilwitz37Ollie.Spinka@yahoo.com
3JessicaSchroeder24Brooklyn65@gmail.com
4ElmiraGorczany51Hilbert_Bailey77@gmail.com
5JonConroy29Preston.Hirthe@hotmail.com
6JoshuaBruen38Dwight59@yahoo.com
7JalonCollins56Viviane32@hotmail.com
8LindaBosco57Cecelia_OKeefe@hotmail.com
9LaishaHarvey-Ankunding55Harley.Koelpin42@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0GregGoodwin58Vickie_Corkery39@yahoo.com
1CletusThiel48Lilian_Sawayn8@hotmail.com
2ArthurSatterfield42Sherry84@hotmail.com
3KorbinHyatt41Kathryne.Tromp@yahoo.com
4ElbertFeil21Gayle_Lockman76@gmail.com
5KennethBotsford46Justyn.McDermott15@hotmail.com
6ClayKuhn45Drew.Morissette68@gmail.com
7GracieNienow52Silvia.Wiza@yahoo.com
8PamEmmerich31Karla_Collins2@hotmail.com
9CletaRath49Beth_Pfannerstill@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0TitusLindgren23Gary.Reilly@gmail.com
1ClementinaHeidenreich55Santina_Ruecker-Schinner@gmail.com
2TimothyRosenbaum49Retta_Hudson40@gmail.com
3LelandCrooks35Bette_Connelly64@yahoo.com
4BerniceRice40Jewell.Wintheiser86@gmail.com
5DomenicKuphal35Mike.Lockman@hotmail.com
6JoshuahAnderson43Essie.Vandervort29@hotmail.com
7TeaganKling54Janie88@gmail.com
8KathyWest38Richmond70@gmail.com
9WaylonStreich55Sandrine.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
6WestonNolan64Thomas.Sporer51@gmail.com
7DeionHirthe63Maudie25@gmail.com
5PauletteKunze62Francis_Flatley@gmail.com
4AudieLesch61Zechariah_Mitchell86@hotmail.com
2JaleelTromp45Edythe59@yahoo.com
3HankTerry43Randy_Grimes@yahoo.com
8StephanieHilll39Presley6@gmail.com
0DangeloSchroeder37Marilou.Gutkowski@yahoo.com
9HillardCronin30Ben21@yahoo.com
1ChristopherLebsack28Kitty_Jakubowski51@yahoo.com

Disable Sorting

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

idfirstNamelastNameageemail
0AliceKuphal33Josh.Hyatt@gmail.com
1KelliChamplin63Davin_Miller@yahoo.com
2NoeliaHessel39Elda.Wolff@yahoo.com
3AudreanneMitchell31Robert_Harris@gmail.com
4CandaceHickle49Maria30@hotmail.com
5JanetSchiller59Kellie_VonRueden97@yahoo.com
6StephanyDibbert37Mable.Leffler@gmail.com
7SofiaHowell41Monica9@yahoo.com
8JaredMuller43Axel.Witting69@gmail.com
9RosieEmard35Rachelle_Weissnat18@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0DelphiaMurphy53Eleanor89@gmail.com
1AndyOberbrunner-Schamberger42Clark_Beatty@yahoo.com
2MarjorieKeebler48Adah_Fay65@yahoo.com
3TriciaKub53Cordie.Kassulke17@gmail.com
4KevinFeest40Tamia.Kuhlman@gmail.com
5VitaHowe-Erdman50Enos.Gerhold67@hotmail.com
6GabriellaWilkinson48Casper_Boyle@gmail.com
7AshleeO'Hara53Gertrude_Goyette57@yahoo.com
8KavonSchultz36Donald.Stokes@yahoo.com
9LunaMaggio33Prince17@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0CletusSchoen26Rickie_Kiehn8@yahoo.com
1LionelShields47Kasey.Considine70@hotmail.com
2MarcosRau39Lera.Schuppe-Boyer22@yahoo.com
3KeyonRuecker30Kendall72@hotmail.com
4AlexBecker62Zack.Ratke@gmail.com
5MaxRoob28Stephanie.Williamson@hotmail.com
6DylanBorer50Mercedes_Swift0@hotmail.com
7HaskellShanahan57Olga.Parker@hotmail.com
8FatimaAnderson43Donny_Keeling@yahoo.com
9SethMayert58Geovanni.Leffler26@yahoo.com

Manual Sorting

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

idfirstNamelastNameageemail
0RebekahWest31Vickie.Beer25@hotmail.com
1TerrencePollich56Charlie_Greenholt45@yahoo.com
2DeloresLind31Virgie_Koelpin6@hotmail.com
3BarryShanahan35Shirley72@hotmail.com
4OliveVonRueden40Laron_Crona@yahoo.com
5MarjorieWunsch50Violette69@gmail.com
6KaitlynRunolfsdottir62Kathryne_Cassin70@hotmail.com
7FedericoCrist40Isabella96@hotmail.com
8IreneBeahan29Garry.Hauck@hotmail.com
9TerrenceEmard58Jorge75@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
0RachelGorczany36Joel_Ernser@yahoo.com
1ElviraRippin59Salvador_Hickle19@hotmail.com
2JaydenGerlach49Alan89@yahoo.com
3MichaelaPurdy27Branson.Willms45@hotmail.com
4SueFay58Blaise.Parisian60@hotmail.com
5MarcelleRyan36Hector18@gmail.com
6LauryGottlieb57Cathy_Keebler-Wiegand@gmail.com
7SusanMayert31Lyda_Kulas@gmail.com
8NormanNolan60Cora97@gmail.com
9CloydEbert-Jerde31Alison_Borer@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0MargieLockman39Zachariah_Witting20@yahoo.com
1KarianneBraun51Albin30@gmail.com
2KathleenJast50Samantha.Gorczany22@yahoo.com
3DestineyKris-Borer48Camille_Stracke@gmail.com
4BrittanyKeeling24Mose60@hotmail.com
5EleanoraSipes46Nannie41@yahoo.com
6AnnamaeHills20Willis.Cassin12@yahoo.com
7ArloSchmitt-Hilll20Hilma.Satterfield4@gmail.com
8StellaNienow42Amie.Feest82@gmail.com
9RubyHettinger53Araceli.Mann@gmail.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
0LennyBogisich47Rebeca.Hirthe@hotmail.com
1KeltonOsinski34Ollie_Friesen@gmail.com
2CharlotteLesch52Caterina_Fisher76@hotmail.com
3DesireeBartell37Judith70@yahoo.com
4KellieHansen64Dayana56@yahoo.com
5ElvaMoen38Cristina.Corwin@yahoo.com
6RandolphDibbert60Jerod_Wilderman47@gmail.com
7WarrenCollier29Tommy.Gorczany@gmail.com
8CarolanneSauer54Winifred.Herman@hotmail.com
9VincentKirlin37Luigi_Jacobs27@hotmail.com
10MagaliWolf51Lilly.Thompson20@yahoo.com
11MelbaRatke-Abshire63Carl1@gmail.com
12LavadaCormier54Randy68@gmail.com
13JanisBailey24Marilyne.Lueilwitz14@gmail.com
14EmilyHowe37Devante55@hotmail.com
15SamuelHagenes30Shayna95@gmail.com
16TraceyZemlak58Albina.Wunsch@hotmail.com
17HalieFriesen55Fausto.Kohler@yahoo.com
18WilliamMayert55Mason79@hotmail.com
19EnricoFeeney54Brain51@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
10GustavoJerde59Camille82@hotmail.com
11ChaseHirthe30Brown_Homenick@hotmail.com
12RosemarySchmitt38Carlie.Will29@yahoo.com
13EusebioGutmann24Kelley_McKenzie51@yahoo.com
14EssieRippin-Lebsack21Savion83@yahoo.com
15LibbieHermiston59Erica.Wisozk@yahoo.com
16MaribelMurazik26Rowena_Goodwin@hotmail.com
17MercedesAbernathy56Maeve.Ward@hotmail.com
18DelphineBrakus33Jim99@hotmail.com
19LeahKunde58Herbert.Kirlin@yahoo.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0ErmaCrona-Maggio62Robin_Murazik@yahoo.com
1SilviaHeidenreich40Rosanna_Collier@yahoo.com
2VickieHintz30Leatha46@hotmail.com
3JovaniCasper59Emie77@yahoo.com
4DorthyRogahn61Agnes_Willms8@yahoo.com
5NaomiJones30Theresia.Fisher46@gmail.com
6PearlMiller39Eileen11@hotmail.com
7RalphPadberg62Shawna15@yahoo.com
8MayDurgan42Timmy.Fadel93@hotmail.com
9TraciCremin44Ari_Bednar@hotmail.com
10LindsayRowe62Curtis11@gmail.com
11MatthewBartoletti-Ryan42Frederick11@gmail.com
12LyndaGorczany50Tyson.Stehr17@gmail.com
13LupeGislason65Garrett_VonRueden@yahoo.com
14PattiShanahan32Brooks47@gmail.com
15DorrisCarroll30Alvina69@yahoo.com
16CoraMorar34Nikko25@gmail.com
17JanChamplin47Agustina_Kozey5@hotmail.com
18MikeGlover23Matthew.Welch98@gmail.com
19EfrainBeahan53Jay42@gmail.com

Control Pagination

idfirstNamelastNameageemail
0EduardoBalistreri63Kaia.Hahn89@yahoo.com
1DeweyWest25Alena_Lemke51@yahoo.com
2JenniferMann61Israel_Fritsch@gmail.com
3AlfredoKlein33George20@gmail.com
4OliverDickinson65Jaylin_Raynor@gmail.com
5TerranceTillman61June.Boyle@gmail.com
6AnnettaNikolaus44Annamae8@hotmail.com
7BelindaRunolfsdottir37Drake_Hammes@gmail.com
8MalcolmSpinka24Shanny.OConner@gmail.com
9ShariHermiston42Sylvan_Turner31@yahoo.com
10SantiagoOberbrunner27Grayson_Casper@gmail.com
11PierceRyan-Schowalter45Walker62@gmail.com
12TraceyJenkins24Stephania31@hotmail.com
13JeromeBreitenberg41Mitchell45@hotmail.com
14OzellaHoeger36Anibal_Reynolds5@yahoo.com
15EllenMills-Purdy53Chelsea_Wiegand@gmail.com
16JadynBashirian41Jeanie_Jacobi@hotmail.com
17RandalStrosin53Nichole11@hotmail.com
18AngelicaBaumbach25Erica.Mayer44@hotmail.com
19ColinBashirian47Dixie_Gleichner@hotmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0JeannieKuhn29Pattie_Erdman9@gmail.com
1EricaBogan58Justen.Abernathy91@hotmail.com
2NormaRitchie43Sherman.Gutkowski58@yahoo.com
3EugeniaHoeger52Nicolette25@yahoo.com
4HankRyan54Ashley.Schimmel@hotmail.com
5BradDeckow53Lavina36@gmail.com
6TylerWuckert59Sonya_Kris@gmail.com
7ErnestWiza48Mark.Murazik39@hotmail.com
8BessieHodkiewicz32Jonathon_Smitham95@yahoo.com
9LillianSchroeder55Marlee12@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
0JohnnyLynch30Lorene.Bechtelar@yahoo.com
1MeaghanGulgowski-Rice27Tamara_Doyle18@yahoo.com
2AleenRodriguez20Jailyn.Jakubowski-Yundt@yahoo.com
3LorenzoBoyer48Casey22@gmail.com
4LuisaKovacek21Dolores.Lind15@yahoo.com
5TysonTurner53Jon16@hotmail.com
6PamRath45Gloria.Quigley@yahoo.com
7RickyDibbert54Marsha.Auer@gmail.com
8LilaSchuppe-Kunze32Rubie.Schaefer42@yahoo.com
9SheliaHuels45Claudia.Kiehn57@gmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0MichealPagac24Gustavo_Mertz@yahoo.com
1JulieBins35Ellen58@yahoo.com
2MarilouKrajcik61Agnes_Corwin6@hotmail.com
3KarliKuphal53Larissa.Prohaska43@yahoo.com
4AlexieKuhic58Angela.Lindgren45@hotmail.com
5BoBeahan50Emmett71@gmail.com
6JaylanHyatt27Brionna.Bergnaum98@yahoo.com
7KurtHarvey45Scott.Luettgen@yahoo.com
8CarliHarvey33Emelia.Nolan@yahoo.com
9AmandaKiehn20Alexandre.Rempel72@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0EloiseKohler39Yvette_Mertz@yahoo.com
1ColeMorar43Sara.Connelly-Durgan97@gmail.com
2VioletteConroy25Adrienne_McDermott@gmail.com
3KarenBeahan50Gordon_Cremin@yahoo.com
4SherylKiehn30Faye_Goldner18@yahoo.com
5TheresaBogan55Una5@hotmail.com
6MelanieParisian27Onie23@gmail.com
7StephanQuigley42Rasheed.Cole42@yahoo.com
8JaysonCasper20Meredith_Thiel18@gmail.com
9CodyHeathcote26Susanna91@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0LudwigCormier49Hilbert_Haag@yahoo.com
1KeonLarkin36Christine_Lynch15@yahoo.com
2KimKoepp-Fadel44Daphne.Braun@hotmail.com
3SunnyLittel23Andrea.Boyer@gmail.com
4MablePagac62Vera.Turcotte74@hotmail.com
5AlejandroSchultz42Pierre43@yahoo.com
6PietroDuBuque31Thomas_Gerhold@hotmail.com
7GarySatterfield-Larkin51Christy_Gleichner87@hotmail.com
8WilmaBerge61Dylan.Wisoky93@hotmail.com
9ElsaMohr36Braden.DAmore87@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0KaelynMcClure62Andre.Erdman@gmail.com
1LynetteRogahn23Oren9@yahoo.com
2TrystanHahn39Allene_OConner0@gmail.com
3CarolynPollich26Bob.Kunze@yahoo.com
4CarlosConnelly37Chester_Keebler@gmail.com
5MaximusSipes37Byron90@hotmail.com
6FayeWaelchi36Alex56@yahoo.com
7SpencerReichert34Chyna_Mosciski@hotmail.com
8TashaConn28Erik51@hotmail.com
9StanWuckert65Ervin_Orn73@yahoo.com

Use Filter

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

idfirstNamelastNameageemail
0DwightBrekke47Berniece33@gmail.com
1TriciaMcLaughlin58Leon75@yahoo.com
2CordiaFay37Keira.Orn82@gmail.com
3IdaDavis36Hank_DAmore@gmail.com
4MeredithDurgan23Michel_Abbott2@gmail.com
5TianaFeil-Langworth64Justyn_Wyman@hotmail.com
6LynneBailey-Lemke60Corbin.Frami@hotmail.com
7DuaneCrona57Laverne_Heaney78@gmail.com
8RenePadberg49Malachi_Goodwin46@hotmail.com
9DestinyQuigley49Dwayne43@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
1ClaudeMarks42Clarence_Koch78@gmail.com
2HenrietteBoyle29Melba30@gmail.com
7KurtUllrich27Eloise44@gmail.com

Control Filter

idfirstNamelastNameageemail
0IgnatiusDickinson58Cooper28@gmail.com
1VirginieJacobi51Diego_Koss@yahoo.com
2AidaHintz36Ruthie_Kuphal@gmail.com
3RonaldStark-McGlynn38Forrest.Fadel-Barton@gmail.com
4CarrieKohler45Toby.Kuphal24@yahoo.com
5SophieJakubowski65Claudia_Streich@hotmail.com
6LawrenceTurner52Santiago.Willms61@yahoo.com
7ShermanRosenbaum46Ivan.Hyatt@gmail.com
8KayStoltenberg49Lynette65@gmail.com
9VirginieGoldner52Desmond.Durgan@gmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0GarfieldTreutel36Verner.Walker82@hotmail.com
1DarrellDaugherty25Khalil.Beer35@gmail.com
2WhitneyCrist29Constance.Paucek@hotmail.com
3GilbertoHansen31Austen45@gmail.com
4JimmyChamplin51Carole.Zulauf9@gmail.com
5RudolphConn50Roger.Borer@hotmail.com
6CorrinePollich55Orlo18@hotmail.com
7ShaneReinger59Ida25@yahoo.com
8PeterFlatley61Wyatt13@gmail.com
9MalcolmMarvin31Diana.Johns0@gmail.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
0AhmedProsacco41Jerome58@gmail.com
1SummerDooley47Eliza_Wuckert44@yahoo.com
2GriffinLeuschke18Yvonne.Vandervort@yahoo.com
3DarleneHalvorson24Jakob_Ruecker14@hotmail.com
4SaulBlock54Robert_Kutch62@gmail.com
5CarmelHodkiewicz26Octavia.Satterfield@yahoo.com
6RamiroWilliamson18Otilia53@yahoo.com
7JefferyRomaguera62Terrance.Watsica87@yahoo.com
8KarianeKerluke34Henrietta.Corwin70@gmail.com
9JanieJerde52Cheryl.Hirthe@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