Table

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

idfirstNamelastNameageemail
0AnneRowe45Scottie31@gmail.com
1PriscillaZieme51Cory.Volkman@hotmail.com
2JoseSchiller-Wiegand48Antonio50@gmail.com
3NickLarkin64Todd.Waters@hotmail.com
4RoslynWelch-Hintz29Latoya90@yahoo.com
5AntwonHeller56Vincent16@gmail.com
6BlancheMarvin42Herta_Pouros57@yahoo.com
7NigelJohnson51Juliet66@hotmail.com
8HermanWisoky20Deborah_Fadel@gmail.com
9EricQuigley59Mathew.Wiza45@yahoo.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0NorbertLittel23Darin30@yahoo.com
1KaleyWalker43Barry43@yahoo.com
2BradenJacobi62Orlando_Auer6@yahoo.com
3DeweyCarter44Johnnie36@yahoo.com
4TyreseSchinner65Timothy.Zemlak@gmail.com
5CaylaKeebler39Ollie37@yahoo.com
6CaleBins50Josie49@gmail.com
7BriceKuphal42Irving7@hotmail.com
8OrvalFadel31Annie77@yahoo.com
9CoraBarton64Mary.Gusikowski@yahoo.com
idfirstNamelastNameageemail
0NorbertLittel23Darin30@yahoo.com
1KaleyWalker43Barry43@yahoo.com
2BradenJacobi62Orlando_Auer6@yahoo.com
3DeweyCarter44Johnnie36@yahoo.com
4TyreseSchinner65Timothy.Zemlak@gmail.com
5CaylaKeebler39Ollie37@yahoo.com
6CaleBins50Josie49@gmail.com
7BriceKuphal42Irving7@hotmail.com
8OrvalFadel31Annie77@yahoo.com
9CoraBarton64Mary.Gusikowski@yahoo.com

Change Size

