Table

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

IDFirst nameLast nameAgeEmail
0HaskellRunolfsson46Leonora.Williamson@yahoo.com
1WillQuigley52Gerhard44@gmail.com
2JackyFraney52Zachary.Weber14@gmail.com
3AniyaGerhold27Madeline20@yahoo.com
4AnabelTromp56Casandra.Wilkinson93@gmail.com
5KoleKautzer33Alena23@hotmail.com
6KevonBotsford62Raina.Botsford@gmail.com
7MalachiSchaefer43Ignacio.Dare@gmail.com
8JedidiahReinger18Elna46@hotmail.com
9ArdenWisozk65Britney.Stiedemann-OKon@hotmail.com

Usage

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

Change Variant

IDFirst nameLast nameAgeEmail
0RosalindaDaugherty64Clotilde.Bahringer11@gmail.com
1IsadoreMcLaughlin61Ephraim.Dooley@yahoo.com
2SavannahSchultz30Wm51@gmail.com
3JanRath60Odie_Jast22@yahoo.com
4DarrenSporer46Weston19@hotmail.com
5JimmieBayer52Vada23@yahoo.com
6HalieUpton41Olen_OReilly@yahoo.com
7BobZulauf31Ivy63@yahoo.com
8MariettaLind46Jerel11@hotmail.com
9AlizeNader19Deja94@hotmail.com
IDFirst nameLast nameAgeEmail
0RosalindaDaugherty64Clotilde.Bahringer11@gmail.com
1IsadoreMcLaughlin61Ephraim.Dooley@yahoo.com
2SavannahSchultz30Wm51@gmail.com
3JanRath60Odie_Jast22@yahoo.com
4DarrenSporer46Weston19@hotmail.com
5JimmieBayer52Vada23@yahoo.com
6HalieUpton41Olen_OReilly@yahoo.com
7BobZulauf31Ivy63@yahoo.com
8MariettaLind46Jerel11@hotmail.com
9AlizeNader19Deja94@hotmail.com

Change Size

IDFirst nameLast nameAgeEmail
0SusanTowne32Eulalia_Franecki22@hotmail.com
1SadyePfannerstill37Javon67@yahoo.com
2ReannaVon23Peyton_Rosenbaum66@yahoo.com
3AntoneGorczany54Connie_Medhurst@yahoo.com
4HarryJenkins-Miller34Maureen.Hilll23@hotmail.com
5UriahSenger50Karine71@gmail.com
6JadeStoltenberg42Lizzie.Roob@yahoo.com
7HobartDoyle65Joann_Russel61@gmail.com
8KadinBraun19Nayeli85@gmail.com
9LessieCorwin58Thora_Nader@gmail.com
IDFirst nameLast nameAgeEmail
0SusanTowne32Eulalia_Franecki22@hotmail.com
1SadyePfannerstill37Javon67@yahoo.com
2ReannaVon23Peyton_Rosenbaum66@yahoo.com
3AntoneGorczany54Connie_Medhurst@yahoo.com
4HarryJenkins-Miller34Maureen.Hilll23@hotmail.com
5UriahSenger50Karine71@gmail.com
6JadeStoltenberg42Lizzie.Roob@yahoo.com
7HobartDoyle65Joann_Russel61@gmail.com
8KadinBraun19Nayeli85@gmail.com
9LessieCorwin58Thora_Nader@gmail.com
IDFirst nameLast nameAgeEmail
0SusanTowne32Eulalia_Franecki22@hotmail.com
1SadyePfannerstill37Javon67@yahoo.com
2ReannaVon23Peyton_Rosenbaum66@yahoo.com
3AntoneGorczany54Connie_Medhurst@yahoo.com
4HarryJenkins-Miller34Maureen.Hilll23@hotmail.com
5UriahSenger50Karine71@gmail.com
6JadeStoltenberg42Lizzie.Roob@yahoo.com
7HobartDoyle65Joann_Russel61@gmail.com
8KadinBraun19Nayeli85@gmail.com
9LessieCorwin58Thora_Nader@gmail.com

Change Color Scheme

