Table

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

idfirstNamelastNameageemail
0HoseaRunte50Adelle28@yahoo.com
1TwilaCarter26Candelario.Dickens6@yahoo.com
2AustenPacocha36Max.Robel@hotmail.com
3DonavonKoelpin60Lorraine.McClure@hotmail.com
4OrlandDickinson55Dorcas_OConnell@yahoo.com
5AglaeMurray52Earl_McGlynn@gmail.com
6FridaFraney49Dortha_Terry51@gmail.com
7JaySchiller57Lorine_Armstrong@gmail.com
8SpencerErdman21Melba.Roberts17@hotmail.com
9JohnpaulSchuster60Michel.DAmore69@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0EvelynSipes47Jevon86@yahoo.com
1VictoriaFriesen56Vern_Hyatt95@yahoo.com
2KayaKuphal20Gina62@yahoo.com
3EstebanLangworth54Toni28@yahoo.com
4AbdulLebsack33Roselyn_Dickens@hotmail.com
5VirginiaYundt-Hessel49Jazmyne27@yahoo.com
6PascaleSawayn19Stevie5@yahoo.com
7MadonnaGrady-Skiles53Rowan.Sawayn82@yahoo.com
8ChristopherBrown27Marquise_Jerde53@yahoo.com
9WalkerMcKenzie53Birdie21@gmail.com
idfirstNamelastNameageemail
0EvelynSipes47Jevon86@yahoo.com
1VictoriaFriesen56Vern_Hyatt95@yahoo.com
2KayaKuphal20Gina62@yahoo.com
3EstebanLangworth54Toni28@yahoo.com
4AbdulLebsack33Roselyn_Dickens@hotmail.com
5VirginiaYundt-Hessel49Jazmyne27@yahoo.com
6PascaleSawayn19Stevie5@yahoo.com
7MadonnaGrady-Skiles53Rowan.Sawayn82@yahoo.com
8ChristopherBrown27Marquise_Jerde53@yahoo.com
9WalkerMcKenzie53Birdie21@gmail.com

Change Size