idfirstNamelastNameageemail
0FletcherCasper54Glenn_Nader@yahoo.com
1BobAnkunding64Lew94@gmail.com
2DarlaSpencer55Sydney24@gmail.com
3DarrenFarrell41Gino9@yahoo.com
4NormaConn57Grace.Effertz88@yahoo.com
5EmilioDouglas64Geovanni83@hotmail.com
6TryciaMarquardt38Enrique23@yahoo.com
7TremaineLubowitz44Nicola_Rutherford@hotmail.com
8NorbertRohan24Cedric_Farrell58@yahoo.com
9RomanGibson32Harrison.Emard36@gmail.com
idfirstNamelastNameageemail
0FletcherCasper54Glenn_Nader@yahoo.com
1BobAnkunding64Lew94@gmail.com
2DarlaSpencer55Sydney24@gmail.com
3DarrenFarrell41Gino9@yahoo.com
4NormaConn57Grace.Effertz88@yahoo.com
5EmilioDouglas64Geovanni83@hotmail.com
6TryciaMarquardt38Enrique23@yahoo.com
7TremaineLubowitz44Nicola_Rutherford@hotmail.com
8NorbertRohan24Cedric_Farrell58@yahoo.com
9RomanGibson32Harrison.Emard36@gmail.com
idfirstNamelastNameageemail
0FletcherCasper54Glenn_Nader@yahoo.com
1BobAnkunding64Lew94@gmail.com
2DarlaSpencer55Sydney24@gmail.com
3DarrenFarrell41Gino9@yahoo.com
4NormaConn57Grace.Effertz88@yahoo.com
5EmilioDouglas64Geovanni83@hotmail.com
6TryciaMarquardt38Enrique23@yahoo.com
7TremaineLubowitz44Nicola_Rutherford@hotmail.com
8NorbertRohan24Cedric_Farrell58@yahoo.com
9RomanGibson32Harrison.Emard36@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0CarlosSchiller40Tonya.Dooley-Bosco54@yahoo.com
1WilbertTorp65Kristy_Lind86@hotmail.com
2DesireeHerzog26Katie40@yahoo.com
3JoanneSporer47Haven31@gmail.com
4SimeonLeannon31Kiley59@yahoo.com
5AndresMacejkovic53Parker89@gmail.com
6OllieStehr22Lydia39@yahoo.com
7AlKiehn45Max.Waters89@gmail.com
8GilbertGoodwin46Vincenza.Fahey@hotmail.com
9VivaZemlak38Marcelino_Dach@hotmail.com
idfirstNamelastNameageemail
0CarlosSchiller40Tonya.Dooley-Bosco54@yahoo.com
1WilbertTorp65Kristy_Lind86@hotmail.com
2DesireeHerzog26Katie40@yahoo.com
3JoanneSporer47Haven31@gmail.com
4SimeonLeannon31Kiley59@yahoo.com
5AndresMacejkovic53Parker89@gmail.com
6OllieStehr22Lydia39@yahoo.com
7AlKiehn45Max.Waters89@gmail.com
8GilbertGoodwin46Vincenza.Fahey@hotmail.com
9VivaZemlak38Marcelino_Dach@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0FrancisO'Conner25Javonte.Rutherford@hotmail.com
1MoniqueMarquardt41Emmet.Johnson77@gmail.com
2TheresiaSchumm38Jeff_Schoen12@gmail.com
3AldenChamplin42Alton_Labadie18@yahoo.com
4BonnieYost58Vicky.Jakubowski@hotmail.com
5DorisO'Keefe59Fredy17@hotmail.com
6RosaliaCremin22June4@hotmail.com
7DestiniFay55Jeanette.Gutmann65@hotmail.com
8DoreenFriesen55Hertha.Klocko@hotmail.com
9EldoraRolfson26Sylvia_Rath@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0KellyCummerata20Gary.Raynor@yahoo.com
1JovanyMertz46Sim48@hotmail.com
2ElijahHammes58Darrick_Feil67@hotmail.com
3ElizabethMoore43Willa_Mante76@yahoo.com
4LeifLynch20Clarence37@hotmail.com
5AmosSanford42Evan.Tillman5@hotmail.com
6LailaCole28Pierce68@yahoo.com
7NapoleonBednar45Victor_Bartoletti@gmail.com
8JoshuaWintheiser22Landen_Emard@hotmail.com
9DwayneLebsack48Muriel.Hoppe@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0OdellHarber24Armando82@gmail.com
1WilliamHintz26Xavier_Schaden62@yahoo.com
2DanikaPacocha32Zola.Rau26@hotmail.com
3TabithaWunsch24Dan83@hotmail.com
4ClaraMertz51Ramon70@gmail.com
5RupertMarks18Audrey.Dickinson65@gmail.com
6EricaAltenwerth43Carol.Kohler@gmail.com
7KerryLeffler27Reggie.DuBuque@gmail.com
8JeanHickle38Celia.Cremin@yahoo.com
9EvangelineOlson59Keaton_Carter22@yahoo.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0EmileJacobs32Taylor_DAmore@yahoo.com
1CarlosDouglas29Bill40@hotmail.com
2LilianaLittle-Bergstrom31Sharon_Cummings-Sauer17@yahoo.com
3ErikCole45Misael.Schuster@yahoo.com
4MyronBahringer31Al22@hotmail.com
5BretReichel20Stacey.Shields@yahoo.com
6WayneKoch60Stewart_Champlin@hotmail.com
7VanHeller32Irene88@hotmail.com
8StewartHahn47Telly.Larkin@gmail.com
9TimothyBecker21Dave_Jacobi@hotmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0JessieO'Connell56Lorna_Corkery@hotmail.com443.421.4419 x0530useractive10/30/20251/20/2026
1ChanelSchowalter52Marcellus.Ebert-Feest@gmail.com973.726.5604 x93902adminactive11/22/20259/3/2025
2RubyBarrows33Brown18@yahoo.com(507) 519-8010 x5430adminactive7/23/20253/22/2025
3DeannaPfeffer42Elena6@gmail.com527.305.8212 x545adminactive7/20/202511/19/2025
4EmanuelMayert33Richmond_Wiegand@gmail.com640-862-6070 x8362userinactive8/19/20259/8/2025
5NicholasVandervort28Earnest.Barrows23@yahoo.com597-719-5318admininactive10/14/20253/19/2025
6JuliaPouros54Flossie.Lockman17@hotmail.com676-399-8387 x8448useractive12/21/20254/5/2025
7LanaWillms57Dale31@yahoo.com300.876.8478 x010adminactive1/8/202610/7/2025
8EstebanMiller28Jaeden.Schulist72@hotmail.com787-786-6636userinactive3/31/20256/16/2025
9TraceyCummings24Shari.Barton@hotmail.com848.477.2897 x992admininactive7/29/20254/22/2025

