Table

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

idfirstNamelastNameageemail
0DeannaRutherford62Mina.Cremin73@gmail.com
1KareemParisian59Virgie_Ondricka@yahoo.com
2NathanielRuecker56Kellie35@yahoo.com
3AnnaliseHickle32Delta.Trantow@hotmail.com
4MayLangworth37Brandt_Mayer@yahoo.com
5LorenBergstrom51Jeremiah.Barton50@yahoo.com
6KaseyTreutel32Sidney_Hermann53@hotmail.com
7TroyBaumbach38Orlando86@yahoo.com
8DomenicoHammes37Ron_Walker@yahoo.com
9CarltonVandervort43Amber62@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0CherylJenkins24Brandi.Boehm@yahoo.com
1CharlesSchaefer42Jensen.Schumm60@gmail.com
2AniyahMarquardt61Alvin_Walsh12@gmail.com
3KristinaUpton-Mohr43Harry_Thompson91@hotmail.com
4KatrinaBarton23Sonia_Hayes6@hotmail.com
5LizzieCronin25Retta_Deckow@gmail.com
6NaomiHeidenreich53Essie76@yahoo.com
7AngelicaHomenick33Regina_Kunde@hotmail.com
8IreneHermiston44Godfrey_Roberts@yahoo.com
9AustynWyman-Zieme40Ardith_Konopelski@gmail.com
idfirstNamelastNameageemail
0CherylJenkins24Brandi.Boehm@yahoo.com
1CharlesSchaefer42Jensen.Schumm60@gmail.com
2AniyahMarquardt61Alvin_Walsh12@gmail.com
3KristinaUpton-Mohr43Harry_Thompson91@hotmail.com
4KatrinaBarton23Sonia_Hayes6@hotmail.com
5LizzieCronin25Retta_Deckow@gmail.com
6NaomiHeidenreich53Essie76@yahoo.com
7AngelicaHomenick33Regina_Kunde@hotmail.com
8IreneHermiston44Godfrey_Roberts@yahoo.com
9AustynWyman-Zieme40Ardith_Konopelski@gmail.com

Change Size