idfirstNamelastNameageemail
0CadenRohan42Cedrick39@hotmail.com
1CourtneyBode56Jonathon67@yahoo.com
2CorrineHeidenreich55Letha59@yahoo.com
3DianaGibson56Oswaldo.Grimes53@hotmail.com
4MossieFritsch43Shaina59@yahoo.com
5LavinaFay34Ila69@gmail.com
6JonBlock39Vanessa67@yahoo.com
7DarrickKuhn30Brenda30@hotmail.com
8MercedesBecker38Jordane_Kovacek18@hotmail.com
9AidenSchmidt29Miriam.Herman-Predovic@gmail.com
idfirstNamelastNameageemail
0CadenRohan42Cedrick39@hotmail.com
1CourtneyBode56Jonathon67@yahoo.com
2CorrineHeidenreich55Letha59@yahoo.com
3DianaGibson56Oswaldo.Grimes53@hotmail.com
4MossieFritsch43Shaina59@yahoo.com
5LavinaFay34Ila69@gmail.com
6JonBlock39Vanessa67@yahoo.com
7DarrickKuhn30Brenda30@hotmail.com
8MercedesBecker38Jordane_Kovacek18@hotmail.com
9AidenSchmidt29Miriam.Herman-Predovic@gmail.com
idfirstNamelastNameageemail
0CadenRohan42Cedrick39@hotmail.com
1CourtneyBode56Jonathon67@yahoo.com
2CorrineHeidenreich55Letha59@yahoo.com
3DianaGibson56Oswaldo.Grimes53@hotmail.com
4MossieFritsch43Shaina59@yahoo.com
5LavinaFay34Ila69@gmail.com
6JonBlock39Vanessa67@yahoo.com
7DarrickKuhn30Brenda30@hotmail.com
8MercedesBecker38Jordane_Kovacek18@hotmail.com
9AidenSchmidt29Miriam.Herman-Predovic@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0WhitneyHickle53Mary_Doyle72@gmail.com
1CleoraAdams55Weston.Rolfson64@yahoo.com
2LanaCremin57Monty_Murazik@yahoo.com
3AugustOrn65Gwendolyn81@hotmail.com
4VilmaAdams41Werner69@gmail.com
5MakennaGerlach65Ernest39@gmail.com
6RosieQuitzon20Margarette.Russel39@yahoo.com
7ShyanneBeer60Clotilde.Prosacco74@gmail.com
8VernThiel52Deontae60@gmail.com
9IsabellaConsidine44Lelia_Predovic@yahoo.com
idfirstNamelastNameageemail
0WhitneyHickle53Mary_Doyle72@gmail.com
1CleoraAdams55Weston.Rolfson64@yahoo.com
2LanaCremin57Monty_Murazik@yahoo.com
3AugustOrn65Gwendolyn81@hotmail.com
4VilmaAdams41Werner69@gmail.com
5MakennaGerlach65Ernest39@gmail.com
6RosieQuitzon20Margarette.Russel39@yahoo.com
7ShyanneBeer60Clotilde.Prosacco74@gmail.com
8VernThiel52Deontae60@gmail.com
9IsabellaConsidine44Lelia_Predovic@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0MohammadKreiger-Lehner58Hellen.Langworth@hotmail.com
1KavonHagenes27Dakota28@gmail.com
2AudreanneHeathcote28Raegan_Dickinson92@hotmail.com
3OlgaSimonis37Conrad_Bashirian16@hotmail.com
4TristinEmard19Jodie_Berge@hotmail.com
5StevenRempel33Adrien_McClure22@yahoo.com
6JenningsDoyle-Moore60Ismael24@gmail.com
7MaiaWunsch43Reginald_Carter@yahoo.com
8JakeMetz51Johanna.Klocko97@hotmail.com
9JovaniBogan27Meda_Marvin@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0MurphyWuckert29Jana35@hotmail.com
1OrlandoLarson43Marcelino4@yahoo.com
2IvanHegmann54Tristin_Bayer21@yahoo.com
3BiankaJast20Rosemarie.Wiza43@gmail.com
4ShanyWilliamson28Zoe_Sipes@yahoo.com
5AriWunsch51Gonzalo6@yahoo.com
6MiaWitting33Luther71@gmail.com
7DaishaLeffler53Esperanza.Morar@hotmail.com
8DiegoTreutel-Quitzon58Salma.Gibson@yahoo.com
9AylinBraun25Daryl.Wunsch@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0CassieWindler26Jorge.Thiel65@yahoo.com
1WillaHand41Cathrine.Brakus@yahoo.com
2ReginaMorissette42Avery.OKon94@gmail.com
3MohamedErdman29Esta_Hodkiewicz@hotmail.com
4HortenseBorer26Bailee71@yahoo.com
5ChristyChamplin32Kip42@yahoo.com
6SueGutmann32Pinkie_Schimmel@gmail.com
7NovaJacobs-Botsford50Oma86@hotmail.com
8MitchelHettinger56Darion.Ratke99@gmail.com
9AlexandriaConsidine50Carter.Kerluke64@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0RochelleRomaguera48Claudie_Harvey@gmail.com
1AllanBrekke28Bernice42@yahoo.com
2LukasErdman28Ginger.Gutmann93@yahoo.com
3FletcherCremin31Aleen.Tillman92@yahoo.com
4CeasarBergnaum39Kristian6@gmail.com
5LorineZboncak51Jody_Brakus@gmail.com
6AlysaBauch24Abdul.McLaughlin72@yahoo.com
7VenaDickens39Leon.Heaney63@hotmail.com
8WarrenHermiston64Jalon.Wolff53@gmail.com
9JohnBahringer19Heath_Leuschke@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0MarcelleBrekke29Mario.McDermott@hotmail.com566-807-6184 x38877admininactive6/15/20264/9/2026
1MartyDickens19Vella25@hotmail.com(439) 303-9373 x2716admininactive3/5/202611/26/2025
2HopeLehner29Graham.Miller14@gmail.com225-457-3557 x3773admininactive3/18/202610/16/2025
3MandyMills43Bailey_Towne18@yahoo.com1-859-278-2718 x34973useractive5/23/20269/28/2026
4LennyCasper39Hoyt.Oberbrunner21@yahoo.com1-259-537-4739 x01341adminactive5/12/20266/4/2026
5MinervaLemke58Vita.McKenzie@gmail.com474-816-4778 x0420admininactive4/5/20265/6/2026
6BarrySchaden63Anjali0@yahoo.com1-381-997-0085 x87005adminactive7/8/20268/16/2026
7QueenieBrown49Jammie_Satterfield@yahoo.com976.471.0252 x2055adminactive7/8/202610/16/2025
8OpheliaO'Hara65Damien_Hettinger@hotmail.com1-208-351-5723userinactive3/12/20264/2/2026
9ChanelleWolf20Melany31@hotmail.com1-667-248-2533 x69533useractive7/10/20269/28/2026