IDFirst nameLast nameAgeEmail
0AileenCummings-Hilpert27Levi.Blanda@hotmail.com
1JaniceKeeling63Jedediah_Johnson@hotmail.com
2KennethEffertz28Bernadette.Rutherford86@yahoo.com
3HershelWintheiser27Shanny73@hotmail.com
4KeelyDooley54Madeline_Blick94@yahoo.com
5AvisJacobs62Clifton_Sauer@yahoo.com
6GrahamO'Connell29Percival.Ruecker@hotmail.com
7StanHackett19Arielle26@gmail.com
8SoledadChristiansen24Steve.Stehr@gmail.com
9AnyaSchoen19Jerrold_Robel10@hotmail.com
IDFirst nameLast nameAgeEmail
0AileenCummings-Hilpert27Levi.Blanda@hotmail.com
1JaniceKeeling63Jedediah_Johnson@hotmail.com
2KennethEffertz28Bernadette.Rutherford86@yahoo.com
3HershelWintheiser27Shanny73@hotmail.com
4KeelyDooley54Madeline_Blick94@yahoo.com
5AvisJacobs62Clifton_Sauer@yahoo.com
6GrahamO'Connell29Percival.Ruecker@hotmail.com
7StanHackett19Arielle26@gmail.com
8SoledadChristiansen24Steve.Stehr@gmail.com
9AnyaSchoen19Jerrold_Robel10@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

IDFirst nameLast nameAgeEmail
0NobleBuckridge19Cristobal_Grimes@gmail.com
1KarenErdman27Vida_Pollich@gmail.com
2MarcelinoBreitenberg33Deborah79@yahoo.com
3ZackeryTurcotte54Sofia32@yahoo.com
4TyriqueHyatt26Demond_Abshire55@gmail.com
5TravonGorczany40Tracy.McCullough88@hotmail.com
6GladysOsinski21Zaria_Ebert90@gmail.com
7DaphneHarber32Mackenzie_Collins25@gmail.com
8WinstonBraun62Palma.Treutel@hotmail.com
9JeramieSenger52Mike70@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

IDFirst nameLast nameAgeEmail
0AlexandrineRobel42Jodi_Greenholt@hotmail.com
1MaymieDietrich62Elyse.Witting78@hotmail.com
2GuiseppePfeffer45Roma_Waelchi93@yahoo.com
3MauricioFeest40Libbie.Balistreri@gmail.com
4HassieLuettgen56Timmothy.Collier@yahoo.com
5BridgetteHettinger63Barrett_Waelchi@hotmail.com
6PearlieDuBuque27Keon.Gleichner29@gmail.com
7WayneMcGlynn48Connie77@gmail.com
8MargeMcGlynn54Else52@yahoo.com
9HarleyGorczany19Theresa23@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

IDFirst nameLast nameAgeEmail
0RachelToy36Mary.Rippin17@yahoo.com
1MaribelBechtelar21Theresia.Bogan51@hotmail.com
2KeltonGoyette55Austin14@yahoo.com
3EricaCarter31Jo.Oberbrunner@hotmail.com
4MikelMueller38Savion.Windler29@gmail.com
5CamrynOberbrunner55Thurman.Franey@yahoo.com
6VeronicaRoob54Chelsea.Bernhard27@yahoo.com
7BaileeHerman32Cale33@yahoo.com
8BryceDavis60Annie56@hotmail.com
9CaitlynDietrich39Gerard.Kessler@yahoo.com

Striped

To enable striped rows, set striped to true.

IDFirst nameLast nameAgeEmail
0RosinaKonopelski45Marcia.Marquardt51@yahoo.com
1HermanGutkowski62River_Moen@hotmail.com
2EuniceCummerata30Dario.Kuhlman@gmail.com
3AdolphusRogahn56Stan.Deckow15@gmail.com
4SelenaGottlieb39Meredith77@gmail.com
5OzellaKohler35Lynette4@gmail.com
6ArjunHirthe26Micah.Greenfelder11@yahoo.com
7CaylaMorissette34Shemar.Lockman81@hotmail.com
8KayaLueilwitz38Miles_Heaney@yahoo.com
9AlBartell49Emerald.Bernhard@hotmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