idfirstNamelastNameageemail
0ConradAdams43Austen.Schmitt10@hotmail.com
1CarltonHermann50Tracy.Swaniawski5@hotmail.com
2FloyJast54Amy_Frami@gmail.com
3DouglasWyman24Elaine5@gmail.com
4MozelleHowe20Antonia_Lind@hotmail.com
5TerrellSchulist51Tiffany_Kemmer12@gmail.com
6KaylahHickle38Ahmad.Mayert50@hotmail.com
7JulioMraz46Caleigh5@hotmail.com
8ColinHills23Lora_Conn@gmail.com
9PaulineHerzog54Jude.Parisian67@gmail.com
idfirstNamelastNameageemail
0ConradAdams43Austen.Schmitt10@hotmail.com
1CarltonHermann50Tracy.Swaniawski5@hotmail.com
2FloyJast54Amy_Frami@gmail.com
3DouglasWyman24Elaine5@gmail.com
4MozelleHowe20Antonia_Lind@hotmail.com
5TerrellSchulist51Tiffany_Kemmer12@gmail.com
6KaylahHickle38Ahmad.Mayert50@hotmail.com
7JulioMraz46Caleigh5@hotmail.com
8ColinHills23Lora_Conn@gmail.com
9PaulineHerzog54Jude.Parisian67@gmail.com
idfirstNamelastNameageemail
0ConradAdams43Austen.Schmitt10@hotmail.com
1CarltonHermann50Tracy.Swaniawski5@hotmail.com
2FloyJast54Amy_Frami@gmail.com
3DouglasWyman24Elaine5@gmail.com
4MozelleHowe20Antonia_Lind@hotmail.com
5TerrellSchulist51Tiffany_Kemmer12@gmail.com
6KaylahHickle38Ahmad.Mayert50@hotmail.com
7JulioMraz46Caleigh5@hotmail.com
8ColinHills23Lora_Conn@gmail.com
9PaulineHerzog54Jude.Parisian67@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0AlexandrineRunte61Myrtle_Muller3@hotmail.com
1VioletHackett52Darin57@gmail.com
2DarinHand63Andrea.Graham74@gmail.com
3CandidoWintheiser63Jimmie.Erdman@gmail.com
4PauletteBruen64Tommie67@gmail.com
5HomerHeathcote39Isabel.Cruickshank@yahoo.com
6MathewTorphy32Darrell46@yahoo.com
7HomerWiegand30Gillian_McKenzie@gmail.com
8NickArmstrong64Bryant.Rice@yahoo.com
9AdrienneJerde38Gina.Bauch87@hotmail.com
idfirstNamelastNameageemail
0AlexandrineRunte61Myrtle_Muller3@hotmail.com
1VioletHackett52Darin57@gmail.com
2DarinHand63Andrea.Graham74@gmail.com
3CandidoWintheiser63Jimmie.Erdman@gmail.com
4PauletteBruen64Tommie67@gmail.com
5HomerHeathcote39Isabel.Cruickshank@yahoo.com
6MathewTorphy32Darrell46@yahoo.com
7HomerWiegand30Gillian_McKenzie@gmail.com
8NickArmstrong64Bryant.Rice@yahoo.com
9AdrienneJerde38Gina.Bauch87@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0AdahBuckridge59Alice70@yahoo.com
1WestleyPollich32Ed.Schumm66@hotmail.com
2RodRatke59Marsha22@yahoo.com
3StephaniaLeffler19Kylee_Davis-Fay33@hotmail.com
4SheriRolfson54Madisen.Kreiger61@yahoo.com
5KaileeCasper38Marcel_Lind@hotmail.com
6ArchieBraun62Morris.Hand@gmail.com
7ReannaEmmerich32Kamron_Nienow18@gmail.com
8PaxtonJacobs25Edyth_OKon@hotmail.com
9MercedesUpton44Ashleigh_Shields83@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0CatherineSatterfield32Neoma_Heaney32@gmail.com
1EudoraLeffler51Cristal.Gleason@gmail.com
2EliezerWyman58Elsie13@yahoo.com
3AmosProsacco58Louvenia.Collins@yahoo.com
4LaneKuvalis35Melba.Torp@hotmail.com
5JavierWatsica62Jordyn5@hotmail.com
6WilliamEmard56Derrick.Stokes92@hotmail.com
7AlexStroman49Brendan.Runolfsson@yahoo.com
8AlbaWeber55Drew_Langosh@yahoo.com
9AmayaConnelly35Tamara1@gmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0HarveyO'Kon44Lottie_Ritchie43@hotmail.com
1RandalSchultz64Luz_Beier@gmail.com
2TerrenceHirthe-Green37Esteban_Hodkiewicz@yahoo.com
3LilianeMarks39Kay.Fritsch34@hotmail.com
4LizaHarris53Zachary_Jerde@gmail.com
5MeredithKuhlman54Kieran.Moen93@gmail.com
6AlexanderSchaefer38Gunner_Gusikowski@yahoo.com
7KarenPagac45Bernard.Farrell@yahoo.com
8GeovanniGibson57Kristopher_Ratke68@hotmail.com
9KateJerde61Frederick_Von4@gmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0SarinaJacobson31Danial40@gmail.com
1SamuelWaters32Madalyn43@yahoo.com
2JoyJacobs22Salma_Lueilwitz@gmail.com
3MyrtieO'Hara25Haylie.Jacobson8@hotmail.com
4EvaHilll-Rowe30Roderick88@hotmail.com
5YolandaKertzmann38Maximillia_Langworth@hotmail.com
6ErikaDicki31Wellington.Cummings@gmail.com
7EthylKerluke26Ena84@yahoo.com
8BartonKovacek60Aurelie.Goodwin@yahoo.com
9OswaldoWalsh65Zachary.Beer@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0ConstantinGottlieb62Jay.Bernhard-Tremblay75@yahoo.com(606) 974-4161 x6759adminactive11/28/20254/4/2026
1FaustoLeffler62Norberto.Swaniawski@hotmail.com361.592.1775 x8757userinactive5/20/202512/16/2025
2JacquelynVolkman58Sedrick9@hotmail.com416.234.3054 x1003admininactive9/18/20257/26/2025
3EllisKessler25Walter56@yahoo.com309-813-2355 x88803userinactive9/13/20257/5/2025
4MyrtleWunsch35Dean_Keeling84@hotmail.com(921) 885-8859 x49222userinactive11/6/20251/25/2026
5JarrodRolfson18Lowell_Zboncak@hotmail.com226-868-9898userinactive7/21/20259/2/2025
6DellaZboncak44Betty70@yahoo.com720-582-9752 x0436adminactive6/21/202510/17/2025
7DaisyMurray45Murl.Wunsch89@hotmail.com1-423-587-3387 x0744admininactive4/30/202510/30/2025
8JaidenDaugherty57Margie21@hotmail.com(886) 895-2219 x061admininactive3/29/20265/3/2025
9SigurdMann25Florine56@yahoo.com459.210.7242 x020admininactive5/13/20252/26/2026

