Table

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

idfirstNamelastNameageemail
0NathanKling30Inez_Maggio83@gmail.com
1BarryGoldner23Mariah.Witting46@gmail.com
2ReynaMedhurst25Lavada_Moen@hotmail.com
3DarrellJacobs33Ethelyn.Pfeffer@gmail.com
4AngieDicki26Patrick_Glover58@yahoo.com
5AlonzoBecker23Jordon49@gmail.com
6PiperKlocko62Jean.Carter27@hotmail.com
7ShaunReinger53Emmett36@yahoo.com
8EileenYost30Howard_Schaden@yahoo.com
9BrisaStroman53Micah_Miller12@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0LenaReinger26Terrell39@gmail.com
1JadaLittel20Stanley16@yahoo.com
2AmparoRoob28Donald57@gmail.com
3WandaHand55Cassandra_Nicolas@gmail.com
4SharonSwaniawski-Kuhlman49Roger50@hotmail.com
5RomanAltenwerth44Rosemary17@gmail.com
6OsbaldoGoodwin35Cathy_Morar11@gmail.com
7AndreBreitenberg46Henderson53@gmail.com
8BenKiehn35Bethany22@gmail.com
9LeannaKub46Zoila_Cummings@gmail.com
idfirstNamelastNameageemail
0LenaReinger26Terrell39@gmail.com
1JadaLittel20Stanley16@yahoo.com
2AmparoRoob28Donald57@gmail.com
3WandaHand55Cassandra_Nicolas@gmail.com
4SharonSwaniawski-Kuhlman49Roger50@hotmail.com
5RomanAltenwerth44Rosemary17@gmail.com
6OsbaldoGoodwin35Cathy_Morar11@gmail.com
7AndreBreitenberg46Henderson53@gmail.com
8BenKiehn35Bethany22@gmail.com
9LeannaKub46Zoila_Cummings@gmail.com

Change Size