Header Groups

iduser
nameageemail
firstNamelastName
0DejonSmitham47Hermina14@hotmail.com
1ElvieSchulist-Hodkiewicz24Daniel_Leuschke@yahoo.com
2IvoryBins34Flavio_Senger21@gmail.com
3KarleeKing48Wilfred78@gmail.com
4EwellSpinka18Graham45@hotmail.com
5AugustO'Conner39Irwin.Emard73@yahoo.com
6OmaSmith47Anabel.McDermott60@yahoo.com
7WhitneyCassin42Olivia1@gmail.com
8ScottieRunolfsson44Elva.Hintz@hotmail.com
9WavaYundt25Josh.Kautzer-Walsh@hotmail.com
iduser
nameageemail
firstNamelastName
0LoraineKuhn62Kendall.Christiansen81@gmail.com
1JordonHayes50Jayson.Fahey@hotmail.com
2JamesLesch61Alba_Dare21@gmail.com
3AndyKiehn24Emily.Kuhlman56@yahoo.com
4RansomHilll-Kreiger47Gwen12@yahoo.com
5KirkParker46Kaylin85@yahoo.com
6AlexandreaFranecki65Lelah_Weber25@yahoo.com
7TannerJacobson59Estell89@yahoo.com
8SabrynaHilpert63Ira51@hotmail.com
9AltonSpinka36Marisa_Mills97@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0RosalindHowell62Kitty.Leffler35@hotmail.com
1AlfordCarroll47Jaylin91@gmail.com
2BryantJacobson32Gabe96@yahoo.com
3MaximoKessler54Marquise47@yahoo.com
4DominicStiedemann44Irvin.Smith@gmail.com
5ElouiseSwift25Jamar_Treutel27@yahoo.com
6MaiaHills45Alfred.Nolan94@hotmail.com
7WillardKuhn55Joanie.Flatley@gmail.com
8KaleighJohns33Adelbert.Jerde@hotmail.com
9StefanieConn33Kaia.Shanahan@hotmail.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
0KelleyMante53Leonel_Mills15@yahoo.com
1DevynKub65Selena.Bauch35@hotmail.com
2GeorgianaHilll-Stroman50Godfrey_Corwin@hotmail.com
3LornaFrami-Kemmer19Alayna71@gmail.com
4CaryDurgan52Kaden.Lebsack6@gmail.com
5AnnabellDavis36Antwan_Botsford@hotmail.com
6HalleHuel62Coy64@yahoo.com
7DedrickConroy31Jayde17@yahoo.com
8CorrineRenner20Timmy92@hotmail.com
9RayBradtke41Simeon5@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0MarkLeuschke27Rudy.Emmerich@gmail.com
1MartaBode53Herta.DuBuque@gmail.com
2JerroldStokes52Sabryna24@hotmail.com
3ZariaRutherford51Meda_Monahan@gmail.com
4KendraCarroll46Jodie93@yahoo.com
5SabinaReynolds45Ali_Jerde87@hotmail.com
6ElzaBoyer41Ferne19@hotmail.com
7JermeyPollich48Genesis_Osinski@gmail.com
8RosemarieBorer65Kayley62@gmail.com
9RustyMcKenzie30Roman_Howe22@hotmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0ReinaKautzer-Mitchell27Lina3@yahoo.com
1DustinLueilwitz-Hermann51Harriet.Pollich@gmail.com
2PabloLynch49Patsy26@yahoo.com
3VincenzaMoen30Luz_Osinski@yahoo.com
4JoseThompson34Bernie_Gutmann68@hotmail.com
5OceaneConn60Soledad.Pouros21@yahoo.com
6SkylarRunolfsdottir25Lena.Wyman@gmail.com
7ClintRath63Leon3@yahoo.com
8JameyProhaska49Stone37@gmail.com
9BellaMarks42Abraham12@hotmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
2PetraAnkunding65Patsy37@yahoo.com
8DeeFunk63Jarred.Little3@hotmail.com
0SheaVandervort56Angelo.Barton@gmail.com
5SueZulauf54Terrence.Blick@hotmail.com
3MistyBruen52Darlene_Hermann78@gmail.com
1SchuylerHane49Jamil_Beier@yahoo.com
9MinervaHoppe39Timothy.Grimes@hotmail.com
6ToneyStokes37Mayra_Conn@gmail.com
4BudStanton32Alberta67@yahoo.com
7ThaliaHahn23Aubree16@gmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0AmeliaBailey36Jude.Bogan77@hotmail.com
1IreneBraun25Dameon30@hotmail.com
2RansomReilly62Cleta.Greenholt@hotmail.com
3OlafBlick60Margaret.DAmore33@hotmail.com
4OwenStokes-Beier19Avery.Bernier90@yahoo.com
5MosesLehner58Vernon.Anderson33@gmail.com
6DinaGerhold60Delia51@hotmail.com
7JamarcusFisher37Greg92@hotmail.com
8AnnamaeBruen65Abbie.Ryan50@gmail.com
9GarlandSwaniawski18Lavada11@hotmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0OfeliaGleichner29Alfred_Robel@yahoo.com
1JeanetteNader50Ericka_Cartwright0@yahoo.com
2AllanCruickshank25Emelie49@hotmail.com
3DejahHessel-Bergnaum44Deangelo.Howe16@hotmail.com
4RamonaYost32Lue.OKeefe@gmail.com
5MinaSchimmel-Nikolaus37Rashawn_Harvey56@gmail.com
6JordyGerhold26Viva63@hotmail.com
7ZitaTorphy56Mozell.Ullrich34@gmail.com
8MarianoHahn27Jedediah.Goodwin90@yahoo.com
9JusticeCruickshank35Corey_Weimann34@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0MalachiTorphy61Dalton.Runolfsdottir28@yahoo.com
1MalloryLueilwitz24Jolie_VonRueden@gmail.com
2AlyciaMorar49Blaise_Jakubowski25@gmail.com
3JamalBraun-Gerlach36Arnold.Stokes23@hotmail.com
4MackenzieStokes31Milan60@hotmail.com
5VivianneFarrell20Nico10@hotmail.com
6AvisMurazik26Lois_Lueilwitz@hotmail.com
7AlphonsoLindgren31Clemmie.Von10@yahoo.com
8ZoieNader51Albin.Hermann@gmail.com
9WilburWhite46Mariela.Collins@yahoo.com

