Table

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

idfirstNamelastNameageemail
0ClaraBeahan33Lonnie_Douglas@gmail.com
1AmandaMoore65Charlene2@yahoo.com
2FredrickGreenfelder37Stella.Frami@hotmail.com
3DeanWolf59Jett_DuBuque@hotmail.com
4HelenePfannerstill-Fisher19Trever_Dickens@yahoo.com
5ShaneSchroeder56Isac10@yahoo.com
6EvangelineHeidenreich38Faye.Effertz@hotmail.com
7AlekSmith59Kurtis.Barrows@yahoo.com
8DwayneMoore46Estelle96@hotmail.com
9CarriePagac19Julianne.Watsica35@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0NonaMonahan20Vinnie16@gmail.com
1RosalieMarquardt62Irma_Bechtelar80@hotmail.com
2NancyMonahan61Dan_Aufderhar20@gmail.com
3AlaynaHoppe55Boyd_Hettinger18@hotmail.com
4DeonKoelpin52Loretta_Keeling@yahoo.com
5ShelleyJenkins24Kaylie_Crist25@gmail.com
6MelissaKreiger52Mathias.Rippin@gmail.com
7WillardRempel60Olive_Schowalter@yahoo.com
8JannieStoltenberg45Elliot81@gmail.com
9KristopherKunze34Joel32@gmail.com
idfirstNamelastNameageemail
0NonaMonahan20Vinnie16@gmail.com
1RosalieMarquardt62Irma_Bechtelar80@hotmail.com
2NancyMonahan61Dan_Aufderhar20@gmail.com
3AlaynaHoppe55Boyd_Hettinger18@hotmail.com
4DeonKoelpin52Loretta_Keeling@yahoo.com
5ShelleyJenkins24Kaylie_Crist25@gmail.com
6MelissaKreiger52Mathias.Rippin@gmail.com
7WillardRempel60Olive_Schowalter@yahoo.com
8JannieStoltenberg45Elliot81@gmail.com
9KristopherKunze34Joel32@gmail.com

Change Size