idfirstNamelastNameageemail
0AlanaCronin19Savanna92@yahoo.com
1AaronWolff-Kuvalis29Howard_Bauch@gmail.com
2AshtonBorer33Cecil_Klein@gmail.com
3AlbinaSchultz34Jeromy.Emmerich@hotmail.com
4FriedaCollier32Terence_Pagac19@gmail.com
5RosellaFunk26Justin.Jenkins@hotmail.com
6HarryBechtelar29Elwin.Little87@gmail.com
7PamelaHeller54Dave45@hotmail.com
8AlaynaYost59Camille34@gmail.com
9JaylenOlson46Greyson.Balistreri@yahoo.com
idfirstNamelastNameageemail
0AlanaCronin19Savanna92@yahoo.com
1AaronWolff-Kuvalis29Howard_Bauch@gmail.com
2AshtonBorer33Cecil_Klein@gmail.com
3AlbinaSchultz34Jeromy.Emmerich@hotmail.com
4FriedaCollier32Terence_Pagac19@gmail.com
5RosellaFunk26Justin.Jenkins@hotmail.com
6HarryBechtelar29Elwin.Little87@gmail.com
7PamelaHeller54Dave45@hotmail.com
8AlaynaYost59Camille34@gmail.com
9JaylenOlson46Greyson.Balistreri@yahoo.com
idfirstNamelastNameageemail
0AlanaCronin19Savanna92@yahoo.com
1AaronWolff-Kuvalis29Howard_Bauch@gmail.com
2AshtonBorer33Cecil_Klein@gmail.com
3AlbinaSchultz34Jeromy.Emmerich@hotmail.com
4FriedaCollier32Terence_Pagac19@gmail.com
5RosellaFunk26Justin.Jenkins@hotmail.com
6HarryBechtelar29Elwin.Little87@gmail.com
7PamelaHeller54Dave45@hotmail.com
8AlaynaYost59Camille34@gmail.com
9JaylenOlson46Greyson.Balistreri@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0MalcolmLarson60Mireya.Schuppe@hotmail.com
1ElenoraBlanda19Patsy.Langosh@hotmail.com
2EmmettFriesen56Alvis_Morissette@gmail.com
3NikoKoepp45Percival_Mayert28@yahoo.com
4TomasaMoen45Lane60@yahoo.com
5JaniyaRoob22Hettie_Klocko56@hotmail.com
6WendyKeeling34Fritz_Abshire@hotmail.com
7ElaineShanahan18Danial.Lockman48@hotmail.com
8LeannaReichert61Steven0@hotmail.com
9AmberToy30Keshawn96@yahoo.com
idfirstNamelastNameageemail
0MalcolmLarson60Mireya.Schuppe@hotmail.com
1ElenoraBlanda19Patsy.Langosh@hotmail.com
2EmmettFriesen56Alvis_Morissette@gmail.com
3NikoKoepp45Percival_Mayert28@yahoo.com
4TomasaMoen45Lane60@yahoo.com
5JaniyaRoob22Hettie_Klocko56@hotmail.com
6WendyKeeling34Fritz_Abshire@hotmail.com
7ElaineShanahan18Danial.Lockman48@hotmail.com
8LeannaReichert61Steven0@hotmail.com
9AmberToy30Keshawn96@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0KatieHilpert50Louis26@yahoo.com
1SusieKrajcik59Dennis_Cremin@gmail.com
2EmanuelWyman21Deborah.Wilderman@gmail.com
3BethWilderman43Elian74@gmail.com
4DorthaSchuppe29Gabriel12@hotmail.com
5DannyKautzer31Myra.OConner96@gmail.com
6ZanderRosenbaum45Gerardo_Haag48@gmail.com
7JarenHerman42Patsy98@yahoo.com
8JoanGottlieb65James_Ernser@yahoo.com
9TatePrice35May.Mueller75@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0DannyHickle26Madge.Streich@hotmail.com
1AnjaliSteuber47Jovani.Reynolds@hotmail.com
2LindseyKohler39Jazlyn4@yahoo.com
3VeraBashirian65Randy.Glover86@hotmail.com
4JaimeRohan34Al.MacGyver@hotmail.com
5AurelieSmith34Greta_Jacobson75@hotmail.com
6DebraMonahan19Rocky_White@yahoo.com
7SandyEmard44Tammy.Hauck19@yahoo.com
8AnnaLarson22Lowell83@gmail.com
9AbbeyQuigley45Lillian_Torphy@gmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0FreddieHilpert37Wendell.Koss@gmail.com
1NicoleWill24Josefa_Wiegand@yahoo.com
2StuartSchuppe50Carmel_Koelpin-Upton@yahoo.com
3PriscillaWintheiser53Leola.Feeney4@gmail.com
4BillieGraham40Christian97@gmail.com
5SonjaHarvey50Doris_Pfannerstill49@hotmail.com
6ElodyWest46Barbara_Marquardt43@yahoo.com
7JosephineMurphy55Lourdes.Flatley@gmail.com
8SonnyAbbott31Melissa.Dooley1@gmail.com
9KeeganWeimann43Kaitlyn29@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0SammyMertz65Evan23@hotmail.com
1FloydLegros20Grace.Harvey3@gmail.com
2JohnGislason48Jerome_OKon@hotmail.com
3JeremyRitchie54Garnett_Jaskolski@gmail.com
4BennieRoob32Victoria_Doyle25@yahoo.com
5BreannaBrakus28Ettie.Friesen69@gmail.com
6TamiaMetz55Marlene2@yahoo.com
7ErnestoMoen-Erdman57Forrest.Ritchie70@yahoo.com
8FloBlick64Travon.Schultz52@gmail.com
9MonaSipes53Mildred.Schinner@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0GoldenKunze39Guillermo.Little@gmail.com(315) 724-5547admininactive8/23/20252/2/2026
1WiltonSchmeler20Deron_Botsford@gmail.com(209) 728-4722 x179userinactive6/24/20251/8/2026
2JabariAufderhar48Durward96@yahoo.com1-218-947-1838 x14973useractive3/11/20264/14/2026
3FeltonBoehm31Augustus.Hamill36@hotmail.com(873) 226-3862userinactive6/25/20258/19/2025
4KayliCollins38Nora.Schultz97@yahoo.com1-259-548-8383 x997admininactive4/18/20266/13/2025
5ForrestLuettgen33Camilla68@hotmail.com(283) 714-2836 x02764useractive3/29/20268/19/2025
6HaroldLockman54Katherine.Johns@hotmail.com1-727-785-1326 x45541userinactive7/1/20255/8/2026
7RachelGleason30Rey.Beer38@gmail.com955-765-7217 x5379adminactive9/5/202511/1/2025
8AimeeRomaguera48Katrina_Funk28@gmail.com240.992.1386useractive10/31/20258/10/2025
9TaraMitchell19Regina.Erdman48@hotmail.com1-557-640-7220 x03301userinactive11/19/202512/29/2025