Header Groups

iduser
nameageemail
firstNamelastName
0CatherineBernier35Patrick_Heller@yahoo.com
1MackenzieRath24Tricia1@gmail.com
2AshleyWilderman32Bernice_Senger29@gmail.com
3AnselShields28Kyler_Emmerich81@hotmail.com
4KaydenGreenfelder37Maxime.Collins32@yahoo.com
5TylerWalker46Charlotte.Boyer50@gmail.com
6SusannaMuller29Granville.Hansen@hotmail.com
7JacquelineGraham59Robert.Hackett51@yahoo.com
8GermainePagac55Terence.Balistreri@yahoo.com
9GlendaLynch34Nicolas_Jacobson@yahoo.com
iduser
nameageemail
firstNamelastName
0LonieKerluke36Audra37@hotmail.com
1ImeldaO'Reilly27Neal.Mante18@hotmail.com
2JeremiahKeebler43Douglas.Hoppe89@hotmail.com
3JoshMueller31Nia8@yahoo.com
4JazmynAbbott48Nina_Nitzsche@gmail.com
5EmmieKoepp23Sara.Becker80@gmail.com
6JonathanCremin-Orn55Esther96@yahoo.com
7EuniceGerhold47Lera18@yahoo.com
8ClaireTurner59Glenda.Sauer-Muller55@yahoo.com
9MarlinLeannon59Madisen28@gmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0SylvesterStehr57Carla99@hotmail.com
1RebeccaWuckert53Alexandro90@yahoo.com
2IbrahimRosenbaum57Kaden.Armstrong@yahoo.com
3SamirRempel64Erika.Rau@yahoo.com
4EdwinWillms29Jerry70@hotmail.com
5AnnieDonnelly54Marianne.Rippin86@gmail.com
6JonathonLindgren-Howe61Fannie.Sanford@yahoo.com
7WilburnLedner25Audrey_Kessler10@yahoo.com
8JavierKirlin55Rickey.Conroy@hotmail.com
9BrendaDietrich41Alyce_Grimes4@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
0AnnetteKrajcik28Herman.Stiedemann-Bernier@yahoo.com
1SusanaRyan47Ashly29@hotmail.com
2JasmineVon22Silas_Will54@gmail.com
3ChristineRuecker38Eva.Stamm73@hotmail.com
4LucienneBernier-Altenwerth51Frederic.Thompson39@yahoo.com
5MatthewWeimann27Pauline.Rosenbaum@hotmail.com
6DarronMoen20Thomas_Bartell@yahoo.com
7AlbertoMedhurst45Lynda53@hotmail.com
8PearlLeuschke25Celia_Berge-Roberts@yahoo.com
9OrvilleMante65Casimer49@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0EduardoSchamberger65Alfredo55@gmail.com
1KellieLeannon40Cruz7@hotmail.com
2JasperAuer31Evelyn.Christiansen12@yahoo.com
3VirgilKirlin52Brennon39@hotmail.com
4DouglasBlick61Lucia_Borer48@yahoo.com
5GarrisonGoldner48Wiley.Glover31@yahoo.com
6LeoraTowne54Gina.Kohler-Abbott23@gmail.com
7BillieMorar55Erma.Schaden@hotmail.com
8ShainaCronin58Sonya36@gmail.com
9AngelinaHyatt40Althea_Hayes62@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0ScarlettStreich28Marlee.Kiehn43@gmail.com
1EdnaHartmann58Hazle.Glover@gmail.com
2EttieHaley62Marjorie12@gmail.com
3KenyaParker31Loretta93@hotmail.com
4MeghanBraun42Mariano.Herzog@yahoo.com
5TommieProhaska60Marisol97@yahoo.com
6HarryConsidine39Jesus.Kreiger98@gmail.com
7DeweyWeimann31Stanton_Mraz@gmail.com
8FelixKuhn56Lynda.Vandervort61@hotmail.com
9HarleyAufderhar19Eliseo_Becker@gmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
0PhilipHowell58Kathryne86@hotmail.com
5OliviaHalvorson53Lynne49@yahoo.com
9JudeBlanda53Christopher_Luettgen53@hotmail.com
6MariannaGrant50Rashawn98@yahoo.com
3JoelleBlock47Irene.OConner@hotmail.com
8SpencerDickens46Blake.Schiller@hotmail.com
2JenaSauer31Jenna.Anderson@gmail.com
1MoriahFriesen28Ivah.Dietrich6@hotmail.com
7MelvinaMcGlynn24Nichole_Blanda@hotmail.com
4ClintonRenner22Shad76@yahoo.com