idfirstNamelastNameageemail
0IraBlick54Prince56@yahoo.com
1MeggieCassin30Lola_Schaden93@gmail.com
2AlmaBogan31Katlyn35@gmail.com
3ElvaStoltenberg24Daphnee85@gmail.com
4DarrinBosco-Mertz45Justus_Renner@hotmail.com
5BradfordCollins52Glenn_Weimann74@hotmail.com
6CalvinRatke42Minnie.Klocko@yahoo.com
7VelmaBarrows46Noemie_Treutel65@hotmail.com
8ScottyMurazik48Carli_Moen9@gmail.com
9ClovisReynolds-Wilkinson63Lucius.Reilly@yahoo.com
idfirstNamelastNameageemail
0IraBlick54Prince56@yahoo.com
1MeggieCassin30Lola_Schaden93@gmail.com
2AlmaBogan31Katlyn35@gmail.com
3ElvaStoltenberg24Daphnee85@gmail.com
4DarrinBosco-Mertz45Justus_Renner@hotmail.com
5BradfordCollins52Glenn_Weimann74@hotmail.com
6CalvinRatke42Minnie.Klocko@yahoo.com
7VelmaBarrows46Noemie_Treutel65@hotmail.com
8ScottyMurazik48Carli_Moen9@gmail.com
9ClovisReynolds-Wilkinson63Lucius.Reilly@yahoo.com
idfirstNamelastNameageemail
0IraBlick54Prince56@yahoo.com
1MeggieCassin30Lola_Schaden93@gmail.com
2AlmaBogan31Katlyn35@gmail.com
3ElvaStoltenberg24Daphnee85@gmail.com
4DarrinBosco-Mertz45Justus_Renner@hotmail.com
5BradfordCollins52Glenn_Weimann74@hotmail.com
6CalvinRatke42Minnie.Klocko@yahoo.com
7VelmaBarrows46Noemie_Treutel65@hotmail.com
8ScottyMurazik48Carli_Moen9@gmail.com
9ClovisReynolds-Wilkinson63Lucius.Reilly@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0MelindaFeest38Georgiana22@yahoo.com
1LarryMitchell23Lillie68@yahoo.com
2LyndaO'Connell37Sophie.Steuber@hotmail.com
3MackenzieSchamberger65Frederic29@yahoo.com
4WilmaFeeney36Cleveland.Maggio@gmail.com
5ColinDavis20Abdiel_Bernier19@hotmail.com
6HarmonyThompson38Kirk.Okuneva@yahoo.com
7RickieStoltenberg40Susie46@gmail.com
8DelphineWeber51Benny78@hotmail.com
9CarltonRobel63Kim_Runolfsson@hotmail.com
idfirstNamelastNameageemail
0MelindaFeest38Georgiana22@yahoo.com
1LarryMitchell23Lillie68@yahoo.com
2LyndaO'Connell37Sophie.Steuber@hotmail.com
3MackenzieSchamberger65Frederic29@yahoo.com
4WilmaFeeney36Cleveland.Maggio@gmail.com
5ColinDavis20Abdiel_Bernier19@hotmail.com
6HarmonyThompson38Kirk.Okuneva@yahoo.com
7RickieStoltenberg40Susie46@gmail.com
8DelphineWeber51Benny78@hotmail.com
9CarltonRobel63Kim_Runolfsson@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0SamaraHermiston-Lueilwitz32Valerie.Champlin64@hotmail.com
1RoseKemmer33Iris_Bergstrom@gmail.com
2JackyBergstrom23Cordell_Brakus@yahoo.com
3ColeWyman54Maximillia5@hotmail.com
4MarionHeaney34Myrtle6@gmail.com
5LeviHeller41Guido65@yahoo.com
6GerryNader51Alexis.Mitchell13@hotmail.com
7MurrayDeckow44Jackson57@hotmail.com
8JerrodThompson37Jillian92@gmail.com
9ByronTreutel37Becky.Langosh49@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0DiamondKeeling-Aufderhar19Tessie_Roob@yahoo.com
1AngelinaJones29Oren48@yahoo.com
2JessyLynch62Clyde_Kovacek@gmail.com
3RandalNolan22Edward_Weber20@gmail.com
4MeganZulauf54Brianne.Hettinger94@yahoo.com
5HarveyFritsch33Frederique.Crooks@gmail.com
6VinceLakin57Kylee.Walsh69@gmail.com
7DrewMante19Abraham_Oberbrunner@gmail.com
8AlanKutch42Gregory.Mann@hotmail.com
9IanFraney-Muller44Tristin81@gmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0KenyattaHeidenreich26Eldred3@gmail.com
1AdelbertMills39Sherry_Zieme@hotmail.com
2IvahWisoky39Deondre_Gerhold39@yahoo.com
3ThelmaReichert51Clark_Pouros@hotmail.com
4EliezerMedhurst42Haylee_Gleichner@yahoo.com
5DorrisOberbrunner43Korbin_Lind7@hotmail.com
6CrystalHermann35Melinda.Bosco9@gmail.com
7KaliSpencer35James23@yahoo.com
8LorenaKohler59Augustine.Abshire@gmail.com
9RobynDoyle55Orlo.Steuber69@yahoo.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0ArnoldDickens53Helene_Medhurst54@yahoo.com
1LeoHegmann23Bertha.Green74@hotmail.com
2KristinStokes42Carlos.Schaden60@yahoo.com
3KaylahSchaefer44Dusty.Gerlach@yahoo.com
4JuliusBarton45Diego_Waelchi@yahoo.com
5UriahSwift41Doug.Dooley@yahoo.com
6AprilLangosh39Irving90@hotmail.com
7MortonFranecki47Juston.Buckridge15@hotmail.com
8CordieFeeney30Christiana_Paucek89@hotmail.com
9JudyCole43Sheridan.Deckow35@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0JaylenGulgowski38Cynthia_Cruickshank9@hotmail.com1-824-479-8093 x7550userinactive10/4/20254/9/2026
1CharleyMohr29Velma99@yahoo.com(526) 889-8745 x06969adminactive8/30/20259/3/2025
2DejonArmstrong23Luke.Howe@yahoo.com(334) 985-6891 x714adminactive7/2/20252/8/2026
3MaureenHalvorson45Mona38@yahoo.com973-288-3912 x7421userinactive7/2/20257/15/2025
4TrentFranecki61Lance.Cruickshank38@yahoo.com1-749-627-7943 x4445useractive12/8/202512/3/2025
5AbbeyJaskolski20Aubrey.Prohaska@hotmail.com(740) 354-7459 x0435useractive4/8/20269/3/2025
6AndrewVonRueden47Mitchell_Homenick36@yahoo.com1-695-786-7623 x726adminactive5/20/20264/8/2026
7ElyseRutherford29Hassie_Heaney@hotmail.com992.220.7392useractive6/28/20257/29/2025
8RozellaWisoky53Kay_Prohaska@gmail.com(475) 494-1401 x69195useractive1/4/20269/18/2025
9KatrineMonahan50Cecil_Walker31@gmail.com463.571.9956 x920userinactive6/29/20253/9/2026