Header Groups

iduser
nameageemail
firstNamelastName
0RossParker44Abel70@gmail.com
1EmmetOlson38Dakota24@hotmail.com
2LuigiYundt57Dustin.Runolfsdottir9@hotmail.com
3DeweyFraney-Marquardt51Karlee48@hotmail.com
4KayleeLeuschke60Bridie.Reinger@yahoo.com
5LoraDietrich32Gabrielle_Cormier96@hotmail.com
6RockyThompson64Evan_Jerde-Stoltenberg51@yahoo.com
7RebaLittel22Dameon_Osinski@yahoo.com
8BernadineHettinger30Jeanette.Ferry76@yahoo.com
9MarleneParker45Rebekah.Effertz51@yahoo.com
iduser
nameageemail
firstNamelastName
0OrenMonahan43Yvette69@hotmail.com
1VidalBartoletti35Halie_Sipes82@yahoo.com
2BarbaraBeatty24Dominick12@yahoo.com
3SonyaHessel38Al48@gmail.com
4IraKeeling59Donald_Moen@hotmail.com
5RayLuettgen34Homer.Lockman22@gmail.com
6TarynKautzer33Mara_Beer@gmail.com
7ColtGrady39Guy.Windler@gmail.com
8CharlieHuels34Dawn73@yahoo.com
9LouisSporer20Michelle.Becker@hotmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0CristinaDaniel43Allan.Barton@gmail.com
1HerthaRolfson18Timmothy_Corwin@gmail.com
2AnnaZulauf59Orrin.Ondricka@hotmail.com
3MarcosBrown24Larue.Schoen@yahoo.com
4NelleSporer29Shaylee_Rice46@hotmail.com
5MaxO'Conner-Turcotte33Grant.Powlowski81@hotmail.com
6DeshaunDurgan63Spencer_Kozey@yahoo.com
7VitaDooley64Maximillia60@gmail.com
8SpencerCrooks56Osborne30@yahoo.com
9AlejandroOrn54Emiliano.Franecki@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
0RebeccaBlick24Verdie.Grimes@gmail.com
1MaeFritsch28Delilah70@yahoo.com
2DianeNitzsche22Roberto.Kuhic@hotmail.com
3CortezKonopelski60Emie_Willms66@gmail.com
4AnabelJohnson22Flora.Bednar@hotmail.com
5CamrenLang60Chyna.Greenfelder57@gmail.com
6CotyQuigley35Shaun_Powlowski@hotmail.com
7EstefaniaGreen22Shaylee_Kozey@hotmail.com
8TurnerMetz40Trevion_Lowe-Christiansen@gmail.com
9LewisFunk26Derek1@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0CasperLakin39Yolanda_Thompson@gmail.com
1MorganSchroeder61Jesse.Lemke@gmail.com
2JoBarrows20Tatum59@gmail.com
3KyleZieme34Retta.Ankunding23@gmail.com
4CarterLeannon26Faustino_Bradtke74@gmail.com
5BradRogahn25Betsy_Hirthe2@yahoo.com
6AmberCasper30Sonja99@yahoo.com
7KaitlinFadel44Clemmie5@yahoo.com
8WilburGrady39Penelope_Gottlieb@yahoo.com
9JoeUllrich60Loraine50@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0StoneMarvin18Lorraine22@hotmail.com
1CamilaMiller29Eladio6@gmail.com
2JovanyLarson25Arjun.Waters34@gmail.com
3GunnarBosco19Dario80@gmail.com
4ClaytonFeeney32Cristian48@gmail.com
5JennaHegmann55Janet_Miller74@gmail.com
6GenovevaMarks20Kimberly69@gmail.com
7IcieDickens-Parisian48Lynette25@hotmail.com
8VictoriaMraz64Dwight_Torp94@gmail.com
9EarnestHoeger41Eliza_Wisoky@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
7ElmiraKautzer55Sedrick.Fisher@hotmail.com
0RoyQuigley48Lewis.Conn@hotmail.com
6ErnieYost44Lane.Lesch55@gmail.com
2AmberBecker41Mildred58@yahoo.com
1RudolphWisozk39Rashawn20@hotmail.com
5TabithaCrooks38Tracey67@yahoo.com
4NashThiel35Brad.Wilderman35@yahoo.com
8ElzaConn26Adelia.Roob52@hotmail.com
3BrooklynKoch23Kristy75@gmail.com
9MarcBergstrom18Crystal.Durgan22@gmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0AlfonsoBraun26Jillian75@yahoo.com
1OmarWiza56Lennie.Gutmann@gmail.com
2DayneLarson22Maximo.Carter@hotmail.com
3MarjorieCremin63Vincenza88@gmail.com
4HeavenGulgowski40Betsy_Crona29@hotmail.com
5AnitaDibbert63Ivan_Sauer57@yahoo.com
6GerardoKoelpin45Carmelo_Will10@hotmail.com
7DaveBode60Katlynn_Mertz65@gmail.com
8ShainaLangosh48Fredrick43@yahoo.com
9IsmaelRatke59Gail_Fisher@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0KristieMurazik27Cecil_OHara@yahoo.com
1EmilySawayn43Jennyfer.Stiedemann@gmail.com
2ElvieDaugherty27April_Terry97@hotmail.com
3SageReinger63Marjorie.Hickle41@hotmail.com
4DejonPowlowski23Shirley6@hotmail.com
5YasminQuitzon26Julie84@yahoo.com
6JaleelWalter21Jess_Frami@yahoo.com
7AlonzoGoyette45Glenda_Vandervort73@gmail.com
8AutumnAnderson21Nellie73@gmail.com
9MelanieSchimmel57Lena.Goodwin81@hotmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0PrincessLarkin51Antone_Klein@gmail.com
1EwellHyatt-Wehner27Shakira_Olson93@hotmail.com
2PatrickSipes48Maggie28@yahoo.com
3ClintHaley44Kayla_Stoltenberg9@gmail.com
4ArloSchmitt21Mona_Wyman23@gmail.com
5MindyLindgren20Larry96@gmail.com
6AliciaRice43Kristina.Wehner@gmail.com
7SoniaPollich37Donna_Luettgen1@hotmail.com
8LorenaNienow46Dawn41@gmail.com
9HaroldPredovic25Vicenta_Bogisich@yahoo.com