IDFirst nameLast nameAgeEmailPhoneRoleStatusCreated atUpdated at
0EmiliaWeber36Karina.Lemke-Torphy@gmail.com(537) 918-0752 x79490UserActive4/20/20264/23/2026
1JaedenGulgowski18Alverta_Torphy@yahoo.com843-250-8984 x2041AdminActive8/25/20261/11/2026
2JazmyneLubowitz63Layla17@gmail.com940-400-7451 x281AdminInactive12/6/202511/11/2026
3KaitlinBogan48Dolly_Dooley@yahoo.com368-703-6791UserActive7/28/202611/1/2026
4GwenKlocko34Graham.Reynolds@hotmail.com(402) 318-5900 x780UserActive7/19/20265/22/2026
5KadenRoberts33Jarrell_Windler43@hotmail.com305.647.3544 x660UserInactive6/20/20263/13/2026
6JennyKoelpin19Leopold_Von@yahoo.com916.901.7949 x533UserInactive3/13/20263/5/2026
7DonKovacek31Aliza.Becker11@gmail.com285-343-2738 x223UserInactive1/27/20262/22/2026
8LeilaniDavis54Dakota83@yahoo.com244.459.5193 x3126UserActive10/15/20262/22/2026
9AlonzoBauch56Dandre.Johns@gmail.com1-317-529-9698 x405UserInactive11/10/20263/21/2026

Header Groups

IDUser
NameAgeEmail
First nameLast name
0GenesisGreen54Ova.Kub@yahoo.com
1KarinaOkuneva28Millie.Abbott@hotmail.com
2JeannetteHammes24Royce79@yahoo.com
3AlvahRobel46Floy.Kunze@gmail.com
4JavierMacGyver35Hanna_Bosco20@gmail.com
5KathlynCarter49Laverne_Kunze49@yahoo.com
6BabyAdams-Thiel51Mamie_Reinger42@yahoo.com
7AhmadRath28Sebastian26@hotmail.com
8MayeOkuneva20Aletha.Hand@gmail.com
9WinstonLeffler43Meredith66@hotmail.com
IDUser
NameAgeEmail
First nameLast name
0MarielleSchroeder64Marc.Romaguera@gmail.com
1KayliKirlin27Lew_MacGyver@yahoo.com
2TateDooley51Berenice.Strosin21@gmail.com
3MadieVonRueden47Cara_Smith@gmail.com
4RosettaCummerata42Makenzie.Schumm89@yahoo.com
5GuadalupeTerry46Wyatt_Orn@gmail.com
6VincenzoUllrich58Cicero29@hotmail.com
7RebecaHamill64Clair.Stark61@gmail.com
8GerhardStark34Adolph.Anderson-Stiedemann97@gmail.com
9RubieLeffler31Angie.Bradtke36@gmail.com
IDFirst nameLast nameAgeEmail
Name
User

Disable Keyboard Navigation

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

IDFirst nameLast nameAgeEmail
0RochelleReichel65Abelardo_Strosin-Sanford@yahoo.com
1ErnieStanton62Kavon97@hotmail.com
2RandallMiller30Roderick19@hotmail.com
3TerrellFritsch18Demond_McDermott@gmail.com
4VicentaConsidine24Sydni.Deckow21@hotmail.com
5CleoraKunde28Oda_Reinger76@gmail.com
6RexMohr32Lisette70@gmail.com
7AgustinFraney-Kulas56Kristy.Langosh65@yahoo.com
8TellyBerge24Lucille.Gutkowski91@yahoo.com
9DannyCrona52Lora_Hudson@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 }.

IDFirst nameLast nameAgeEmail
0JanaKerluke37Jedidiah63@hotmail.com
1AlfredaMraz47Tiffany.Greenholt@gmail.com
2KeeleyKautzer24Mathilde.Lockman@yahoo.com
3PaoloBeatty49Kianna57@gmail.com
4FilibertoLehner45Kira41@yahoo.com
5AlisaLemke23John.Bartoletti15@gmail.com
6TheodoreWeimann25Dillan.DuBuque36@hotmail.com
7OletaVon61Elwin.Champlin90@hotmail.com
8MonicaLindgren46Micaela90@yahoo.com
9EmeryNolan61Buster_Langosh@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

IDFirst nameLast nameAgeEmail
0FeltonStrosin52Myah43@gmail.com
1MarcellaMedhurst35Lenna_Weber@hotmail.com
2NoreneSwift46Gabriella_Hoeger62@gmail.com
3CristobalCummerata62Tony.Mosciski35@hotmail.com
4NikkiKeebler28Sylvia_Homenick47@yahoo.com
5CliffordFadel23Gianni.Carroll@gmail.com
6JanessaKuvalis32Clementina_Jast@yahoo.com
7GlennWaters57Shelia16@hotmail.com
8MertieTromp30Maria46@hotmail.com
9FrankKassulke65Charlene_Jaskolski@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