Header Groups

iduser
nameageemail
firstNamelastName
0ElenoraSchumm50Aidan_OConnell@gmail.com
1MaudeSenger63Bo_Turcotte49@gmail.com
2NicolasSchiller48Kenny31@yahoo.com
3KieraO'Reilly37Franklin34@yahoo.com
4ChazKuhlman22Justin51@gmail.com
5EdmundCronin58Dedric_Bauch12@hotmail.com
6BrainKshlerin33Tommy35@hotmail.com
7MorrisSwaniawski32Kimberly_MacGyver@yahoo.com
8MorrisHaag53Gail_Runte@hotmail.com
9ToniGrady54Isaac_Corkery19@hotmail.com
iduser
nameageemail
firstNamelastName
0AntonioConn42Maxie61@yahoo.com
1LeonKreiger38Lila.Upton@hotmail.com
2SimoneRunolfsson43Rosemary55@gmail.com
3AlessandraWisozk59Lolita13@hotmail.com
4AngelaCartwright40Dixie.Senger@yahoo.com
5EliasCorkery51Warren.Rodriguez6@yahoo.com
6LewisBechtelar-Johnson31Gerardo99@hotmail.com
7TrystanPagac58Norene_Hackett@yahoo.com
8GraceJacobson55Esperanza82@yahoo.com
9SylviaO'Conner24Oswaldo.Kirlin@gmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0BryantSchoen48Salma_Grimes-Zboncak50@hotmail.com
1SarahBeer65Maxime.Volkman69@gmail.com
2DianeRau62Tatum.OKon24@gmail.com
3MichaelWiegand49Edythe.Davis51@hotmail.com
4WilmaStiedemann56Cody49@gmail.com
5RodneyHowe30Guy.Herzog0@yahoo.com
6MavisHettinger-Ziemann49Hank_Stamm17@yahoo.com
7CeliaHyatt63Noah_Kuphal@yahoo.com
8OrphaMurazik60Erma_Reilly@yahoo.com
9PatKunze29Karianne_Oberbrunner@gmail.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
0RudolphConnelly44Arnold78@gmail.com
1CaitlynHettinger54Elsie_Zboncak@hotmail.com
2ArelyHuels26Marques.Rodriguez@yahoo.com
3EldonNader57Tony75@gmail.com
4AlanisKreiger-VonRueden55Talia_Reichert@yahoo.com
5AndrewRice54Lucia13@gmail.com
6EastonEmard36Darnell.Kling@gmail.com
7GustavoTurner25Gregory.Satterfield37@hotmail.com
8MaePaucek46Edna.McLaughlin13@yahoo.com
9LyndaMayer57Donna.Aufderhar@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0ChristinaPfannerstill61Dolores_Funk@hotmail.com
1MariettaSpencer33Wilma97@yahoo.com
2MalindaTreutel27Kendra68@gmail.com
3KevenO'Connell45Lois_Mills@gmail.com
4NilsSwaniawski32Laurence85@hotmail.com
5BryantBotsford22Emily_Bahringer28@yahoo.com
6PaoloCasper53Sandy.Kerluke@hotmail.com
7TerrellLittel46Carolyne.Pollich51@hotmail.com
8PasqualeCrona32Jorge.Glover@yahoo.com
9KarlGleichner60Marilyn.Wisozk@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0LoriVonRueden50Damion.Jones@hotmail.com
1JimJohns51Stacy64@gmail.com
2AliceDicki20Alton_Keeling@yahoo.com
3DianaSkiles27Norman45@gmail.com
4MirandaCrona21Wesley_Anderson@hotmail.com
5JanetOberbrunner44Lulu_Beer@yahoo.com
6RosalieJacobs45Miriam.Greenfelder24@yahoo.com
7DexterLabadie53Madalyn.Shields@yahoo.com
8EarnestineGleason44Armando.Parker50@yahoo.com
9DomingoPadberg35Tania99@hotmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
6LynneCarter64Kristopher16@gmail.com
8ElenaFranecki64Kiel_Zemlak@hotmail.com
3SonyaBuckridge59Rose15@gmail.com
1CarlosRice58Lydia.Keeling@gmail.com
4SamThompson58Louise72@hotmail.com
7VelmaSwift53Kale_Schamberger87@yahoo.com
0WmWolff52Danielle59@hotmail.com
2EulaliaPrice30Odessa.Deckow41@gmail.com
5PriscillaHuel29George.Dietrich16@gmail.com
9GarrickMonahan18Holly37@yahoo.com