Manual Sorting

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

idfirstNamelastNameageemail
0TrinityStark20Fletcher_Auer@gmail.com
1AriFlatley50Domenick_Sporer53@gmail.com
2RandalRussel59Sheldon.Rohan@yahoo.com
3JacobKessler30Eddie.Schiller@yahoo.com
4CeliaBrakus57Harrison_Romaguera@yahoo.com
5JordiWeber61Laverne.Gerlach@hotmail.com
6AlisonMarks36Gustave38@hotmail.com
7QuentinVolkman39Luz_Sauer80@hotmail.com
8BlakeUllrich52Daniel63@gmail.com
9ZionWilkinson22Lucille49@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
0IrvingRoberts35Molly.Schoen66@hotmail.com
1LeonieMayert58Lynne.Hyatt@yahoo.com
2VallieSchroeder52Jeannette66@gmail.com
3SamanthaBartoletti57Jack_Erdman98@gmail.com
4WendyAdams-Runte32Malachi89@hotmail.com
5MckennaSchroeder19Ted.Gislason-Rempel@yahoo.com
6SydneeLubowitz43Faye25@gmail.com
7RoderickHarris36Lavina.Connelly@gmail.com
8SadieWhite35Reggie.Cremin87@hotmail.com
9TyrellFarrell47Silvia79@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0RylanDibbert52Queenie.Heidenreich70@hotmail.com
1TraceyReynolds50Kayla_Greenfelder80@gmail.com
2EstherHeathcote34Stan_Daugherty@yahoo.com
3AustenKoss42Rosie_Marks@yahoo.com
4LornaNader37Rosa_Windler@hotmail.com
5SarahSipes62Salvatore.Becker@hotmail.com
6OthaRowe60Wilson.Langosh87@gmail.com
7BillyMcLaughlin-Gutkowski52Esther_Prohaska@gmail.com
8EvaReilly34Karson13@hotmail.com
9EileenDurgan24Clinton_Ritchie@yahoo.com

