Table

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

idfirstNamelastNameageemail
0JeromyParisian20Oleta18@yahoo.com
1RichmondOkuneva45Abel18@gmail.com
2ArmandoStanton45Anastacio.Gibson56@yahoo.com
3PerryQuigley24Eddie.VonRueden@gmail.com
4CoralieMann28Patty_Schiller81@yahoo.com
5LisaGerhold61Kallie.Langosh77@yahoo.com
6OwenHahn55Golden.Kris52@hotmail.com
7LoyCartwright41Rowan7@yahoo.com
8ShaunAufderhar19Rosalind_Metz-Jakubowski34@hotmail.com
9PresleyRempel60Luz.Kunze93@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0MarioHackett26Dominique.Smitham-Oberbrunner9@hotmail.com
1SergioHickle44Garett_Abernathy79@hotmail.com
2BarbaraVonRueden24Wendy24@hotmail.com
3LyndaHudson50Abbigail41@gmail.com
4EzekielRippin24Whitney.Hegmann79@yahoo.com
5JoshHyatt42Lonnie.Mann@gmail.com
6AnitaSchoen42Nina_Parisian50@yahoo.com
7DeltaRyan20Mathew20@yahoo.com
8ElissaKertzmann62Kristine.Legros17@gmail.com
9DestineyMetz21Yoshiko_Ebert50@yahoo.com
idfirstNamelastNameageemail
0MarioHackett26Dominique.Smitham-Oberbrunner9@hotmail.com
1SergioHickle44Garett_Abernathy79@hotmail.com
2BarbaraVonRueden24Wendy24@hotmail.com
3LyndaHudson50Abbigail41@gmail.com
4EzekielRippin24Whitney.Hegmann79@yahoo.com
5JoshHyatt42Lonnie.Mann@gmail.com
6AnitaSchoen42Nina_Parisian50@yahoo.com
7DeltaRyan20Mathew20@yahoo.com
8ElissaKertzmann62Kristine.Legros17@gmail.com
9DestineyMetz21Yoshiko_Ebert50@yahoo.com

Change Size

idfirstNamelastNameageemail
0RaymondBlanda25Peter.Turcotte65@gmail.com
1AdrienneHansen61Freda_Pfannerstill53@hotmail.com
2MaddisonBogan56Thad19@gmail.com
3StuartKris28Ryan63@hotmail.com
4LeslieTillman60Filiberto29@hotmail.com
5IsraelProhaska28Ana_Witting51@yahoo.com
6LuzHyatt45Candice87@hotmail.com
7BruceJacobi27Florine_Parisian-Kemmer@gmail.com
8GarrettMann49Penny_Pfeffer@yahoo.com
9WilbertDietrich44Felicia_Cassin@hotmail.com
idfirstNamelastNameageemail
0RaymondBlanda25Peter.Turcotte65@gmail.com
1AdrienneHansen61Freda_Pfannerstill53@hotmail.com
2MaddisonBogan56Thad19@gmail.com
3StuartKris28Ryan63@hotmail.com
4LeslieTillman60Filiberto29@hotmail.com
5IsraelProhaska28Ana_Witting51@yahoo.com
6LuzHyatt45Candice87@hotmail.com
7BruceJacobi27Florine_Parisian-Kemmer@gmail.com
8GarrettMann49Penny_Pfeffer@yahoo.com
9WilbertDietrich44Felicia_Cassin@hotmail.com
idfirstNamelastNameageemail
0RaymondBlanda25Peter.Turcotte65@gmail.com
1AdrienneHansen61Freda_Pfannerstill53@hotmail.com
2MaddisonBogan56Thad19@gmail.com
3StuartKris28Ryan63@hotmail.com
4LeslieTillman60Filiberto29@hotmail.com
5IsraelProhaska28Ana_Witting51@yahoo.com
6LuzHyatt45Candice87@hotmail.com
7BruceJacobi27Florine_Parisian-Kemmer@gmail.com
8GarrettMann49Penny_Pfeffer@yahoo.com
9WilbertDietrich44Felicia_Cassin@hotmail.com