Disable Sorting

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

idfirstNamelastNameageemail
0CliftonHamill-Cruickshank26Stan_Cummings@yahoo.com
1WadeRempel44Erika.Simonis39@yahoo.com
2JeromeGleichner-Casper59Dwayne.Weimann86@hotmail.com
3LouisLesch27Mazie.Kihn25@yahoo.com
4TurnerWelch62Antonina75@yahoo.com
5MargotMitchell43Keenan.Ratke49@yahoo.com
6ShermanKoepp20Brooke_Pfeffer@gmail.com
7FredrickNolan33Elbert20@gmail.com
8MeaganHills62Eli34@hotmail.com
9ArchieDoyle32Clint.Thompson@hotmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0ShawnaBechtelar56Edwin24@hotmail.com
1SybleMurray50Roberto.Wintheiser@hotmail.com
2EdFeil23Bernadette58@gmail.com
3OtisHilpert37Kelvin55@gmail.com
4BeulahBogisich39Kelley_Rutherford@hotmail.com
5ErichFrami52Erik.Lebsack@yahoo.com
6HugoBoyer26Anna54@gmail.com
7MarvinCorkery61Lila38@hotmail.com
8TabithaGrimes-Crona36Amos_Dach65@hotmail.com
9EnriqueReichel28Antoinette14@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0FrederickKunde22Einar.Upton@yahoo.com
1CarltonBergnaum32Joanny5@hotmail.com
2JeffryMuller47Cody.Fisher@hotmail.com
3MargieHerman61Uriah.Barrows@gmail.com
4ErvinFadel56Naomi_Hilpert@gmail.com
5PennySchoen43Dagmar95@yahoo.com
6AdolfHagenes19Mollie5@hotmail.com
7TroyBernier60Kristopher_Senger56@gmail.com
8RoxanneWatsica48Eunice31@gmail.com
9EbonyKeebler58Erik.Considine17@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0LeticiaJacobson22Emmy.Jenkins@hotmail.com
1CarmelCrooks32Tremaine_Satterfield@hotmail.com
2CarsonLarkin31Corey99@yahoo.com
3EricaCassin22Maxie.Bosco-Schimmel@gmail.com
4AndresVandervort46Maximillian_Smitham@gmail.com
5BryantConn55Cassie_Jacobi@gmail.com
6DrewSatterfield64Shelia25@yahoo.com
7MelanieFeeney23Bertha_Ratke@yahoo.com
8BryanBatz34Lennie13@yahoo.com
9EldoraLeannon35Rosendo.Rempel77@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
0StanleyDaugherty32Marguerite22@yahoo.com
1MayDuBuque38Elaine_Beatty@yahoo.com
2EarlKuhn25Melody.Senger@gmail.com
3MaeGibson37Braulio_Robel@yahoo.com
4DarrellMcClure52Melinda_Koss59@yahoo.com
5AbelJaskolski-Balistreri28Cordelia_Kuhn@hotmail.com
6CrawfordKessler30Wendy.Schroeder-Rogahn@gmail.com
7TinaPrice42Eliseo_Wilkinson@hotmail.com
8MadieOsinski45Irvin_Gulgowski0@gmail.com
9IsaacStoltenberg24Cassandra.Hand43@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0EugeneWest47Noah.Schiller@hotmail.com
1VickyHowell20Hope_Murazik@hotmail.com
2BiankaWehner29Jewel15@gmail.com
3KaitlynGreenfelder60Darren21@yahoo.com
4CharlieWehner38Lester.Orn31@yahoo.com
5AnnabellBuckridge45Lynda_Marvin@yahoo.com
6ElenorChristiansen19Tate_Prosacco@hotmail.com
7BethMorar51Scott_Batz@gmail.com
8GarrettZieme51Francisca_Smith68@gmail.com
9AlexandriaAbbott40Adalberto.Koelpin@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
0DarnellJakubowski38Torrey_Murray@gmail.com
1DemarcusRoberts55Muhammad63@hotmail.com
2OllieBruen65Raymundo.Mante@gmail.com
3MerleRutherford59Shari.Prohaska@hotmail.com
4GeoBednar18John.Carroll@gmail.com
5SilviaKoelpin37Carmelo_Collier@gmail.com
6JeanBruen57Odie56@gmail.com
7AlexMcKenzie54Elyse_Runolfsdottir40@gmail.com
8MelindaMcClure56Lavinia14@gmail.com
9EinoQuigley35Conrad_Ward@hotmail.com
10IsomRomaguera59Ova.Renner12@hotmail.com
11NolaLarson45Santino_Wintheiser@hotmail.com
12KaydenWalker32Sylvester_Feest10@gmail.com
13JesseGerlach29Fausto3@yahoo.com
14CameronBerge65Dawn.Kerluke47@gmail.com
15FeliciaWilkinson50Friedrich99@hotmail.com
16ErnestHaley36Serenity.Von@gmail.com
17CassandraBoyer-Anderson61Aaron_Kerluke89@gmail.com
18CliffordMonahan47Randall.Mann@hotmail.com
19DelphaDouglas46Seamus_Armstrong55@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
10DeannaNitzsche24Elaine.Brakus@gmail.com
11JeffreyHagenes29Maryann_Okuneva@yahoo.com
12GriffinKoepp51Cody.Oberbrunner@hotmail.com
13LucindaAuer34Sophia19@hotmail.com
14SallyRuecker39Timmy61@yahoo.com
15RobertaMcLaughlin42Sherri69@yahoo.com
16KieraParker61Adolf18@hotmail.com
17HumbertoBatz38Jessica28@hotmail.com
18GiovannaStehr61Roel20@yahoo.com
19NatGoldner48Meaghan.Heathcote@yahoo.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0DwayneBode38Alvin.Dare@yahoo.com
1AdalineHarvey56Susana_Pacocha@yahoo.com
2DonnellMoore35Noah_Senger88@gmail.com
3MyahKrajcik48Leah.Kuhn12@gmail.com
4ManleyFeil37Gerard_Fritsch74@hotmail.com
5StacyHammes42Billy31@yahoo.com
6HaroldHane59Rosemary.Schuppe@gmail.com
7TerranceCassin24Larry_Green@gmail.com
8FredyCorwin49Ida.Schiller-Hoeger@yahoo.com
9ArnoldKeebler64Thad.Beahan73@yahoo.com
10ElviraLueilwitz-Bergstrom55Perry.Zulauf@gmail.com
11DavonHomenick48Mamie_Jenkins@yahoo.com
12TaraBrown47Dax11@yahoo.com
13ShaneAbernathy22Amy6@yahoo.com
14JacksonGulgowski18Herbert.Dare41@gmail.com
15DallasLebsack35Annette.Little27@yahoo.com
16LonieWeimann44Katherine.Hermiston27@yahoo.com
17JoanHodkiewicz62Brandy.Johnston19@hotmail.com
18CaleighTromp20Bria28@hotmail.com
19JoannaGerhold34Jackson_Schaden87@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0BlancheSmith65Ralph_Hintz21@gmail.com
1AustinTerry40Paula_Ernser@hotmail.com
2JuanitaRenner27Patti.Ernser@hotmail.com
3KristaTremblay64Russell.Walter46@gmail.com
4GideonBuckridge53Ettie_Bosco99@hotmail.com
5CordeliaBogan45Marjolaine_Gerhold@hotmail.com
6MadalynHansen57Louis_Monahan57@yahoo.com
7CarleyRomaguera47Josiane53@gmail.com
8LamarBreitenberg44Owen69@gmail.com
9MustafaDoyle50Carey35@gmail.com
10SarahGreenholt60Steven69@gmail.com
11EldonPrice42Flora.Torphy44@hotmail.com
12ThomasCummings26Alex.Rutherford87@yahoo.com
13PaytonDaniel45Heber24@yahoo.com
14CadenHeaney37Lucius_Spencer@gmail.com
15CletusMcLaughlin37Brittany.Pollich57@yahoo.com
16LouGislason64Teri.Hyatt1@hotmail.com
17GoldenKirlin56Lila13@yahoo.com
18DiamondTorp64Irma5@hotmail.com
19JustineHagenes56Annetta_Gislason52@yahoo.com