IDFirst nameLast nameAgeEmail
0AltaReynolds59Trystan_Botsford@yahoo.com
1WilbertJast63Estell_Reynolds@gmail.com
2GlennaKautzer46Sabina_Pacocha54@hotmail.com
3CarolynStreich46Retha42@hotmail.com
4OmarLebsack40Mariana72@gmail.com
5ElviraBrakus45Sallie19@hotmail.com
6NoeliaYundt65Sally_Boehm35@gmail.com
7ReyPagac59Michaela40@hotmail.com
8ThomasHayes35Delores.Stark37@gmail.com
9MalloryVolkman24Devante45@yahoo.com

Set Default Sorting

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

IDFirst nameLast nameAgeEmail
8AntoninaSkiles65Ernestine70@hotmail.com
5LoySchmitt63Araceli72@gmail.com
4GarnettCartwright59Ethelyn.Schumm47@yahoo.com
7EvieKovacek46Evalyn.Cummings@gmail.com
0SebastianDouglas42Dillon_Labadie-Jacobson98@yahoo.com
3VioletLesch42Kristie.Wuckert36@hotmail.com
1WatsonMosciski38Waino_Ernser-Thiel0@hotmail.com
2EnaQuigley31Adonis54@yahoo.com
6LouiseMetz29Gracie_Haley1@hotmail.com
9DarlaBaumbach24Rachael.Kshlerin@yahoo.com

Disable Sorting

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

IDFirst nameLast nameAgeEmail
0StacyMiller53Mervin_Murray75@hotmail.com
1TheaBreitenberg56Julian_Jenkins@hotmail.com
2EvaLebsack36Cara.Waelchi88@gmail.com
3GennaroJohnson60Jeffry.Shields@gmail.com
4LuraTowne45Trudie_Sanford67@yahoo.com
5JaceCole23Doyle.Kshlerin@hotmail.com
6ConnerRussel47Derek.Hilll@hotmail.com
7ShelleyKunze49Raphaelle72@gmail.com
8JaidaTreutel60Elvie81@gmail.com
9EugeniaHomenick20Noah82@yahoo.com

Disable Multi Sorting

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

IDFirst nameLast nameAgeEmail
0CordeliaHowe38Kevon.Boyer52@gmail.com
1OpalKunde30Clifton.Langworth@yahoo.com
2RosemaryLindgren59Kennedy34@yahoo.com
3BennieVon27Avery24@gmail.com
4ColtHuel18Lindsay_Beier@hotmail.com
5QueenBergstrom60Justyn92@yahoo.com
6MerlTromp26Rene23@gmail.com
7MaudiePollich48Dolly.Feest@yahoo.com
8CarrieOsinski45Lue10@hotmail.com
9DarenWyman58Kaden.Larson21@gmail.com

Set Maximum Sortable Columns

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

IDFirst nameLast nameAgeEmail
0BlancheConsidine46Raphael27@gmail.com
1ElnaProsacco37Salvador_Rolfson20@gmail.com
2BaileeDickens40Tillman.Shields93@gmail.com
3ReaganMertz49Clement50@hotmail.com
4FernandoHeathcote37Ryann.Hills@yahoo.com
5HazelJacobson18Russ_Gorczany@yahoo.com
6MargarettMacejkovic32Beulah.Funk61@hotmail.com
7AbdullahBogisich61Velma0@yahoo.com
8KaylahConn33Woodrow.Baumbach83@hotmail.com
9FreddyMorissette42Keegan38@hotmail.com

Manual Sorting

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

IDFirst nameLast nameAgeEmail
0ReganCronin45Pearline62@hotmail.com
1TerrellHeller19Chandler.Hermiston@hotmail.com
2EllsworthMante64Marion6@yahoo.com
3DedrickKlein36Summer.Carter-Rolfson@yahoo.com
4JakeKautzer-Ritchie52Tevin21@yahoo.com
5KristinReinger-Gottlieb55Alysson43@hotmail.com
6KrystinaHaley54Carlee.Kuhlman@yahoo.com
7ZanderCrist55Delta_White7@hotmail.com
8LeonorHowell20Meggie_Beer1@gmail.com
9LeannePaucek58Kaitlyn_Oberbrunner@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.