Change Color Scheme

idfirstNamelastNameageemail
0CasimirFahey22Summer.Schumm59@hotmail.com
1AlejandroHerman48Edna_Koelpin@hotmail.com
2MiguelParisian20Angelica.Bashirian@hotmail.com
3KyleighGraham47Bob.Metz14@gmail.com
4DeonCormier22Coralie.Lemke@gmail.com
5AniyahKoch33Cindy_Marquardt63@yahoo.com
6ErickaShanahan26Tonya.Rogahn@hotmail.com
7JulianneOrtiz40Samantha42@hotmail.com
8IsaacHarvey43Coby.Schaefer67@yahoo.com
9FranciscoDibbert41Elsa.Heidenreich@hotmail.com
idfirstNamelastNameageemail
0CasimirFahey22Summer.Schumm59@hotmail.com
1AlejandroHerman48Edna_Koelpin@hotmail.com
2MiguelParisian20Angelica.Bashirian@hotmail.com
3KyleighGraham47Bob.Metz14@gmail.com
4DeonCormier22Coralie.Lemke@gmail.com
5AniyahKoch33Cindy_Marquardt63@yahoo.com
6ErickaShanahan26Tonya.Rogahn@hotmail.com
7JulianneOrtiz40Samantha42@hotmail.com
8IsaacHarvey43Coby.Schaefer67@yahoo.com
9FranciscoDibbert41Elsa.Heidenreich@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0ElenaSenger58Arch54@hotmail.com
1DarwinBoyle27Hans.Gutmann86@yahoo.com
2DakotaHessel43Roberta.Beahan@yahoo.com
3MaeganGibson54Breanne27@hotmail.com
4MarioHuels28Hollis.Larkin79@hotmail.com
5CraigHuels65Jody.Langworth97@hotmail.com
6JulianHoeger21Keon_Rosenbaum@hotmail.com
7BillieCollins46Dale36@yahoo.com
8HortenseLittle52Joe68@yahoo.com
9DaishaTrantow23Lonnie_Altenwerth@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0AmyReichert47Adelle.Kuphal71@yahoo.com
1NyaO'Kon39Tasha.Kreiger@yahoo.com
2JohnathanBahringer49Laverne_Brakus61@yahoo.com
3GussieMosciski34Aurelia_McDermott13@gmail.com
4SherryFranecki50Sheldon.Will84@gmail.com
5LisaErdman-Greenholt25Jonathan.Moore@yahoo.com
6RogerPredovic-Bartell53Cecile_Medhurst-Borer@gmail.com
7BrionnaNolan38Pamela_Grant0@yahoo.com
8NataliaMcCullough59Elinor.Crist@gmail.com
9JoseHermann65Nancy.Veum55@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0HazelWintheiser35Jeannette.Batz-Zieme5@hotmail.com
1CamilleGusikowski35Hugo22@gmail.com
2ZionTorp22Diamond24@yahoo.com
3QuintenGrimes42Ricky_Moen28@gmail.com
4MelodyLind59Mario37@gmail.com
5EmmetLueilwitz21Donna76@yahoo.com
6AbelBoyle57Katelyn_Labadie@yahoo.com
7NicholausKuhlman61Clark.Hodkiewicz@gmail.com
8DarwinLangworth-Kessler29Sonja.Wiegand@gmail.com
9FlorenceMosciski41Bernadette20@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0BlancaWeissnat38Elias_Towne@hotmail.com
1JanisBeer57Brett_Mraz74@yahoo.com
2VickieMcDermott40May24@gmail.com
3HermanKerluke41Florence.Deckow27@gmail.com
4AntoinetteStoltenberg38Estell14@gmail.com
5MorrisParker40Anne_Nikolaus98@gmail.com
6IsobelLindgren19Brenda76@yahoo.com
7KobySchaden34Abdullah.Mitchell@gmail.com
8AlvinThiel28Ben_Baumbach-Kulas@gmail.com
9SammieHoppe31Candelario34@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0CeceliaWalter-Green49Krystal.Gleichner33@hotmail.com(605) 824-3234 x616admininactive12/29/20253/7/2026
1ChaunceyParisian64Delores.Renner@yahoo.com1-550-689-0559 x705useractive6/11/20255/5/2025
2TannerReinger31Lila.Dare72@gmail.com1-348-351-2783admininactive10/17/202511/20/2025
3EinarHowell32Patsy91@hotmail.com749-419-4289admininactive4/16/20261/9/2026
4JackieStroman56Catalina_Feest@yahoo.com1-922-772-6137adminactive7/8/20254/6/2026
5DamonCrooks44Kylie55@yahoo.com893-284-2743 x918adminactive2/20/20261/13/2026
6LeopoldSchuster24Janis.Konopelski18@gmail.com420-860-7473 x529userinactive2/14/20267/19/2025
7WoodrowCummerata-McCullough45Cordie68@yahoo.com421-295-5499 x1554useractive12/15/20257/8/2025
8KavonSchulist31Estrella12@hotmail.com(850) 868-0397 x4884admininactive6/28/202512/24/2025
9EstelHaag45Brian_Sporer52@yahoo.com(711) 218-6706 x627adminactive8/4/20257/10/2025