Disable Sorting

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

idfirstNamelastNameageemail
0PhyllisJohnson34Mitchell.Kohler80@hotmail.com
1EunaSteuber64Austin_Swaniawski29@hotmail.com
2RolandKeeling39Wm27@hotmail.com
3JosephineBode49Clara42@hotmail.com
4MilfordPfannerstill31Al57@yahoo.com
5NelsonLegros57Mara.Bahringer29@hotmail.com
6CristalHills34Ethyl78@gmail.com
7MadonnaKassulke51Darrel.Schmeler52@hotmail.com
8AdolfCarroll35Carrie_Schroeder2@yahoo.com
9LilianeWuckert37Aditya.Kulas13@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0WandaDicki44Skyla99@yahoo.com
1DixieHackett49Christopher_Heller@yahoo.com
2FelipeLang27Lyle_Olson11@hotmail.com
3AngieJohnson63Nicolas_Zulauf64@yahoo.com
4TerrellKoss59Vada_Hegmann@yahoo.com
5BettyKunze51Kristine.Haag@hotmail.com
6CatherineMonahan64Misty.Leffler@gmail.com
7BernardMitchell62Carson.Buckridge41@gmail.com
8StacyBrown18Lorine_Hilll97@yahoo.com
9GavinBins24Alfred63@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0KarlaO'Reilly24Tremayne_Fadel32@gmail.com
1WaldoSimonis35Christelle86@yahoo.com
2RogelioSpencer34Janie_Purdy69@hotmail.com
3SpencerBalistreri65Deanna.Johnston@hotmail.com
4HellenHerzog32Jorge_Jenkins94@hotmail.com
5LavinaMitchell50Jennie.Wolff-Shields99@gmail.com
6CrystalSchoen52Estell.Wolff12@gmail.com
7KacieSchmidt44Dorthy_Nienow@yahoo.com
8DaveFadel39Damon_Cummings@yahoo.com
9IsraelLemke42Alysa.Orn@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0AlbertProsacco41Devin.Cole@gmail.com
1TrentonMarvin21Kiana60@yahoo.com
2IraHirthe57Darryl_Johns@hotmail.com
3RicardoHudson36Justin_Borer@yahoo.com
4ClayJerde45Colton.Renner@hotmail.com
5LacySchmitt64Elenor31@hotmail.com
6MauriceO'Connell20Sheldon.Satterfield@gmail.com
7ShemarBeer31Frederick46@yahoo.com
8PhillipGraham49Bessie.Dach@gmail.com
9MorrisThompson52Natasha.Jast89@hotmail.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
0BrettStiedemann65Marlen.Hartmann@hotmail.com
1ValentineOlson52Edmond84@gmail.com
2BettyeHaag23Brennan_Rodriguez@hotmail.com
3NormaGusikowski18Brenden.Skiles@gmail.com
4SylvesterHarber45Johathan.Fay@yahoo.com
5CharleyPredovic36Irene.Heller24@yahoo.com
6AniyahKuphal48Dale_Schaden@gmail.com
7EthanHoeger19Patty.Beatty2@hotmail.com
8TheresiaBauch38Edmond_Toy27@yahoo.com
9JuliaD'Amore28Jerry.Sipes10@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0MyrnaBaumbach21Litzy.Bergstrom@gmail.com
1AdanMills34Murphy_Block@hotmail.com
2DarylSchiller-Stracke22Hillard.Waters12@gmail.com
3KaraCarter56Shane_Lehner@gmail.com
4EverettOndricka53Deborah_Homenick41@yahoo.com
5EthanLarson63Dominic_Reilly@hotmail.com
6KristoferKuvalis39Tammy_Towne0@yahoo.com
7RaulHomenick29Eula37@gmail.com
8MallieMcDermott51Bettie.Toy@gmail.com
9MortonHane25Sylvia.Bogan@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.