IDFirst nameLast nameAgeEmail
0MedaPollich62Darrell.Blanda64@yahoo.com
1MarieCrist52Vincenza_Little@gmail.com
2DillonWolff30Greta_Ruecker65@gmail.com
3TraciKoepp34Precious.Gorczany19@yahoo.com
4BlakeLesch41Ross.Considine77@hotmail.com
5AlexandroLittel41Josefa.Rice43@hotmail.com
6EricaO'Reilly39Hugo96@hotmail.com
7WillardGottlieb21Ofelia_Toy53@yahoo.com
8WellingtonWest40Carlie.Wintheiser60@gmail.com
9JennieDurgan34Joe_Johnston92@hotmail.com

Control Sorting

IDFirst nameLast nameAgeEmail
0VladimirConroy52Zora_Kirlin18@hotmail.com
1MichaelStracke63Jaylin_Legros@gmail.com
2ShawnErdman-Nolan36Lucio70@gmail.com
3MyronGreen44Destini_White85@hotmail.com
4MargaretWeimann28Annetta47@yahoo.com
5DaveWindler34Matthew_Cremin@hotmail.com
6CamylleSchaefer22Assunta_Hoppe@yahoo.com
7AmirSchoen34Enrique_Kling17@yahoo.com
8FridaRippin53Jessika_Hauck@yahoo.com
9JoanneWelch45Eldred.OReilly@hotmail.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.

IDFirst nameLast nameAgeEmail
0JaysonBins35Warren36@gmail.com
1AdrianWatsica47Helena.Hills37@yahoo.com
2KileyDeckow44Trenton4@yahoo.com
3SarahDavis59Merlin.Greenholt35@gmail.com
4BlairCartwright61Ignatius66@hotmail.com
5MaggiePrice51Augustus_Lynch@yahoo.com
6EarleneBoyle63Manuel51@hotmail.com
7MattFeest44Bell_Mayert22@yahoo.com
8KurtisDouglas30Deshaun_Schmidt@hotmail.com
9AlizeRice35Melba15@yahoo.com
10EvansDickens30Penny_Rau@gmail.com
11EmmyKreiger52Rashad86@hotmail.com
12IleneZiemann-Volkman36Vincenzo87@yahoo.com
13KadenLedner52Becky71@yahoo.com
14JevonFahey43Rudolph_OKeefe93@hotmail.com
15DestanyMitchell28Jerod.Greenholt78@gmail.com
16SarahReinger35Solon65@hotmail.com
17MarquisMohr41Lavern29@gmail.com
18AdityaKuphal37Rubie_Lynch@yahoo.com
19HeavenTromp31Gilberto50@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.

IDFirst nameLast nameAgeEmail
10BobbieLakin58Kyla_Zemlak-Beatty85@gmail.com
11DarrinPfeffer25Christ.Gleichner@hotmail.com
12NyaCartwright20Rigoberto29@yahoo.com
13MyrtisAnderson52Addie24@yahoo.com
14NickGottlieb49Antonia_Breitenberg41@gmail.com
15ColbyZulauf44Hoyt_Leuschke54@yahoo.com
16LillieRau48Ila.Walter62@hotmail.com
17CeciliaOberbrunner30Aubree.Von66@hotmail.com
18GermaineWill49Zita_Stokes78@hotmail.com
19DeannaVandervort58Kacey.Reichert10@gmail.com

Use Manual Pagination

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

IDFirst nameLast nameAgeEmail
0CreolaBatz-Bogisich58Mildred_Heidenreich93@yahoo.com
1RahsaanBlanda22Loren.Glover@yahoo.com
2PinkTremblay62Sunny_Lockman@gmail.com
3NolanDouglas22Maryse72@gmail.com
4HiltonJast45Trevor9@hotmail.com
5TavaresArmstrong30Eleanor41@yahoo.com
6JackyBecker49Ivan6@gmail.com
7ReannaKertzmann50Elisabeth_Reichel@gmail.com
8DwayneCollier40Laurel_Kemmer@yahoo.com
9TheodoreLehner60Leroy.Wolff69@hotmail.com
10ZariaSimonis64Marshall.Will7@hotmail.com
11NolanJaskolski26Myrtie8@gmail.com
12JoeyHermiston61Isaiah.Schuppe91@yahoo.com
13TammySchulist18Ramiro_Wilkinson-Bechtelar@yahoo.com
14StephenConn27Reymundo80@yahoo.com
15IsadoreHintz57Alford.Hilpert@gmail.com
16KylerHilpert37Tod50@yahoo.com
17AliHudson40Johan_Bogisich4@gmail.com
18DannieKuhic39Junior_Ryan81@hotmail.com
19HeloiseHoppe36Braeden14@hotmail.com