Header Groups

iduser
nameageemail
firstNamelastName
0NickKemmer65Deshaun42@hotmail.com
1MarcelinoMcLaughlin37Clementina.Weber-Jerde@gmail.com
2PhilGerlach38Emma84@hotmail.com
3MaureenKing42Albertha_Vandervort81@hotmail.com
4FelicitaRempel24Austin.Bergstrom@hotmail.com
5BonnieBuckridge18Hazel_VonRueden86@hotmail.com
6TriciaCollins18Nick53@hotmail.com
7CarolyneFarrell63Lonny6@gmail.com
8OpalJohnson53Claud_Goyette78@gmail.com
9TreverBreitenberg-Harber45Ruben_Koepp@hotmail.com
iduser
nameageemail
firstNamelastName
0ManleyCasper64Mable_Hahn11@yahoo.com
1BernieceFisher52Earnest52@yahoo.com
2DorisReichert31Ryan_Rohan@yahoo.com
3MohammadStokes26Boyd_Gleason@yahoo.com
4ScottyFunk19Malcolm.Pfeffer-Renner@yahoo.com
5FosterBayer54Renee_Stoltenberg91@hotmail.com
6RosiePrice65Lydia_Reichert@gmail.com
7EllieSipes65Crystal60@gmail.com
8LeoraMante52Austyn24@gmail.com
9FelixBalistreri28Maeve.Bosco@gmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0ShayneWyman22Ansel43@hotmail.com
1DelilahSanford39Athena_Kuphal@gmail.com
2EstellaMann65Kayden_Schultz50@gmail.com
3MaddisonHerman38Ryan.Will-Cremin22@gmail.com
4RossieStanton18Roxanne.Kuphal68@hotmail.com
5VictoriaHarris22Rosendo41@hotmail.com
6IraFlatley45Scot_Rowe@gmail.com
7BrantMoen45Lola9@gmail.com
8ClaudeMoore56Trevor_Johns1@hotmail.com
9OtisAdams50Sage.Ward@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
0ArtReinger59Joany_Kris@hotmail.com
1CharleneHettinger19Nora.Adams97@gmail.com
2JuvenalOberbrunner50Sheila87@gmail.com
3AutumnReilly34Halie_Fisher@yahoo.com
4LaverneBlock30Taya.Sporer19@yahoo.com
5LeonBartell61Seth.Bartoletti12@yahoo.com
6ErvinBoyle58Colton_Kemmer77@yahoo.com
7DovieCormier46Brigitte.Aufderhar@gmail.com
8RobinSipes58Mathew.Lindgren-Armstrong@yahoo.com
9SavanahCrona34Wanda58@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0SilviaDibbert19Ulises.Gerhold@gmail.com
1RodneyTreutel30Raquel98@gmail.com
2EltaStiedemann63Cathryn21@gmail.com
3HellenGrady63Jeremie_Rempel@yahoo.com
4JaydonHartmann64Gisselle.Durgan7@hotmail.com
5ReginaParker39Nathen_Hauck@hotmail.com
6CandaceMaggio45Kelsie.Jerde87@yahoo.com
7AracelyNienow40Claire83@hotmail.com
8MercedesMarvin23Randolph.Schaefer@gmail.com
9LeahKozey64Clarissa.Bins@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0AimeeJacobs61June_Hand@hotmail.com
1PrinceHessel24Samuel53@yahoo.com
2WendellKunze41Sherry_Tromp@yahoo.com
3PercyTerry-Padberg25Ashley_Schoen@gmail.com
4TravisKohler54Miguel.Torp@gmail.com
5PatrickZieme38Eula.Nolan@hotmail.com
6SedrickKuphal61Otis_Halvorson61@hotmail.com
7SimoneWalsh57Meta53@yahoo.com
8MeghanTrantow24Kent65@gmail.com
9MabelLubowitz29June_Bauch1@gmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
8IsacStark63Pearlie_Wyman@yahoo.com
0WinifredJenkins59Vicki.Mayert-Jacobi80@yahoo.com
7ShanaO'Reilly50Einar_Zboncak14@yahoo.com
6MiltonJacobson49Gregg_Vandervort27@yahoo.com
2DeloresWuckert33Clifford.Zulauf48@gmail.com
4BertCarroll31Daisy92@yahoo.com
3AudreanneBecker29Kelvin.Auer44@yahoo.com
9NatashaRosenbaum28Kacey48@gmail.com
5KeithMertz27Jarret_Moore@gmail.com
1KearaSchulist22Dovie78@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0JerrellSenger63Carolyn.Leannon@hotmail.com
1YoshikoPagac56Ted33@gmail.com
2JeannetteSkiles41Randolph82@hotmail.com
3GregorySchmidt34Birdie_Orn3@gmail.com
4KaylaCrona26Myra_White@gmail.com
5ErinHerman61Brenna12@gmail.com
6JedediahPurdy23Ira.Kilback@gmail.com
7EddieWyman22Herman.Gorczany18@yahoo.com
8BentonGibson48Morton_Schowalter@hotmail.com
9DeannaParker21Perry.Lubowitz@hotmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0DarylSteuber42Gisselle.Feil96@gmail.com
1FredHammes60Darin_Robel25@hotmail.com
2DannyDietrich40Lynne_Goyette54@gmail.com
3MelyssaLebsack36Jeremy8@yahoo.com
4EmmyGislason23Garnet.Kiehn78@gmail.com
5MurielStanton31Major.Dare80@gmail.com
6JamesBins46Perry42@hotmail.com
7WyattSchiller55Cullen13@gmail.com
8RussellAnkunding39Salvador_Ruecker@gmail.com
9AdamKovacek46May51@hotmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0BernardVandervort19Patty50@hotmail.com
1RoscoeNicolas49Delfina36@gmail.com
2MarlinCummings20Haskell_Kuhic86@gmail.com
3BarryBorer-Bernier44Clemmie_Hilpert9@yahoo.com
4ParkerLubowitz43Eriberto77@yahoo.com
5KaleyMosciski52Roderick.Kirlin@yahoo.com
6DarrylMitchell48Gabriella.Ziemann@hotmail.com
7RonWintheiser46Alberta85@yahoo.com
8AbnerMoore35Mack.Spencer29@yahoo.com
9FrederikBosco65Nancy_Wiegand@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0VelmaWuckert19Chelsey.Heathcote@yahoo.com
1LuzKerluke42Lenny.Daniel-Bernhard86@yahoo.com
2IreneHalvorson26Itzel.Champlin@yahoo.com
3DaynaOndricka-Okuneva39Leigh_Zboncak77@yahoo.com
4CarmenBeier46Destiny80@gmail.com
5SaraHarvey44Beatrice_Cole35@hotmail.com
6JannieHyatt64Triston32@yahoo.com
7MiriamJohnston42Maria2@yahoo.com
8JefferyBerge47Conrad22@yahoo.com
9EdisonAnderson57Clyde_Hansen2@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
0JudyD'Amore60Keon.Lynch98@gmail.com
1MableBernier18Jeff0@yahoo.com
2GenovevaThompson26Cassandra_Veum53@hotmail.com
3BurdetteWard35Gail_Pacocha@hotmail.com
4JustynLueilwitz40Lyla_Reinger@gmail.com
5AmaraToy47Johnny41@yahoo.com
6DwayneFranecki58Cory.Fadel47@yahoo.com
7KristopherWolff33Doris.Johns@yahoo.com
8TylerDaniel42Raquel5@yahoo.com
9BulahRau55Lester_Lesch@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0MosesO'Hara19Georgiana.Dicki55@hotmail.com
1BethanyProhaska48Marcelle58@yahoo.com
2RosarioWard65Fernando.Block@yahoo.com
3FloJaskolski53Jana67@gmail.com
4BarrettKuhic26Myrtle_Sauer@hotmail.com
5PaulMoore45Melinda57@yahoo.com
6BrooksBartell-Johnston54Noe_Little64@yahoo.com
7BethanySchinner47Maye20@gmail.com
8MartinSchowalter45Brian14@gmail.com
9JazmynHirthe-Feeney24Kurt.Bogan@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
0CindyKerluke-Mayert31Wilson_Goldner@gmail.com
1CullenGutkowski37Joelle_Stokes50@yahoo.com
2JenningsBosco51Lisa.Harber76@hotmail.com
3MakaylaKautzer36Prudence_Ullrich74@gmail.com
4RickyGrimes-Bernhard21Archie.Schmeler@hotmail.com
5PattyHeidenreich20Ed.Macejkovic68@yahoo.com
6GerardWiegand51Louvenia.Bailey82@hotmail.com
7LelandHaley42Kirk_Klocko-Denesik@gmail.com
8OmarKlein29Vincent_Luettgen@gmail.com
9ArthurToy52Thomas_Hegmann@hotmail.com
10NoahSchmeler49Marlene_Fadel@gmail.com
11NoreneHarvey56Sabryna.Purdy19@hotmail.com
12BenWilderman56Shana_Zieme@yahoo.com
13DayanaWyman39Bobby.Tremblay-Greenholt@yahoo.com
14AllenVeum33Chase_Luettgen@hotmail.com
15DelaneyKautzer31Jeffry_Runolfsdottir35@hotmail.com
16WillyFay32Fred_Green30@hotmail.com
17KristaHaag45Iris34@hotmail.com
18VirgieWatsica57Erich99@gmail.com
19RonUpton38Ally_Jacobi12@gmail.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
10LauraCorkery60Ole.Boyer@yahoo.com
11RamonaKohler50Dulce3@yahoo.com
12KennaHodkiewicz30Sam.Stokes@gmail.com
13WillardOkuneva39Jedediah_Hamill96@yahoo.com
14TheronMurazik52Yasmin.Kreiger22@hotmail.com
15JoannReichel65Guiseppe67@hotmail.com
16HenriettaCartwright64Prudence36@hotmail.com
17RosalindaHermiston57Leigh65@gmail.com
18LenaMacejkovic43Debbie.Gerhold@yahoo.com
19ErikRolfson29Demarco.Welch@hotmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0AlizaKihn21Eloise_Armstrong68@yahoo.com
1LuigiCartwright62Tito_Purdy20@gmail.com
2GeorgetteWeber41Tommy.Bins@hotmail.com
3GladyceBergnaum59Hershel_Zboncak86@hotmail.com
4RosieShanahan27Gerardo.Maggio7@gmail.com
5RhondaNader40Patricia36@gmail.com
6HarrietLubowitz31Anita.Abshire75@hotmail.com
7EdwinCasper64Tyrone14@hotmail.com
8CeciliaO'Reilly39Dallin_Ernser20@yahoo.com
9AmeliaGutkowski63Marlene29@hotmail.com
10JudyVonRueden34Veda.Marquardt@hotmail.com
11LindsaySwift50Mervin.OHara@hotmail.com
12KristinaBosco41Forrest.Borer@yahoo.com
13OwenSchmeler33Doug.Runte68@gmail.com
14NicoleZieme39Cora95@yahoo.com
15MitchellTorp62Rashawn_Kshlerin50@gmail.com
16CalvinRussel44Sherman.Thompson-Schuppe66@yahoo.com
17GradyBoehm59Brenna_Kozey65@hotmail.com
18AlexandraTerry45Delaney0@hotmail.com
19AlekHand62Dale22@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0MindyBogan52Christian44@yahoo.com
1WinifredArmstrong-Smitham61Gavin.Haag@hotmail.com
2MaeveUllrich29Kurtis3@yahoo.com
3ArnaldoWisoky55Harriet56@gmail.com
4IvanHaley59Johathan.Keebler@hotmail.com
5MedaRice52Gwendolyn.Smitham40@hotmail.com
6FrancesZiemann55Gayle_Gerhold@hotmail.com
7SethHand45Esmeralda85@gmail.com
8NaomieBode-Schneider53Ernestine.Batz78@yahoo.com
9MyaChamplin60Alize_Windler31@gmail.com
10AubreeDooley58Murray16@gmail.com
11MalindaHoppe46Oceane_Harvey@yahoo.com
12FrankLittel47Maxime_Cole@hotmail.com
13LurlineBashirian18Paris_Stracke@gmail.com
14TeriTorp59Myah_Marks@gmail.com
15LawrenceLindgren41Jairo_Huels27@hotmail.com
16AmariSchmeler60Domenic30@hotmail.com
17BillyWindler56Melvin.Kemmer@gmail.com
18RebaWolff56Archie63@yahoo.com
19ShakiraKautzer47Gilberto_Gislason82@yahoo.com