Enable Pagination

To enable pagination, set enablePagination to true and set the component that controls the pagination to header or footer. The default is false.

idfirstNamelastNameageemail
0ChesterLegros55Lisandro.Mayert@gmail.com
1BradMetz27Jermey40@hotmail.com
2CraigRohan-Satterfield37Mikayla68@gmail.com
3JimmyHaag39Nellie_Sawayn55@yahoo.com
4MaiaKassulke22Katarina.West52@hotmail.com
5LillianKuvalis31Harry.Thiel@hotmail.com
6FritzHagenes60Charlene.Heidenreich@hotmail.com
7EmilioYost34Claudie_Lowe@hotmail.com
8CliftonHackett43Chesley24@yahoo.com
9WilbertHackett51Angelica_Stamm@hotmail.com
10JayneCasper29Jennie_Ledner@gmail.com
11DennisHintz62Arnoldo45@hotmail.com
12DennisStehr34Caitlyn_Lueilwitz@gmail.com
13FloydWill49Kristy46@hotmail.com
14PattieWhite47Keira.Hammes87@yahoo.com
15LavernKoch28Tomasa_Murphy@gmail.com
16KirstinWeber51Darin.Cassin36@gmail.com
17SummerPagac20Amaya.Spencer@hotmail.com
18HattieZiemann31Zachary34@gmail.com
19HugoBlanda19Freddie_Muller@hotmail.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
10LudieWilderman27Guillermo.MacGyver15@gmail.com
11CurtisKris63Melody67@hotmail.com
12CharleneHansen39Lucienne65@gmail.com
13DianaHessel41Irving_Zulauf@yahoo.com
14HillardRutherford28Bernard82@hotmail.com
15GarrisonMonahan50Rudy_Kuhic12@gmail.com
16JuanaMonahan52Royal58@yahoo.com
17HilbertAbshire-Medhurst30Jennie.Ernser60@hotmail.com
18SterlingShanahan63Angelina_Wehner@gmail.com
19GenovevaMayer25Concepcion_Collins97@hotmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0MaximeO'Connell60Ashley.Schmidt53@gmail.com
1LawrenceKihn18Dwight26@hotmail.com
2GarrettDach20Dasia.Kozey@hotmail.com
3ChristianRice-Rohan57Blaze.Bradtke@hotmail.com
4ReginaldLind44Kraig62@yahoo.com
5AngelineRomaguera21Jeff_Collier17@gmail.com
6FordMurazik56Jennie69@yahoo.com
7PhillipMraz34Ora.OReilly83@gmail.com
8DuaneMitchell26Katie_Spencer@hotmail.com
9VelmaOndricka37Darlene.Smith@yahoo.com
10CoraLesch25Cathy.Gottlieb@hotmail.com
11JeromePaucek24Adan.Kozey@yahoo.com
12DaphneyHarvey20Joanna83@yahoo.com
13RubenHuel40Lora_Cruickshank-Keeling85@yahoo.com
14ClintFeeney32Laverna_Reilly71@yahoo.com
15QuincyBraun25Mitchell_Bartell@yahoo.com
16CedricKiehn29Irving19@gmail.com
17MargieWalsh32Jesus70@gmail.com
18ElviraHomenick36Jonathon_Marks@hotmail.com
19ElenorWeimann65Nikita87@gmail.com