idfirstNamelastNameageemail
0AdellaMertz33Rex_Wuckert16@yahoo.com
1VickieBins26Chelsey35@yahoo.com
2BryceHudson-Effertz54Homer_Harvey@gmail.com
3FelipaGulgowski27Flora_Buckridge98@hotmail.com
4MelindaStiedemann-Kohler55Faye61@gmail.com
5AnyaCronin-Pfannerstill37Roscoe.Swift@gmail.com
6TellyAufderhar-Goodwin33Ignacio.Romaguera24@yahoo.com
7RobbieReinger55Uriah6@hotmail.com
8DevonFerry35May68@gmail.com
9CharleneYost63Hazel_Howe56@gmail.com
10MackCollier37Renee8@yahoo.com
11ClintonPagac47Reginald91@yahoo.com
12AmiyaCremin20Kylie28@yahoo.com
13IdaFahey18Noah94@hotmail.com
14BarrettBoehm46Kyleigh68@hotmail.com
15ElnaKemmer21Tony29@yahoo.com
16LewisRussel31Terrell.Tremblay@gmail.com
17WilhelmineMurazik31Ian27@yahoo.com
18KayleeHagenes45Mayra_Tillman42@yahoo.com
19MelyssaSteuber42Ashley_Gorczany@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
10VirginiaLebsack48Edgar_Hermiston81@gmail.com
11CecilLabadie43Alicia_Wehner-Borer62@yahoo.com
12TerrenceHintz22Sherwood58@hotmail.com
13DeeZemlak42Ella.Armstrong20@gmail.com
14LizethMarquardt18Garry19@gmail.com
15RavenGerlach50Earnest_Mosciski@hotmail.com
16MarcO'Conner30Andrea23@yahoo.com
17NatashaDickens45Delmer93@gmail.com
18KarleeAnderson34Kayden98@hotmail.com
19NicholausMcCullough35Troy_Lubowitz44@hotmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0HipolitoHodkiewicz61Theodore_Tillman@yahoo.com
1PasqualeGottlieb20Nakia.Wyman4@hotmail.com
2LanaKshlerin57Ubaldo_Wiza94@hotmail.com
3JaidaKuhn34Christopher93@gmail.com
4JennaGlover39Kade43@yahoo.com
5TommyHaley-Toy44Christie_Tillman0@yahoo.com
6MurlWalker38Ruth_Kutch64@yahoo.com
7RhondaHyatt56Eula.Sauer14@gmail.com
8KobeKoch31Trever.West@yahoo.com
9LuluZiemann44Herbert_Schultz10@gmail.com
10JamalWeimann23Horace_Metz@gmail.com
11VernonDurgan60Hailey_Schroeder-Bayer@hotmail.com
12ZackeryMcLaughlin43Nelda_Marvin-Bradtke39@gmail.com
13TerrenceHills22Leon.Weimann@hotmail.com
14JohnathanSchaefer49Dario.Weimann85@yahoo.com
15HowellHomenick65Laurence.Schneider@hotmail.com
16SamParisian55Johanna.Reichel@hotmail.com
17PaulaHermiston39Trinity92@yahoo.com
18ReggieParisian28Jill_Deckow82@yahoo.com
19StevenCollins-Cole54Kenyatta.Lebsack@hotmail.com