Enable Row Selection

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

idfirstNamelastNameageemail
0MargueriteDenesik51Friedrich_Heaney29@hotmail.com
1SamuelAnkunding-Runolfsson18Jane80@yahoo.com
2IlianaGulgowski64Anne20@yahoo.com
3FrancesOrtiz48Corey.Shields95@gmail.com
4BetsyMcCullough24Bessie_Batz@gmail.com
5JusticeSipes26Rickey_Murray12@hotmail.com
6ToddJaskolski56Shemar60@yahoo.com
7EdgarWest31Alec_Schmitt@hotmail.com
8HeberPrice59Gwendolyn90@yahoo.com
9RalphKerluke45Alec_Brekke28@hotmail.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
0DaytonKertzmann59Eunice_Witting75@hotmail.com
1TrevorBogisich24Christiana.Hamill@hotmail.com
2VanessaMaggio32Todd43@hotmail.com
3DallinGleason-Nienow44Jeanne_Schimmel48@yahoo.com
4MeganStreich36Roxanne_Hyatt@gmail.com
5ChetBashirian31Darren89@yahoo.com
6JasonHeathcote41Jennifer_Strosin54@yahoo.com
7HowardMedhurst64Robert_Denesik@yahoo.com
8TrishaOsinski25Theresa68@hotmail.com
9EricaZboncak63Woodrow.Ullrich@gmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0DeionBrakus26Rogers59@yahoo.com
1JaylenFeest27Jeanie.Miller@hotmail.com
2VeronicaKutch52David69@gmail.com
3HankBreitenberg43Ephraim28@yahoo.com
4CarletonPaucek41Giuseppe95@gmail.com
5RalphWard44Isaias43@gmail.com
6RosaFay37Karson_Thiel@yahoo.com
7RaleighZboncak44Pascale.Okuneva56@gmail.com
8FrankieKeebler47Jaime71@hotmail.com
9RolandoWilliamson19Marc_Hartmann@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0MargaretSchuppe28Lucy.Kris@hotmail.com
1WaltonLabadie30Miller25@gmail.com
2LaishaStokes40Deontae.Walter43@gmail.com
3ErvinPfeffer45Krystina10@gmail.com
4MohamedWiegand41Gennaro21@gmail.com
5EverardoKoss18Brielle_Bahringer@gmail.com
6DoraRunolfsdottir37Luke.Predovic60@hotmail.com
7EdnaVandervort22Talon.Schaden@hotmail.com
8HenryMarks47Rita53@yahoo.com
9FurmanRaynor52Nico.Hyatt@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0EvanRodriguez36Otis.Heaney@yahoo.com
1RoseSmitham56Elsa3@hotmail.com
2AnnabelleStokes24Eda.OHara@yahoo.com
3AlfredMitchell19Carli_Lynch@yahoo.com
4WinstonRunolfsson54Rick_Schoen0@yahoo.com
5VincentWeber19Destinee.Kulas31@hotmail.com
6LetaProsacco65Gina31@hotmail.com
7BeulahMann-Dibbert62Jaeden_Marquardt@gmail.com
8EmilieLehner56Junior.Labadie71@gmail.com
9NewtonWiza29Meagan63@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0ElaineMcDermott58Delmer_Zulauf@hotmail.com
1LenaWalter42Aida35@gmail.com
2UrbanHowe33Wilbert71@gmail.com
3BradyMorissette58Heather93@yahoo.com
4NikolasWelch23Cassandra.Lowe65@hotmail.com
5HildaBaumbach50Lisa24@yahoo.com
6LelaOrn31Michelle27@gmail.com
7JimMoore23Anahi95@gmail.com
8JoshZulauf47Rosemary38@gmail.com
9EmmyUpton44Felipe.Reichel@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0PabloJones35Aniyah86@gmail.com
1MiguelRaynor-Russel50Zion18@gmail.com
2NelleRolfson31Addie.Rath50@gmail.com
3MaeGleason53Raheem_Grady24@gmail.com
4ElyseO'Connell-Robel49Rosella48@hotmail.com
5ElroyWelch27Claudia6@hotmail.com
6MayraRohan52Theresa_Stracke@hotmail.com
7FaithO'Connell65Lynne.Schulist@hotmail.com
8RolandoMitchell19Bettie.Auer78@yahoo.com
9DockJones61Adrain33@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
2DedrickFeest-Haag50Emilie8@gmail.com
8CeceliaTromp22Rosalee30@gmail.com
9RahsaanHegmann45Saul.Towne@gmail.com