Header Groups

iduser
nameageemail
firstNamelastName
0KristyHerman37Sophia31@yahoo.com
1EdithGoldner48Joy5@yahoo.com
2JodyHalvorson23Elvis50@hotmail.com
3AlexanneGottlieb37Christine.King17@gmail.com
4RosaKub65Thomas55@hotmail.com
5SadieOndricka51Arnulfo8@yahoo.com
6MiltonDouglas20Amelia87@gmail.com
7LonnieNader23Hazel.Smitham28@gmail.com
8EstebanHermann52Renee_Beatty@gmail.com
9MistyBashirian33Maudie94@gmail.com
iduser
nameageemail
firstNamelastName
0HerminiaMcLaughlin35Blair_Grimes@gmail.com
1GustAnkunding59Maria.Denesik63@yahoo.com
2FredrickJakubowski19Dimitri.Toy64@gmail.com
3OllieHagenes21Cruz39@hotmail.com
4MichaleConnelly25Marcia63@hotmail.com
5SylviaBartell59Edgar92@hotmail.com
6HellenHartmann65Hobart5@hotmail.com
7ShannonJacobs47Randy_Rippin@yahoo.com
8AllisonPouros51Bert.Herman45@gmail.com
9DaronSipes24Mona.Christiansen4@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0LloydHirthe36Adelbert_Ritchie@yahoo.com
1RaphaelleMetz-Wolff47Dayne_Lang97@hotmail.com
2CullenFriesen43Samuel_Paucek80@hotmail.com
3JackiePfannerstill19Candace.Pagac@yahoo.com
4RonaldLockman64Abel_Kessler@gmail.com
5JaydaMante27Aaron.Okuneva@hotmail.com
6SamsonLabadie20Naomi_Klein73@hotmail.com
7MonicaBlock25Ryan_Haley@hotmail.com
8MeganBashirian25Gregg.Keeling63@yahoo.com
9BaileeRippin19Jakayla.Ward@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
0JasperBailey22Bobbie91@yahoo.com
1DougBradtke52Easter_Funk@hotmail.com
2KurtSchuster30Howard58@hotmail.com
3RustyO'Reilly58Domingo0@yahoo.com
4MorrisMaggio65Cicero_Witting65@gmail.com
5LenaQuigley52Debra79@yahoo.com
6CourtneyStamm30Gabriel38@hotmail.com
7RoxanneStracke46Darlene71@hotmail.com
8NyaKing46Louisa.Botsford39@hotmail.com
9ElianHartmann22Erin.Bechtelar@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0DonnieSchinner50Salma_Lind45@yahoo.com
1AubreyRunolfsdottir24Priscilla84@gmail.com
2JefferyTowne38Ramon_Dibbert@yahoo.com
3ObieHayes44Norene71@gmail.com
4CarsonTromp37Willie.Padberg@gmail.com
5TraceyYost38Ervin.Prosacco@hotmail.com
6HildaQuigley54Rebekah.Koch99@gmail.com
7JuanitaCartwright30Nicholas.Ward@gmail.com
8DestanyFritsch43Erika_Altenwerth@gmail.com
9TylerGutkowski43Adrienne_Toy@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0RebeccaHills35Yolanda_Bins32@hotmail.com
1DorthaFrami33Casimer_Goyette@hotmail.com
2DanielHowell49Juanita_Kling31@yahoo.com
3YadiraHarber29Brain.Rowe@hotmail.com
4HenrySpencer18Verla_Nitzsche@yahoo.com
5DollyWehner24Zachary_OConnell19@hotmail.com
6NormaBreitenberg20Stacy_Runolfsson-Vandervort86@gmail.com
7SunnyMonahan62Gerard_McKenzie@hotmail.com
8MikelTreutel20Liliane_Rempel51@yahoo.com
9CaseyCarter38Ellis73@gmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
2LanaHodkiewicz63Iris56@yahoo.com
3CharlotteMann61Walter.Considine@yahoo.com
5SandraKeebler54Jeffery40@gmail.com
8ErmaRobel51Carson4@yahoo.com
0ClintonHudson50Camryn8@gmail.com
1DanielPredovic39Jonathan66@gmail.com
9OllieCummings36Christie_Schaefer@hotmail.com
6EribertoLeannon29Moses46@yahoo.com
7BransonHills25Zula_Baumbach-Schaefer47@hotmail.com
4TorreySipes19Kayla.Homenick48@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0MattJaskolski36Emelia.Terry@yahoo.com
1LeeBode49Brett88@yahoo.com
2KarlHammes60Myrna_Lubowitz7@gmail.com
3CelestineAdams60Elisha.Rogahn@gmail.com
4LeahHayes30Carroll70@gmail.com
5GwenSporer57Ellen_Koss15@gmail.com
6SheilaDibbert61Lowell21@hotmail.com
7BradCummerata22Noemy.Batz-Prosacco40@hotmail.com
8ArchieAuer21Judy85@hotmail.com
9LulaLindgren37Armani.Davis91@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0ChelseaPagac19Mittie_Smitham83@yahoo.com
1MitchellOberbrunner-Turner25Margot.Ritchie67@yahoo.com
2ErnestoMaggio-Cronin51Krista.Nienow-OConnell@gmail.com
3ZionMante-Armstrong61Lelia_Armstrong77@yahoo.com
4MartyLind36Richard.Zemlak@yahoo.com
5BillRussel45Karen21@gmail.com
6GraceWeissnat47Cornelius.Mann@yahoo.com
7SandraNikolaus42Timothy.Auer@yahoo.com
8TerryOsinski42Edward_Howe65@yahoo.com
9RachelSawayn55Demario_Schimmel67@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0GeoffreyGutkowski29Viva_Schoen42@yahoo.com
1KarianeDicki35Emanuel.Hayes@hotmail.com
2ShermanHyatt21Lourdes_Friesen53@yahoo.com
3FrederickEffertz40Lila23@hotmail.com
4MarisaMoore21Dennis51@hotmail.com
5CalebPowlowski55Arlie.MacGyver21@hotmail.com
6ElishaWisozk35Angelina.Lehner12@hotmail.com
7JennaHoeger48Ada_Murazik@gmail.com
8TriciaDoyle28Debbie95@gmail.com
9JohnnieWiegand42Delta4@gmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0BrookeParker62Jermaine67@yahoo.com
1OrieTurner34Velda.Grant@yahoo.com
2JayneRowe31Susana_Casper@hotmail.com
3JulieJast65Sister98@yahoo.com
4MazieHaley46Alysa.Graham@hotmail.com
5GwenQuitzon31Mario99@hotmail.com
6JosephStark-Littel49Rodrigo.Quitzon75@yahoo.com
7SantosFeil51Gina_Hermiston33@yahoo.com
8RaphaelleGlover52Damon73@hotmail.com
9VeronaStamm30Ellis.Connelly@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
0LydiaHeidenreich64Lloyd_Vandervort29@gmail.com
1JaunitaDach31Tina35@yahoo.com
2TiaGleichner50Antwon_Jast67@gmail.com
3ShaunGoyette35Rolando.Wintheiser81@yahoo.com
4FannieConnelly58Cesar.Wolff@yahoo.com
5CarlFeil19Ken29@gmail.com
6KennethSmitham32Priscilla50@gmail.com
7BridgetSchoen46Pat75@hotmail.com
8JuliaWitting40Shane.Kulas48@gmail.com
9OlgaArmstrong38Doug_Bernhard62@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0JazminJohnston28Kevon36@yahoo.com
1HelenKautzer47Mike97@yahoo.com
2GermaineSchmeler42Laura_Wilderman@hotmail.com
3JonMonahan64Jeremy42@hotmail.com
4FannieMacejkovic30Judith48@yahoo.com
5TraceyJones51Kellie_Kassulke15@gmail.com
6EddieFeil37Sally_Spinka73@yahoo.com
7SantinoConsidine34Drew52@hotmail.com
8LanaKlein51Alexandra22@yahoo.com
9CelineSmitham25Glen3@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
0VernieWest60Edyth.Kirlin3@gmail.com
1BrandonHarber54Alanna96@yahoo.com
2AlaynaPredovic56Rick.Smitham@hotmail.com
3JacobO'Kon-Klocko58Ana.Franey@gmail.com
4JanaFeeney39Shaun_Russel79@hotmail.com
5KennyVolkman37Lysanne.Wehner@gmail.com
6IrmaJerde23Delbert63@hotmail.com
7AdaLarkin-Gorczany61Shanon.Cole82@yahoo.com
8HaleyHahn35Barrett.Friesen-Gottlieb@yahoo.com
9EarlTillman53Jeannette_Kerluke92@yahoo.com
10JerrellRohan38Carol.Maggio6@hotmail.com
11HettieSchiller44Gertrude.Douglas@hotmail.com
12BryanWeber31Laurie75@gmail.com
13MargaritaCorwin45Rossie_Pacocha99@hotmail.com
14NadiaHettinger24Amanda.Leuschke@gmail.com
15GeoffreyHarber26Carolyne16@yahoo.com
16ErikaCollier26Michael59@hotmail.com
17MaxMarvin30Amy.Wiza@gmail.com
18TamiMaggio65Garry79@hotmail.com
19YvonneBins27Billie_Armstrong@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
10RonaldoWalsh40Raul45@hotmail.com
11FrankieJaskolski56Cody89@gmail.com
12WebsterZiemann33Berry_Orn@hotmail.com
13MamieGulgowski33Jody.Gislason45@hotmail.com
14TammyLubowitz55Myrna.Predovic34@hotmail.com
15JeffereyDickinson20Armando16@hotmail.com
16KentonLang25Elsie88@hotmail.com
17AndresSchultz27Joann.Bergstrom@hotmail.com
18AliyahMayert23Samanta.Ernser53@yahoo.com
19RandolphRitchie51Brent_Hamill@yahoo.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0NathanielMaggio31Greg49@gmail.com
1AlexanderKuphal64Laurence.Schowalter@hotmail.com
2MicheleKoss52Monroe17@hotmail.com
3ChristopherFeeney61Tressie.Powlowski44@gmail.com
4MildredLuettgen31Annie.Hammes@gmail.com
5JackieO'Hara33Cathrine21@yahoo.com
6FelicitaMedhurst32Darnell60@hotmail.com
7TrevorStreich28Taryn_Schoen22@gmail.com
8LesleyDonnelly23Birdie_Nader91@hotmail.com
9GuiseppeToy37Rodolfo46@gmail.com
10OdieStiedemann52Cecilia34@yahoo.com
11PerryLittel61Terri.Prosacco@yahoo.com
12JermaineZieme36Aletha36@hotmail.com
13VioletteKlein48Drew57@hotmail.com
14SaraRaynor62Raul.Quigley@gmail.com
15ArjunBuckridge59Duane.Von87@yahoo.com
16EricBoyer18Alexander.Balistreri@gmail.com
17KeithRowe30Curt1@hotmail.com
18BuckO'Connell45Nicola_OConner@hotmail.com
19AntonioGottlieb27Jim_Franey@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0EmelyBogisich19Wade98@gmail.com
1DougWill40Franz75@yahoo.com
2MeganMaggio35Avery_Ebert@hotmail.com
3NealFadel19Courtney95@hotmail.com
4MargaritaTreutel22Bart.Vandervort92@hotmail.com
5FannieMurphy59Marguerite41@gmail.com
6MelodyBotsford57Garry.Brakus@hotmail.com
7JacquelynPadberg56Joanne82@yahoo.com
8MaxineHarris44Gerald16@yahoo.com
9BrennonRowe47Adam_Abshire@gmail.com
10JohannaWolff53Marie61@gmail.com
11JaneRunte36Katelynn.Bogan95@yahoo.com
12DomenicaBerge41Isaac.Koelpin16@yahoo.com
13LeslieMcCullough26Evert24@hotmail.com
14SonyaGrimes52Domingo.Hickle@hotmail.com
15FriedaFisher26Reyna_Connelly@hotmail.com
16MadelineBlock26Trevor_Streich@hotmail.com
17DarenMosciski31Fredy.Rau@yahoo.com
18JimmieDickinson49Meghan99@yahoo.com
19MercedesRussel24Meta32@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0KayleighGreenholt24Drew68@hotmail.com
1BessieSchimmel27Tate_Koelpin@hotmail.com
2BryanGreen64Angel91@yahoo.com
3EmilioSanford57Kristie.Barton2@hotmail.com
4DonnieBednar32Lindsey.Wilkinson13@yahoo.com
5RylanSchiller19Johnnie.Bednar@hotmail.com
6GeorgiannaWitting29Natalia59@hotmail.com
7JamieLittle37Stephanie72@yahoo.com
8OmarHauck37Rafael54@gmail.com
9RosalindZulauf18Bethel37@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
0GingerRomaguera-Welch65Lacy_Huels@yahoo.com
1BrannonErdman61Carli.Cronin@gmail.com
2CoryPurdy55Zella.Klocko39@gmail.com
3ShelleyErnser45Deven_Tremblay57@yahoo.com
4MonicaDoyle59Daisy99@hotmail.com
5CharleneHilpert18Dan46@yahoo.com
6RochelleWilkinson19George.Wunsch72@hotmail.com
7EloySawayn31Lazaro_Balistreri@gmail.com
8ColinRunolfsdottir61Lowell_Lesch76@hotmail.com
9AlleneKertzmann31Darryl75@yahoo.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0LetitiaBalistreri50Domingo_Frami@yahoo.com
1CraigHermann18Cecelia_Metz@gmail.com
2MauriceCronin47Elisabeth68@gmail.com
3NikkoMorar29Delores.Daniel@yahoo.com
4KimOkuneva24Alexandro.Bednar16@yahoo.com
5JaclynCarter52Martin.Kuhlman@gmail.com
6HarryRogahn19Gwendolyn_Armstrong@yahoo.com
7PhilFeil48Grover.Gusikowski@yahoo.com
8CreolaSauer23Oscar97@yahoo.com
9JackyBorer39Nicola.Daugherty58@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0MiltonBreitenberg31Aliza80@yahoo.com
1LetitiaSteuber33Clifton_Hackett@gmail.com
2CarlSimonis60Debra.Mertz@yahoo.com
3DallasReinger26Claire59@hotmail.com
4SummerMarquardt34Dan19@yahoo.com
5TommyStokes57Lowell_Ruecker58@gmail.com
6ClovisBoyer59Karl.Wilderman73@yahoo.com
7DomingoHeathcote20Santos_Howell@yahoo.com
8WillisBruen38Dock.Thompson@hotmail.com
9FrankieSchumm36Emily95@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0PabloOsinski-Kihn36Golda_Schulist@gmail.com
1IanWehner61Dejuan.Kutch35@gmail.com
2DawnRaynor46Jordan.Bailey@hotmail.com
3RyderWalsh36Matt5@hotmail.com
4ErickSawayn23Billie_Mann@hotmail.com
5SheldonDibbert49Bryana.Gottlieb55@yahoo.com
6KyleTowne51Rhianna.Klocko70@gmail.com
7SophieWindler56Brenda79@hotmail.com
8KimMaggio29Doris.Collins91@hotmail.com
9MarieLesch20Jennifer75@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0SilviaHuel22Erika_Krajcik@yahoo.com
1AlmaEmard56Ella.Gottlieb@yahoo.com
2TobyHayes62Kristoffer31@yahoo.com
3DagmarRomaguera-Hahn18Marilyn_Haag3@gmail.com
4LarryKeebler57Loren.Ward@hotmail.com
5RonaldHills18America26@gmail.com
6AngelaKoelpin20Jean_Frami@yahoo.com
7TurnerRice37Buford_Tremblay30@hotmail.com
8RogelioWilliamson34Taya98@hotmail.com
9RyanSchumm56Adrienne.Runolfsson-Stark13@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0CalebFriesen-Farrell57Aron.Spencer25@hotmail.com
1JayKozey36Archie6@gmail.com
2FaustoSchimmel33Giuseppe26@yahoo.com
3LuciaWiza60Brad_Pacocha8@hotmail.com
4DonaldNienow41Ray98@hotmail.com
5ArthurWolf40Adam.Wunsch@gmail.com
6EssieBruen39Aaron.Torphy@hotmail.com
7AndyKshlerin33Curtis.Roob56@gmail.com
8ModestoSwift59Ernesto30@yahoo.com
9JordynBeatty49Craig99@gmail.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
0VictoriaBoyer50Constantin71@gmail.com
3MaggieOrtiz41Julie12@gmail.com
7MilfordSpencer34Alyssa.Shanahan@gmail.com
8GlenPowlowski18Jada.Yundt25@gmail.com