Control Pagination

idfirstNamelastNameageemail
0MarcellaCremin28Grace_Connelly49@yahoo.com
1MateoDavis27Brooke_Schaefer67@yahoo.com
2MattGreen40Dwayne.Rempel99@yahoo.com
3ElouiseBeier42Lori.Kunde@hotmail.com
4ClarenceBalistreri64Sherman_Mayer-Nolan@yahoo.com
5SamuelZemlak64Cornelius.Stamm77@yahoo.com
6TravonHoeger22Lester.Schulist67@hotmail.com
7ErnestoMaggio63Tatyana_Harvey15@hotmail.com
8NikoWunsch61Kaia_Koss@yahoo.com
9ToddBergnaum20Ocie.McLaughlin@hotmail.com
10LorenaCasper48Jedidiah_Schmidt34@yahoo.com
11ShaunLebsack61Zetta97@hotmail.com
12AlexaneGleason41Enrique.Fisher35@yahoo.com
13DanielleBuckridge-Bergnaum49Sarah.Dibbert@yahoo.com
14WebsterJacobson29Wiley70@gmail.com
15MarquiseMiller33Tim_Hane64@gmail.com
16BillLegros18Antonia61@hotmail.com
17CharleyAnkunding23Felix_Frami@yahoo.com
18FlorenceFritsch43Carolyne_Bauch@gmail.com
19RandyKulas50Stanley.Kautzer-Stamm@hotmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0KoleAnkunding52Gloria43@hotmail.com
1AylaLynch52Michael.Adams84@hotmail.com
2BriceKirlin46Lelia86@yahoo.com
3BoydHegmann51Joel.Beer0@gmail.com
4AaliyahJakubowski50Lester.Raynor4@gmail.com
5ChelseaHaley33Ashleigh32@gmail.com
6JacquesGoyette27Kristoffer.Tremblay@hotmail.com
7MarkusWilliamson20Michelle_Goodwin26@yahoo.com
8KristaHills25Isidro.Greenholt@hotmail.com
9GisselleKris-Klein55Diana50@gmail.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
0MarcStoltenberg63Kennedi.Hansen44@yahoo.com
1LandenEmard58Verna.Beahan@gmail.com
2MacyPrice54Brooks.Runte@hotmail.com
3NatalieDicki44Kaden_Emard24@gmail.com
4LondonBartoletti58Myra_Pfeffer94@gmail.com
5PamelaCrona25Granville.Strosin4@hotmail.com
6AdrielErnser22Adelle.Franey@hotmail.com
7ClovisLemke40Daisy15@gmail.com
8AurelieHeaney63Rodney45@hotmail.com
9MercedesWard59Christ.Keeling-Schmeler@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0LisetteKautzer65Kyle.Stanton@gmail.com
1SantosDooley33Larry_Trantow48@hotmail.com
2NinaSpinka20Jackson_Kiehn47@hotmail.com
3ColemanKling42Sydnie94@gmail.com
4HenriettaNitzsche43Jaunita42@gmail.com
5MonserratRunolfsson23Iris_Crona14@yahoo.com
6FerminAbshire37Laverne.Wehner52@hotmail.com
7SigmundWilkinson-Toy51Elenor_Hammes55@yahoo.com
8SarinaBeahan38Yvette27@hotmail.com
9JanisKerluke54Lucy_Hauck@hotmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0ChesleyRogahn36Brittany.Cassin64@yahoo.com
1VictorWilderman36Della.Runte75@yahoo.com
2JustinDooley55Eve20@gmail.com
3ValerieKertzmann18Laurine36@gmail.com
4AngelinaSmith56Jovanny.Nitzsche20@yahoo.com
5RichardTorphy46Frederick.McKenzie95@gmail.com
6GaryDietrich23Aditya_Vandervort61@hotmail.com
7TravisMuller-Gottlieb49Vergie49@gmail.com
8KeelySchuppe49Alexander2@yahoo.com
9WilliamDare46Armando87@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0AlexanneKrajcik52Leigh_Bechtelar-Klocko80@hotmail.com
1JamisonDaugherty21Bernard_Sipes38@yahoo.com
2FrederiqueDavis30Catherine.Graham@hotmail.com
3RaymundoBashirian25Wilma_Schmitt33@gmail.com
4AdaGorczany40Ima53@hotmail.com
5AurelioSchuppe-Adams31Kenny.Gorczany88@hotmail.com
6LonnyQuitzon20Adelia_Ebert16@hotmail.com
7AntonioWunsch54Brooke.Daniel@yahoo.com
8KrystalFay47Coralie.Frami@gmail.com
9LelandDibbert31Lilian11@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0RyanKuphal46Cale_Upton25@gmail.com
1SalvatoreMcCullough32Jessika.Yundt32@yahoo.com
2MirandaBernhard23Newell_Little49@gmail.com
3MedaLehner23Spencer91@hotmail.com
4EdithSchuster54Horacio_Howell57@gmail.com
5StewartThompson65Ian.Kautzer56@yahoo.com
6HesterThiel36Henderson_Hagenes@hotmail.com
7JohannaMueller63Kevin65@yahoo.com
8ElnaSchneider50Jesse_Buckridge@gmail.com
9KielKovacek28Jovanny.Wisozk-Jerde@yahoo.com