Enable Row Selection

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

idfirstNamelastNameageemail
0EzekielKrajcik50Beverly_Boehm@yahoo.com
1SheridanDavis31Sally_Fritsch@gmail.com
2JustineWehner42Victoria.Marquardt16@yahoo.com
3TerrenceKuhic61Fae_Fahey@hotmail.com
4EduardoBatz52Roscoe47@gmail.com
5EverettD'Amore39Efren63@gmail.com
6DougHeathcote34Pattie.Kertzmann80@gmail.com
7AudreanneSpencer36Milton.Treutel40@yahoo.com
8ArchibaldMacGyver-Franey22Adrien.Yost2@hotmail.com
9KatePfeffer20Wilbert.Marks@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
0EladioKulas19Rodney39@gmail.com
1ChristieLegros29Ashlee.Ernser@yahoo.com
2DeltaDach45Lupe.Crooks74@gmail.com
3VerlieStrosin57Javon.Hoppe@yahoo.com
4SiennaMoore65Forrest23@yahoo.com
5AgustinMorissette21Sophia29@yahoo.com
6ZacherySchultz57Lucas.Weissnat33@yahoo.com
7CesarMoen20Sandra33@gmail.com
8CaleHettinger34Destany_Pfannerstill19@gmail.com
9MarisaKeeling23Jed_Harris@gmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0AnnOrtiz52Cullen.Tremblay6@yahoo.com
1EzequielNolan43Claude_Pouros@hotmail.com
2DustinReichel49River_Block@hotmail.com
3ArvillaZieme22Mack_Green@gmail.com
4KristenSchneider51Ian_Boehm@hotmail.com
5ShermanWest59Mario.Legros@hotmail.com
6GiovanniBechtelar27Pamela.Crona@yahoo.com
7DelbertSchuster46Carlos_Towne@hotmail.com
8RandallMedhurst26Nettie_Von@gmail.com
9OrphaConsidine20Phil_Jacobs67@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0ThelmaCummings55Gene_Lindgren@hotmail.com
1DorthyGleichner30Jared_Rippin7@hotmail.com
2WinstonBahringer-Haag64Micheal.Willms38@yahoo.com
3ErmaEffertz27Alan.Wiegand@yahoo.com
4OlaUpton23Manuel.Kuhic59@hotmail.com
5FernandoWunsch39Agustina.Lynch@hotmail.com
6HelgaLittle55Elbert.Vandervort@gmail.com
7SandraBayer21Esther.Labadie23@yahoo.com
8JanieHauck65Archie_Hauck52@yahoo.com
9PeterGislason25Stacey47@gmail.com