Manual Sorting

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

idfirstNamelastNameageemail
0HazelHowe63Rasheed_Ankunding@hotmail.com
1DollyHuels54Mustafa_Waters@hotmail.com
2WilfridZulauf51Diamond32@hotmail.com
3AudreyYost28Russell_Krajcik@gmail.com
4SheilaPollich26Laurel55@yahoo.com
5LibbieReichel23Yesenia_Fadel56@yahoo.com
6MadiePurdy-Schinner26Tristin.Kirlin36@yahoo.com
7SusanaLindgren59Wilfredo49@yahoo.com
8KristaDietrich20Cortez43@gmail.com
9JoannGleason47Mose52@gmail.com

Change Sorting Toggle

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

idfirstNamelastNameageemail
0DarrickStamm18Tamara.Yundt@gmail.com
1MandyPfannerstill23Winfield_Boyle32@yahoo.com
2FeliciaKling58Jaqueline.Cartwright-Ullrich76@hotmail.com
3MertieWyman40Irwin.Muller@hotmail.com
4StephonLehner24Tristin_Fay94@gmail.com
5MckennaHermann24Murphy_OConnell9@hotmail.com
6LessieWeber61Jannie_Maggio30@hotmail.com
7DelfinaDaugherty39Roy21@gmail.com
8GretaSchmitt44Cortney27@hotmail.com
9AgustinaFranecki45Athena_MacGyver@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0PeytonWeber18Jaron45@gmail.com
1WileyErdman-Davis47Ana_Monahan83@hotmail.com
2FlorineKeebler62Evangeline58@gmail.com
3KatrineStiedemann52Gillian_Von52@yahoo.com
4AlyssonGreen52Janet70@hotmail.com
5JacobBatz62Kellie68@yahoo.com
6SheaStehr21Jermey54@yahoo.com
7MaribelDuBuque34Nikita91@gmail.com
8AnastacioKoelpin40Gerard_Lang@yahoo.com
9RicardoWintheiser35Buddy_Tremblay20@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
0EltonHahn55Athena.Yost47@yahoo.com
1BryantBauch49Peggie8@yahoo.com
2IsaiasCollier23Aylin_Koss-Goodwin65@yahoo.com
3LuzSchowalter54Megane.Johns@yahoo.com
4BrandoHettinger42Lou35@yahoo.com
5BrennonKuhlman25Oceane.Mueller@gmail.com
6DeliaWindler22Clara_Balistreri84@yahoo.com
7JasonKessler42Emely.Waters47@yahoo.com
8DeeAbernathy64Eliseo6@gmail.com
9TraceBalistreri65Zackary.Turcotte98@yahoo.com
10SophiaLesch23Coty_Pfannerstill57@yahoo.com
11JavonOndricka52Mozelle_Ondricka72@gmail.com
12AmaniToy59Santos37@hotmail.com
13BobbyMurazik44Ryleigh99@hotmail.com
14BrianneFay58Jalen_West59@yahoo.com
15YesseniaStroman18Tillman12@gmail.com
16EmersonFrami56Scott_Yost92@hotmail.com
17MeghanRomaguera48Donald.Ritchie@gmail.com
18KathyO'Kon54Brennon.Towne-Bailey3@gmail.com
19KamrenRuecker43Layne4@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
10SusannaBogan63Melanie.Harber13@yahoo.com
11ScarlettTreutel50Florian.Padberg-Bradtke@hotmail.com
12EnricoJacobs46Garret72@yahoo.com
13MckaylaWaelchi32Laurianne.White@hotmail.com
14SabrinaRussel26Sydnie.White68@hotmail.com
15MetaBartell43Keira43@gmail.com
16ClintVonRueden46Virginie.Runte38@yahoo.com
17RollinGorczany55Wilton_Yost@gmail.com
18StacyMetz-Beatty48Ellie.Adams@hotmail.com
19PaigeCasper55Earnestine_Kreiger@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0VincentOndricka48Horace_Goodwin58@yahoo.com
1PeggyLeannon31Percy19@hotmail.com
2DevenTurcotte23Tabitha47@gmail.com
3DayneFeeney19Abdul_Mante49@hotmail.com
4VanLittle54Adella_Grimes19@hotmail.com
5SeanGreen60Neoma34@yahoo.com
6LeilaSkiles35Arielle_Gottlieb71@hotmail.com
7KennediFrami25Aric.Pagac7@gmail.com
8SantaSpinka30Dallin53@yahoo.com
9AprilBaumbach45Homer_Runolfsson@hotmail.com
10RyannGislason42Oswald.Moore83@hotmail.com
11RodolfoLakin49Willy.Stiedemann19@gmail.com
12MatthewDickinson58Sofia17@yahoo.com
13FrancisOrtiz25Guadalupe37@yahoo.com
14GiaRuecker63Elroy.Adams64@yahoo.com
15MoseLebsack-Medhurst21Alexandrine.Crooks28@yahoo.com
16GennaroDicki42Tyrel_Hartmann@gmail.com
17NonaRodriguez54Kayley23@hotmail.com
18KiarraWelch30Savannah.Huels50@gmail.com
19FelipePfeffer36Emmie.Rogahn@hotmail.com