Control Pagination

idfirstNamelastNameageemail
0DeborahCrooks35Stephon.Kris0@gmail.com
1JovanyWolff45Brennan_Ryan@hotmail.com
2JoanyBoyer-Adams61Johnathan_Heller-Marquardt18@yahoo.com
3AnnKautzer59Andre.McDermott@hotmail.com
4LelandRuecker58Hilda92@yahoo.com
5ChanelleFunk38Jovanny91@gmail.com
6CamilleSchumm29Giovanna13@yahoo.com
7SantosPaucek38Maurice33@yahoo.com
8HeathRempel65Jazmin_Muller@yahoo.com
9MattieStiedemann60Shany_Halvorson-Nitzsche63@yahoo.com
10ArlieRempel34Collin_Sauer@yahoo.com
11MaiyaGreenholt50Stuart99@hotmail.com
12MyahBernier32Betty.McDermott@hotmail.com
13AngelicaGerhold35Dawn.Shields@yahoo.com
14BerneiceBartell23Jaden92@gmail.com
15AntoniaFeest52Karl9@hotmail.com
16OliviaCorkery37Lynette71@hotmail.com
17DannieWaters33Laurence77@gmail.com
18CarrollRaynor26Kristi16@gmail.com
19ChristianBlanda25Ida.Feil28@yahoo.com

Enable Row Selection

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

idfirstNamelastNameageemail
0JoelleO'Reilly54Mandy_Wilkinson66@gmail.com
1MaggieGutmann36Cleo.Kutch@yahoo.com
2PierceWilliamson57Sophie83@gmail.com
3ChloeStark55Chandler_Lehner@yahoo.com
4GregorioOberbrunner30Eudora.Marquardt@hotmail.com
5DeborahPollich-Kessler54Eddie_Emmerich55@hotmail.com
6DerekRice-Weimann65Neoma_McClure99@hotmail.com
7ArvidProsacco45Pascale17@hotmail.com
8LorenaKuhlman64Janie.Mayert59@gmail.com
9AlishaLittle53Tanner13@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
0ChelseaHills25Rosemary59@yahoo.com
1MatteoWatsica32Kendra.Hodkiewicz27@yahoo.com
2ReginaCarter37Khalil_Bruen44@yahoo.com
3LonnieMayer56Willis.Koch@yahoo.com
4DouglasTrantow43Annie.Halvorson@yahoo.com
5BentonPfeffer61Earnest.Abshire@gmail.com
6HoldenFeeney64Fernando_Rosenbaum-Hermiston@hotmail.com
7BenKessler41Claire.Turcotte64@hotmail.com
8EunaLittle22Marsha.Batz@gmail.com
9LuraSteuber46Dexter68@yahoo.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0ToniKonopelski33Jared60@yahoo.com
1RaeganBogan23Fredy_Gislason@yahoo.com
2NicoleHamill42Wendell30@hotmail.com
3ChadRunte27Aurelio_Moore@yahoo.com
4SisterMante48Samantha_Mertz@hotmail.com
5MadysonReichel37Linwood_Wunsch40@hotmail.com
6RamiroWindler20Augustus_Willms@hotmail.com
7MadysonKoss46Karl_Mosciski82@hotmail.com
8PatrickShields44Doris76@gmail.com
9ToniHills34Garfield.Leannon62@hotmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0GertrudeKoss20Dan41@yahoo.com
1JerelGerhold57Randal_Purdy10@gmail.com
2NatalieSenger33Zachary_Wyman7@hotmail.com
3MaverickHeller63Laurie.Johnson15@hotmail.com
4HazelWill21Nichole.Moore14@hotmail.com
5MelissaTrantow28Trace28@gmail.com
6BrigitteBashirian20Cayla71@gmail.com
7AllanCremin56Theodora.Hauck41@gmail.com
8TellyD'Amore28Wade83@hotmail.com
9RooseveltFrami56Shaun_Lindgren@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0AndreanneTorp50Verda.Zemlak@hotmail.com
1EsperanzaZiemann30Jerel43@yahoo.com
2GregoryKiehn60Alfonso.Russel29@gmail.com
3LorraineLehner49Hunter83@yahoo.com
4PeteEmmerich49Irma_Strosin6@yahoo.com
5BrandiFahey22Abagail.Cole@gmail.com
6KelleyHerzog21Spencer63@hotmail.com
7EmileHowell40Donny_Gutkowski23@hotmail.com
8AdonisDavis38Elenor_Ferry47@gmail.com
9BrandiEmard44Alva_Kunde11@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0DarylAnderson24Felicia72@yahoo.com
1BerthaPurdy24Jacob.Kilback99@yahoo.com
2MaryGoldner61Preston_Keebler8@gmail.com
3VerniceLuettgen64Charlotte_Yundt@hotmail.com
4NolaKohler58Tabitha64@hotmail.com
5BernieJaskolski49Leone.Wilkinson45@gmail.com
6GiaBarton42Beulah_Cole@gmail.com
7GilbertTorphy59Roxanne.Dickens30@yahoo.com
8MarcosHamill34Darnell86@yahoo.com
9JoyMorissette63Elisa.Anderson@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0CareyWaters39Tricia_Ortiz@hotmail.com
1MiriamZulauf47Lowell_Weissnat40@gmail.com
2JeramyGoyette63Carroll.Cole@hotmail.com
3ShaunCole27Claude_Ferry@hotmail.com
4MadelineLuettgen50Dale_Beatty57@yahoo.com
5ShanaSauer65Morris_Armstrong35@gmail.com
6ElisaMante51Alyssa.Kshlerin@yahoo.com
7DewayneVolkman33Andy63@hotmail.com
8GianniKuhn30Carolyne_Turcotte15@hotmail.com
9DonCormier56Morris40@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
0NicholeHeidenreich18Dave9@gmail.com
3CharlieThompson49Hilma.Will@gmail.com