Control Filter

idfirstNamelastNameageemail
0BrigitteVon49Martin3@yahoo.com
1JeanWiegand30Nick.Rowe71@hotmail.com
2EliasConsidine48Judith_Walter@yahoo.com
3JordanRyan41Krystal68@hotmail.com
4JanelleThiel25Vickie.Cummerata44@gmail.com
5ZoilaMertz23Braeden_Watsica6@gmail.com
6IgnacioBruen62Libby_Grady42@yahoo.com
7JacquelynTromp53Una_Cole@hotmail.com
8MaddisonDach38Natasha55@hotmail.com
9UniqueMacGyver60Jeremy12@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0OmariGutkowski51Joyce9@gmail.com
1AlvisHane64Harold.Balistreri74@hotmail.com
2PauletteAbbott28Zander_Kutch-Gusikowski98@yahoo.com
3RobynRatke47Kaitlyn_Koch@gmail.com
4KelleyCummings59Luther.Bergnaum26@gmail.com
5FannieHeidenreich28April_Kris-Bahringer98@yahoo.com
6AllanRippin56Leonor.Beer25@gmail.com
7LenoraBoyle27Lynn60@gmail.com
8DellaWolff41Stephen87@gmail.com
9HaroldSmith19Elinore.McLaughlin@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
0PatrickUpton34Lillie_Nader3@yahoo.com
1SalvadorPouros-Ryan57Melanie68@hotmail.com
2LorenaAbbott50Cicero_Jenkins-Kohler@hotmail.com
3JudeSchmidt54Jeffery.Kuphal@hotmail.com
4KyleConroy34Roscoe27@yahoo.com
5EraLedner49Jan.Stokes80@gmail.com
6ShelleyWilkinson30Myron_Ritchie8@gmail.com
7ShanaGlover65Suzanne_Rohan89@gmail.com
8MableMedhurst-Nicolas36Maxine_Kertzmann@hotmail.com
9GordonStiedemann35Mamie81@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<Data[]>(() => 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.