Control Pagination

IDFirst nameLast nameAgeEmail
0GarretWitting30Elijah.Kihn65@gmail.com
1WandaO'Conner22Ulices.Dooley@hotmail.com
2JanWilderman30Sheldon4@yahoo.com
3LoyBeer46Dario33@gmail.com
4AngelineStroman27Sabryna.Metz@yahoo.com
5FilibertoRosenbaum53Bryan20@yahoo.com
6AliyaSpencer22Sienna.Farrell83@gmail.com
7NewtonWolff23Alyson.Kerluke@yahoo.com
8GarrettBecker35Garnet9@yahoo.com
9RockyCorwin33Eudora22@yahoo.com
10OrieGutkowski23Keegan.Aufderhar73@gmail.com
11RosaWindler52Naomie16@hotmail.com
12LouieMarvin39Santino51@gmail.com
13PeteHoppe21Skye_Wilderman22@hotmail.com
14RaulCronin52Terri.Jones@hotmail.com
15HerbertRippin57Devan.Schmitt18@yahoo.com
16StaceyKautzer32Quinten.Turcotte@hotmail.com
17ShainaWolf40Ashton85@yahoo.com
18RamonaGreenholt31Amani91@yahoo.com
19NorvalBashirian54Keith37@gmail.com

Enable Row Selection

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

IDFirst nameLast nameAgeEmail
0JamirCorkery55Jamaal99@gmail.com
1DemarcoBradtke61Emmett_Brakus75@yahoo.com
2CamillaDenesik45Amalia.Schumm51@yahoo.com
3VictoriaMohr61Maymie89@hotmail.com
4ProvidenciBahringer47Edison24@yahoo.com
5LionelConnelly43Chesley75@hotmail.com
6KylaWard24Casandra_Ankunding-Collins65@hotmail.com
7JaneMacejkovic54Misael86@yahoo.com
8JordaneMueller-Quitzon31Kristina_Schowalter61@yahoo.com
9SalvatoreWhite36Clark19@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.

IDFirst nameLast nameAgeEmail
0AydenZiemann58Pearlie_DAmore6@gmail.com
1KaraDeckow29Nora_Hessel32@hotmail.com
2GeneBruen-Rosenbaum45Buford_Lowe13@yahoo.com
3MelanieHuel30Breanna49@yahoo.com
4AlexaAuer40Kiley_Lemke@hotmail.com
5MylesWill36Cornelius_Mraz61@hotmail.com
6DaniellaGleichner55Ariane58@gmail.com
7FletcherTremblay63Vincent19@hotmail.com
8TaylorCummings45Allie_Hyatt26@hotmail.com
9MonteMorar22Jennings_Romaguera49@gmail.com

Enable Row Selection on Click

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

IDFirst nameLast nameAgeEmail
0BrendanQuitzon34Agustina.Mante@hotmail.com
1BethelSatterfield52Ismael_Gottlieb@hotmail.com
2CrystalSmith62Burnice.Frami@gmail.com
3NarcisoBergnaum40Orie15@hotmail.com
4MoisesRogahn51Blanca_Stehr@yahoo.com
5MatthewHills45Johann_Brekke81@yahoo.com
6JaquelinAbernathy32Daisha87@yahoo.com
7MacMarquardt19Liam.Hartmann42@yahoo.com
8MurrayGraham34Mervin.Kuhlman@gmail.com
9JeniferGleichner29Ford.Krajcik@yahoo.com

Hide Checkbox

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

IDFirst nameLast nameAgeEmail
0ShaneBrekke22Eliza.Bogisich44@gmail.com
1KarlaOrtiz64Alia53@yahoo.com
2EdmondAdams49Angie60@yahoo.com
3OcieMoen27Kaylie.Rohan57@hotmail.com
4EdSchmeler51Robyn_Fahey8@gmail.com
5NorvalJacobs51Larissa_Prosacco@gmail.com
6JessycaKoch46Inez.Gerhold@hotmail.com
7TristinBalistreri29Alexandrine93@yahoo.com
8RuthEmmerich47Audreanne.Gislason@hotmail.com
9RupertThiel48Leopoldo.Schmeler@gmail.com

Disable Row

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