Control Filter

idfirstNamelastNameageemail
0SylvanHagenes50Zack_Champlin@yahoo.com
1CristinaJacobs31Stacey_Little@gmail.com
2AngeloBoyle54John_Walter@gmail.com
3JesusJerde49Luz_Breitenberg26@hotmail.com
4MiguelKilback44Rosario.Tromp15@gmail.com
5YolandaBeer-Corwin42Ottis.Kirlin91@yahoo.com
6EmanuelBergnaum41Elisabeth33@yahoo.com
7TommieSwaniawski49Jesse17@gmail.com
8BertrandFranecki46Randy_Bernhard83@gmail.com
9TammyRolfson41Clint0@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0EmmaMonahan56Sarah13@gmail.com
1ToyBins63Lucio_Hoeger56@yahoo.com
2ShemarKoch20Macey.Marquardt88@gmail.com
3YvonneLesch64Lawrence50@hotmail.com
4MandyCarter48Montana.Herzog71@hotmail.com
5DebraSchmidt20Shaina.Sauer76@yahoo.com
6SophieHintz27Hellen_Friesen42@gmail.com
7MariannaTorphy-Kemmer56Jamil_Doyle@yahoo.com
8WadeLakin46Marc46@gmail.com
9BrantRogahn23Litzy.Waelchi@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
0KristiBreitenberg53Minnie33@hotmail.com
1ClayWehner65Verlie.Reichert@yahoo.com
2JuddFisher36Clovis36@gmail.com
3MaggieKeebler49Angela3@hotmail.com
4MiguelBailey45Demarcus22@yahoo.com
5FredFraney-Wintheiser44Demetrius_Bode@yahoo.com
6DallasWill64Laila34@yahoo.com
7ShyannGorczany54Erin.Crist97@hotmail.com
8TammyFunk34Raina_Bogan76@hotmail.com
9KendraVonRueden39Ed.Boyer90@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