Disable Row

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

idfirstNamelastNameageemail
0ShawnDickinson60Lana26@hotmail.com
1PreciousSenger50Liam33@yahoo.com
2StevieHalvorson58Monroe.Flatley@gmail.com
3MyrtleMcDermott51Cale13@yahoo.com
4ClaudineKlocko54Raymond60@yahoo.com
5GuadalupeAnderson59Greta.Bayer7@yahoo.com
6LydiaWaters27Weldon24@gmail.com
7JermainSchaden35Jude47@hotmail.com
8ChristineRosenbaum51Lindsey_Kohler@yahoo.com
9HoustonKilback50Clint_Bartoletti@yahoo.com

Control Row Selection

idfirstNamelastNameageemail
0JaceHaag60Pattie_Lueilwitz4@hotmail.com
1ShanieChamplin24Devon_Kris85@yahoo.com
2GabrielHackett54Wilbert.Walter-Klocko39@yahoo.com
3ScottUllrich38Blair.Ruecker93@hotmail.com
4PearlConnelly23Lukas17@hotmail.com
5IraCasper45Willard_Rippin-Casper0@hotmail.com
6BrianneMann55Doug.Bosco30@gmail.com
7GiovaniWiegand21Neil_Hirthe94@yahoo.com
8ConorKessler21Itzel.Witting99@gmail.com
9DominicLittle39Orland70@yahoo.com