IDFirst nameLast nameAgeEmail
0PedroTremblay44Samuel.Yost47@hotmail.com
1TaliaBorer54Valerie_McDermott@yahoo.com
2KristoferParisian18Alicia29@gmail.com
3AbnerBednar57Daron_Schuppe5@hotmail.com
4ClaudeDach18Gracie93@yahoo.com
5ZariaWindler65Asa.Barton@gmail.com
6TomasYundt39Katrina_Crona@hotmail.com
7AshaDavis37Ara28@yahoo.com
8LeighLowe43Kerry_Waelchi-Corwin29@hotmail.com
9OkeyPfannerstill53Damian.Hartmann4@hotmail.com

Control Row Selection

IDFirst nameLast nameAgeEmail
0RhettBradtke49Berneice.Gusikowski@yahoo.com
1MallieMoen55Lorenz_Paucek@yahoo.com
2JoannyKeeling42Lyda53@yahoo.com
3LempiKihn-Prohaska21Kiarra_Emard@gmail.com
4MaurineLedner49Bridgette_Roob@gmail.com
5MustafaHills30Letitia_Howell@hotmail.com
6RooseveltBecker38Merlin5@gmail.com
7DiamondMarquardt24Christa_Connelly@gmail.com
8CristobalArmstrong28Charles71@hotmail.com
9LukeVonRueden34Maxwell.Jacobi64@hotmail.com

Use Filter

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

IDFirst nameLast nameAgeEmail
0OliviaSenger30Roel13@gmail.com
1DexterHalvorson60Jacynthe93@yahoo.com
2TurnerAnkunding48Edmond5@hotmail.com
3OscarDach46Javier_Abshire@gmail.com
4KentonSporer-Ward19Dorian_Deckow55@yahoo.com
5EdmundMcDermott34Gilberto_Wehner@gmail.com
6DiamondBotsford51Nova.Welch@hotmail.com
7MyaDonnelly47Enrico_OKon48@gmail.com
8RomanChristiansen45Kelton_Kozey-Spinka18@yahoo.com
9GretchenJacobson37Mohammed.Bernier@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.

IDFirst nameLast nameAgeEmail
0NormaCorkery48Sterling_Jast@gmail.com
3KamrenKoepp46Maryse.Hermann@gmail.com
4NadineHaag32Morgan_Cormier@gmail.com

Control Filter

IDFirst nameLast nameAgeEmail
0WeldonHuel-O'Conner52Ressie9@gmail.com
1RashadLynch27Carmine_Williamson@gmail.com
2SallyHerzog33Dane_Jerde49@gmail.com
3RocioBotsford49Leonardo.Kling@gmail.com
4RyleighReilly44Brandi34@yahoo.com
5GrantBlock51Solon_Stanton38@gmail.com
6NathanielHermann28Franco.Tremblay@gmail.com
7HoustonWitting34Kattie84@hotmail.com
8ReggieGreen29Liana.Schroeder@hotmail.com
9MaureenKeeling42Wade.Monahan-Robel76@hotmail.com

Enable Column Resizing

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

ID
First name
Last name
Age
Email
0RutheLedner52Harriet_Hammes@hotmail.com
1AnabelPurdy34Alexandre.Crist70@hotmail.com
2DonnaToy41Ansley59@yahoo.com
3AraceliGrimes26Susana_Balistreri71@gmail.com
4AmaniKoch20Brandy.Strosin-Leannon85@gmail.com
5JefferyAltenwerth59Marsha92@hotmail.com
6HeloiseRippin39Laura.Mitchell96@hotmail.com
7CarolHaley26Laurence_Wintheiser@yahoo.com
8JamieReichel22Archibald46@yahoo.com
9LeahZulauf62Lloyd.Lesch70@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
First name
Last name
Age
Email
0DeonRempel33Erica76@gmail.com
1HalieBode21Adah.Volkman@hotmail.com
2CydneyDare35Jana.Casper25@hotmail.com
3EwaldMarks40Mckayla.Herman77@hotmail.com
4SolonWatsica59Lisa9@hotmail.com
5FrancisSanford20Terrell.Schmitt@yahoo.com
6NobleHills37Judah_Dicki12@hotmail.com
7AsiaBrekke57Adrain_Lindgren48@gmail.com
8KameronDavis60Phil_Streich36@hotmail.com
9IsaiasKiehn-Beahan45Wilfred.Weimann-OKeefe@yahoo.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.

Bubble

Bubble is a component that displays conversational content in a message bubble.

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.

Uses Components & Hooks