Use Filter

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

idfirstNamelastNameageemail
0DarrylWalker41Ewald.Hudson12@yahoo.com
1PearlMante18Mandy.Brakus26@hotmail.com
2PenelopeKoss60Teri_Welch@yahoo.com
3DominickMurazik60Jada59@yahoo.com
4GeneMcGlynn-Schultz45Leonard40@hotmail.com
5PiperNienow26Monte_Brown43@hotmail.com
6GideonSpinka58Emerson_Wyman@yahoo.com
7EstelleSchoen42Taya65@yahoo.com
8DanaHeller33Ada68@gmail.com
9JerrodJenkins40Demario_Konopelski@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
2KyleDach37Eleonore.Borer28@gmail.com
7FlorineLueilwitz58Herman_Hills74@gmail.com

Control Filter

idfirstNamelastNameageemail
0RosarioLang54Alayna_Hintz40@yahoo.com
1RodgerRice50Lucy_Raynor@yahoo.com
2AlannaHills21Eugenia.Hartmann@gmail.com
3JuanBayer59Mamie_Hahn98@yahoo.com
4EstrellaCassin49Aglae_Price@gmail.com
5TashaBashirian35Dayne.Rodriguez@yahoo.com
6BelleRath-Jast55Jeremie.Bashirian21@gmail.com
7RosemarieWisozk58Al10@hotmail.com
8JulioMarks-Considine56Ian.Nienow30@gmail.com
9MiriamGreenholt23Tillman_Dicki@gmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0CalistaMcKenzie20Blair.Mosciski97@yahoo.com
1AnneGutkowski45Dwayne.Mraz97@yahoo.com
2JaidaWitting47Kenneth_Purdy@gmail.com
3JeanneWindler44Nils.Swift@yahoo.com
4LucilleBorer36Clemens_Keeling@yahoo.com
5MercedesOkuneva45Oliver_Walsh62@hotmail.com
6IsabelleLueilwitz37Isaiah.Huels@hotmail.com
7RosemaryHeathcote29Amy_Zemlak@yahoo.com
8AustinKoch53Jessika.Rosenbaum@gmail.com
9BobbyWeissnat27Donald.Dare@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
0RonaldCummings35Jared99@hotmail.com
1TonyaMedhurst21Danny.Robel14@hotmail.com
2DrewSpencer49Mateo.Tremblay92@hotmail.com
3OrvilleKshlerin56Josh_Torphy77@gmail.com
4TessO'Connell31Elmo44@gmail.com
5ChristyCarter27Marge.Kozey@yahoo.com
6ClarkFlatley37Amber80@gmail.com
7LyndaSporer36Angus37@hotmail.com
8ByronKilback45Daryl_Schimmel-Gusikowski86@hotmail.com
9CeliaConn63Jason_OKeefe83@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

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