Control Pagination

idfirstNamelastNameageemail
0ModestaSchumm25Pablo89@gmail.com
1WhitneyFritsch59Nikolas.Marvin85@yahoo.com
2DevonteEbert57Oral59@yahoo.com
3JayceeHamill61Edmund_Wunsch70@yahoo.com
4OsborneDenesik48Kennedy_Glover30@yahoo.com
5JamaalSipes32Isom.Beier82@hotmail.com
6SamsonSchroeder18Yadira.Langworth@hotmail.com
7LandenHettinger40Susan_Kessler@gmail.com
8HattieMitchell58Magdalena16@gmail.com
9LeonoraD'Amore62Nina.Grant15@yahoo.com
10MitchellOsinski49Katharina_Corwin74@gmail.com
11GregVolkman41Everette.Larkin@yahoo.com
12JoelLueilwitz26Hiram_Lynch94@yahoo.com
13GriffinNader62Jarrett35@gmail.com
14EloiseFerry61Cornelius.Jaskolski@gmail.com
15MattHammes35Eloy_Becker72@gmail.com
16GayleJenkins42Trisha99@hotmail.com
17AshtynDoyle41Elmira.Tremblay28@yahoo.com
18GriffinCarroll48Devan.Durgan80@yahoo.com
19AndersonHarber34Paris.Skiles31@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0EricaKunde50Selena41@yahoo.com
1AmosHerzog63Mya_Russel71@yahoo.com
2RebaWiegand49Magdalena79@gmail.com
3AngelWintheiser54Shirley82@hotmail.com
4DwayneBogan40Tristin1@hotmail.com
5ConstantinWilliamson37Dora69@gmail.com
6ArmandoKuphal51Andrew24@hotmail.com
7LillianHand32Kayleigh.Metz@gmail.com
8HollisHoeger42Jairo34@yahoo.com
9GeovanniMaggio60Carleton.Auer31@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
0SierraBednar38Eleanor.Sporer@yahoo.com
1LincolnWunsch47Ronaldo52@gmail.com
2WilmerHeathcote29Raymond45@yahoo.com
3DelphiaMurray36Leonor.Wehner28@hotmail.com
4WoodrowTromp63Lilyan_Witting-Heathcote44@yahoo.com
5OleRuecker60Giovanna76@hotmail.com
6WilfridConnelly61Tony_Spinka@hotmail.com
7StefanLarkin45Phyllis2@gmail.com
8BeverlyBreitenberg45Austin.Schuster@hotmail.com
9HayleeSchamberger23Eugenia95@gmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0GretaBergnaum35Leann.Ebert17@yahoo.com
1RickieMosciski28Robb_Emard33@gmail.com
2SylvanFritsch36Jo9@hotmail.com
3MyrtieBradtke36Harrison.Wunsch@gmail.com
4WavaRitchie30Michel_Roob71@gmail.com
5CharlieMosciski64Joany_Oberbrunner99@hotmail.com
6JaunitaMraz39Buster20@hotmail.com
7ProvidenciThompson64Ashleigh_Ernser94@hotmail.com
8YoshikoKoss43Berry10@yahoo.com
9VanCrooks44Emelia70@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0AlveraRoberts32Augustus.Shields-Ward@yahoo.com
1CharleneJast34Josefina75@yahoo.com
2MaudeWolf53Lyda_Hintz72@yahoo.com
3SammyMosciski57Jermaine_Franey96@gmail.com
4SharonBauch47Aubree87@yahoo.com
5GermanLehner29Estell.Ebert@hotmail.com
6KentLang43Clarence68@yahoo.com
7VincenzoFeil23Tracy_OReilly91@hotmail.com
8RashawnFrami54Zula.Rempel8@gmail.com
9ElsieMcDermott47Twila_Rohan-Sauer@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0JarodLemke60Karla_Kertzmann@yahoo.com
1WinonaLeffler65Korbin_Hansen74@gmail.com
2RyanSchinner44Ozella_Orn86@hotmail.com
3CallieLarson53Hudson.Cummings96@yahoo.com
4NathenEmard30Alvis.Shields@gmail.com
5AllieAbshire52Garrett_Jenkins@gmail.com
6BeckyGibson40Zelda73@hotmail.com
7JosefinaLangworth44Rosalind.Aufderhar57@hotmail.com
8AngelaCronin62Connor26@hotmail.com
9SandrineFritsch18Max84@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0EllenNicolas61Oren_Klocko34@gmail.com
1ElvisLowe18Monte7@hotmail.com
2AlfordNienow18Dorothea42@hotmail.com
3CedricGrady58Carson_Gleason@gmail.com
4RodgerMuller19Kirk_Howell-Stoltenberg@hotmail.com
5QueenieFay-Wisozk47Carla51@hotmail.com
6SisterKoss64Denis.Windler18@hotmail.com
7UrbanSchulist38Mafalda.Miller-Shields@hotmail.com
8EleonoreLowe34Gladyce.Padberg@hotmail.com
9FaySpencer29Merl.Mills16@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0AlexysGleason34Eliezer.Jerde85@hotmail.com
1ItzelRunolfsdottir36Kristofer33@hotmail.com
2CamronFriesen55Margarete.Romaguera@yahoo.com
3ItzelRice24Devan_Strosin@yahoo.com
4DejaStoltenberg34Brendan2@gmail.com
5RainaCrist20Hortense_Beer84@hotmail.com
6NoeOkuneva37Maynard.Mohr17@hotmail.com
7DeeLakin62Wellington29@hotmail.com
8AylinWelch18Erin4@yahoo.com
9LamontKiehn24Reuben_Dibbert-McLaughlin70@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
2LaurineBeahan-Bauch46Sydni.Padberg@gmail.com
5GeorgianaMedhurst25Wilfred.Rippin70@gmail.com
8RoslynArmstrong49Alva.Cartwright@gmail.com