Use Filter

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

idfirstNamelastNameageemail
0SybleMetz46Darin.Wuckert41@hotmail.com
1HeavenDach36Nadine99@hotmail.com
2JordonCassin42Paula.Treutel@hotmail.com
3OthoRitchie59Giovanna_Heaney@gmail.com
4LailaJohnston49Elaine38@hotmail.com
5MacBlanda37Luella3@gmail.com
6RussellRogahn47Lela.Treutel@hotmail.com
7CassieDaniel19Juanita_Bernhard@gmail.com
8DangeloKirlin65Cullen12@gmail.com
9PaulineCarter36Joseph.Balistreri@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
2RaulMann19Bernice41@gmail.com
6MatildaKiehn-Pouros48Christy.Rohan@gmail.com
9MadalineHalvorson30Jovany.Bahringer@gmail.com

Control Filter

idfirstNamelastNameageemail
0KristoferGleichner-Brekke23Violet.Satterfield@gmail.com
1LuellaBerge50Kristin.Bruen20@gmail.com
2RolandStamm23Marguerite55@gmail.com
3AlexanderErnser59Carson.VonRueden@hotmail.com
4BethanyAbernathy49Ryley.Auer78@hotmail.com
5MoniqueCollier53Abel91@yahoo.com
6DaisyEffertz65Ramon22@gmail.com
7EzequielMann44Van_Grady@hotmail.com
8MartyBoehm49Claire_Oberbrunner35@yahoo.com
9MichelCummings34Bobbie.Kessler@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0ShanieDooley31Sophie50@hotmail.com
1MerleQuigley19Van44@hotmail.com
2CarolineRaynor20Myron_Rowe@yahoo.com
3KennethSchiller23Reagan.Schaden90@hotmail.com
4SelinaHuels53Martin_Emard@gmail.com
5GingerO'Reilly56Yessenia_Lynch20@hotmail.com
6JacobProhaska-Dare28Alexandre_Stiedemann@gmail.com
7NathanJerde21Meghan38@hotmail.com
8LenaPfeffer63Tremayne_OConner48@hotmail.com
9AlbertoHickle60Jayme.Kling68@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
0SeanHilll24Martha.Price-Bartell@hotmail.com
1ElnoraSchamberger46Esperanza_Rogahn-Barrows@hotmail.com
2MargarettaMarquardt34Celestino68@gmail.com
3MartyWalter21Gilberto.Ward@gmail.com
4ScotSchmitt48Melany.Abernathy19@hotmail.com
5EleanorGleason47Jermain_Nader77@hotmail.com
6FrancisLeannon18Kenyon72@gmail.com
7NinaReilly21Janet.Cremin81@hotmail.com
8JaredStehr61Clement56@hotmail.com
9MarshallRoob44Doreen24@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