Control Filter

idfirstNamelastNameageemail
0BernadetteMacGyver59Walton.Considine@yahoo.com
1RosalindaWill28Rhoda.Nader@yahoo.com
2VirgilWatsica60Harvey_Upton@yahoo.com
3AidaMoen38Todd_Swaniawski@hotmail.com
4DaleThompson56Jillian0@gmail.com
5LouisZemlak46Emma66@hotmail.com
6GisselleBecker39Melissa_Marvin@yahoo.com
7GrahamSchowalter20Christy85@yahoo.com
8SheriSchoen57Dewey_Walter26@gmail.com
9DavidStehr19Edith73@gmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0AlexandrineOrn46Katlynn.Nikolaus93@yahoo.com
1AdahRice27Kira_Abshire20@hotmail.com
2IanMarvin45Nicholas50@gmail.com
3SamirPowlowski44Darius85@hotmail.com
4AndreaQuigley24Jonathan61@yahoo.com
5RosalindaHudson19Esther.Kub74@gmail.com
6DarenReichert19Rolando.Zulauf@hotmail.com
7KeanuLakin30Enrique36@yahoo.com
8FelixLarson21Shelley_Anderson@yahoo.com
9BraulioWuckert54Kristine_Bechtelar95@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
0NoemyFunk19Cecil_Zulauf66@yahoo.com
1JuliusPfannerstill-Kerluke23Gerda.Stamm@hotmail.com
2SavannaHuel32Betsy_Pollich@hotmail.com
3ReginaldMertz43Clay_Grant@yahoo.com
4LeroyLowe51Chelsea94@hotmail.com
5PerryOlson34Albert_Bins26@hotmail.com
6EricKlein35Ian53@yahoo.com
7JayceBednar59Olin.Marvin@gmail.com
8MaxStoltenberg65Ismael_Dietrich@yahoo.com
9MarcosNienow-Cummings54Charley_Halvorson@gmail.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

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.

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