Control Filter

idfirstNamelastNameageemail
0CarolinePurdy20Shaniya70@hotmail.com
1TellyO'Keefe54Milford11@gmail.com
2RobertaFranecki41Geovany.Nienow52@yahoo.com
3KailynVeum21Stephania19@gmail.com
4LilianaSwaniawski57Joseph.Renner@gmail.com
5EdenHerman31Doyle_Waelchi@hotmail.com
6SammieBarrows55Jordan54@hotmail.com
7ShemarPaucek19Bertram.Thompson@gmail.com
8SageO'Hara39Raheem_Bogisich81@yahoo.com
9RonBashirian51Madge_Hudson@hotmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0MalindaRunolfsdottir-Ritchie24Brennon_Mertz76@yahoo.com
1MargaretteMertz55Kristopher63@yahoo.com
2DarnellHermiston60Kaya.Crooks@gmail.com
3JohannaHamill47Garry.Effertz@gmail.com
4BrantNikolaus58Brett.Hartmann-Champlin30@yahoo.com
5KirstinJerde41Petra.Gulgowski@hotmail.com
6MakenzieLeuschke62Tina_Bruen@hotmail.com
7ArielKlocko18Emil69@gmail.com
8RaoulStrosin60Miracle_Ernser@yahoo.com
9DoraFerry55Tommie_Lowe-Schmitt93@yahoo.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
0SophiaMurray23Jasper78@gmail.com
1AlizePfeffer55Rodolfo62@yahoo.com
2ZaneWindler26Kennedy25@hotmail.com
3BuddyWard21Lavonne_Klein55@hotmail.com
4ZaneSchoen25Leann_Quitzon@gmail.com
5JacksonRuecker26Jerrod_Koelpin@yahoo.com
6BlancheTillman30Virginie.Block4@hotmail.com
7NashMedhurst18Grant.Schaden-Brown24@yahoo.com
8DarrellWaters26Joey.Walsh@yahoo.com
9AbigayleWisozk49Adriana_Christiansen@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

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