Table

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

idfirstNamelastNameageemail
0JosephAdams36Avery55@hotmail.com
1TatumBins19Louisa.Schmeler@gmail.com
2MayraLakin46Marcos.Welch@yahoo.com
3JerryRunolfsdottir63Eliza15@yahoo.com
4ThurmanBerge57Claire.Dietrich@gmail.com
5AdolphCarter41Norman.Toy97@yahoo.com
6TammyJast55Allen55@hotmail.com
7AliceConnelly43Madelynn15@hotmail.com
8LexieWalter32Samson.OConner64@yahoo.com
9BrendenSpencer50Lavinia.Rosenbaum66@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0RaoulDenesik42Justen82@gmail.com
1EmorySwift22Rupert70@gmail.com
2BeaulahGutmann49Colby0@hotmail.com
3FayeHomenick64Sibyl32@hotmail.com
4HollisBechtelar38Vida76@hotmail.com
5EribertoKoch65Kyle_Wiza@gmail.com
6BeauCarter33Cara_Schumm27@gmail.com
7ConorRunolfsdottir30Neva_Lubowitz17@yahoo.com
8FreddieSchuppe63Petra0@yahoo.com
9RossieRussel48Arlene91@hotmail.com
idfirstNamelastNameageemail
0RaoulDenesik42Justen82@gmail.com
1EmorySwift22Rupert70@gmail.com
2BeaulahGutmann49Colby0@hotmail.com
3FayeHomenick64Sibyl32@hotmail.com
4HollisBechtelar38Vida76@hotmail.com
5EribertoKoch65Kyle_Wiza@gmail.com
6BeauCarter33Cara_Schumm27@gmail.com
7ConorRunolfsdottir30Neva_Lubowitz17@yahoo.com
8FreddieSchuppe63Petra0@yahoo.com
9RossieRussel48Arlene91@hotmail.com

Change Size

idfirstNamelastNameageemail
0AlannaFunk23Stephany82@hotmail.com
1EmilOndricka48Abigale.Trantow21@hotmail.com
2RaleighJenkins19Chase62@hotmail.com
3NelleLockman31Zachery.Ruecker@gmail.com
4RubieMuller43Elouise7@hotmail.com
5MelyssaLittel43Torey.Hessel@hotmail.com
6ElainaKuhic45Timothy.Hermann81@yahoo.com
7AriannaRutherford24Cali.Trantow@gmail.com
8FredyWolff65Madisen28@yahoo.com
9DanielleReichert61Flavio.Bradtke@yahoo.com
idfirstNamelastNameageemail
0AlannaFunk23Stephany82@hotmail.com
1EmilOndricka48Abigale.Trantow21@hotmail.com
2RaleighJenkins19Chase62@hotmail.com
3NelleLockman31Zachery.Ruecker@gmail.com
4RubieMuller43Elouise7@hotmail.com
5MelyssaLittel43Torey.Hessel@hotmail.com
6ElainaKuhic45Timothy.Hermann81@yahoo.com
7AriannaRutherford24Cali.Trantow@gmail.com
8FredyWolff65Madisen28@yahoo.com
9DanielleReichert61Flavio.Bradtke@yahoo.com
idfirstNamelastNameageemail
0AlannaFunk23Stephany82@hotmail.com
1EmilOndricka48Abigale.Trantow21@hotmail.com
2RaleighJenkins19Chase62@hotmail.com
3NelleLockman31Zachery.Ruecker@gmail.com
4RubieMuller43Elouise7@hotmail.com
5MelyssaLittel43Torey.Hessel@hotmail.com
6ElainaKuhic45Timothy.Hermann81@yahoo.com
7AriannaRutherford24Cali.Trantow@gmail.com
8FredyWolff65Madisen28@yahoo.com
9DanielleReichert61Flavio.Bradtke@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0MarisolSchaden28Toney_Deckow@yahoo.com
1HoseaMarquardt20Kamren.Bogisich@hotmail.com
2NicholausLittel63Juliet.Langosh59@hotmail.com
3ChristelleHills26Dominique.OHara@yahoo.com
4SheridanMayer27Lisandro_Lowe88@hotmail.com
5GeovannyQuigley64Miranda67@hotmail.com
6CoyHodkiewicz22Nya_Klein@yahoo.com
7BrandynBotsford49James.Hettinger15@yahoo.com
8WilfredDaniel42Kathleen15@hotmail.com
9TarynAltenwerth35Donnie72@yahoo.com
idfirstNamelastNameageemail
0MarisolSchaden28Toney_Deckow@yahoo.com
1HoseaMarquardt20Kamren.Bogisich@hotmail.com
2NicholausLittel63Juliet.Langosh59@hotmail.com
3ChristelleHills26Dominique.OHara@yahoo.com
4SheridanMayer27Lisandro_Lowe88@hotmail.com
5GeovannyQuigley64Miranda67@hotmail.com
6CoyHodkiewicz22Nya_Klein@yahoo.com
7BrandynBotsford49James.Hettinger15@yahoo.com
8WilfredDaniel42Kathleen15@hotmail.com
9TarynAltenwerth35Donnie72@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0BryceGottlieb-Pouros44Kylee54@yahoo.com
1MaidaPrice18Trever16@hotmail.com
2RogelioSimonis50Kristine.Williamson96@hotmail.com
3FridaLeuschke23Mckayla_Simonis@gmail.com
4ModestoChristiansen23Theodore96@gmail.com
5NelleMorissette64Kennedy0@hotmail.com
6AhmadSchaden35Alvin.Yost-Heidenreich@yahoo.com
7DanialEmard36Sim.Gottlieb26@hotmail.com
8DelphaKertzmann20Fae.Berge@hotmail.com
9JoanieMacGyver18Stephen.Ortiz33@hotmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0CornellVon56Paris45@yahoo.com
1SamuelStokes50Vincent88@yahoo.com
2DaishaSawayn27Dorthy_White@yahoo.com
3AbdullahWard18Marshall_Connelly@yahoo.com
4MohammedUllrich-Fritsch43Gillian56@gmail.com
5NathanielBaumbach55Bethel83@gmail.com
6JeanieEmard60Buck.Wilderman56@yahoo.com
7FlorineShields32Sam_Pagac@gmail.com
8AnnamaeDonnelly37Sydnee61@gmail.com
9AbbieKozey53Winifred_Kertzmann@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0RamonaAnkunding38Dereck_Dickinson@hotmail.com
1LyricDach21Maria.Leffler28@gmail.com
2SavanahBernier46Joey97@hotmail.com
3KristyLarson54Joanny.Herzog@yahoo.com
4AbagailSchroeder62Debra21@gmail.com
5ErnaMosciski22Rae_Windler91@hotmail.com
6ObiePowlowski28Abigale_Kautzer@hotmail.com
7ChaunceyLedner62Stefan.Windler89@hotmail.com
8DenisCole29Zita.Reynolds@gmail.com
9PabloHintz44Sherwood_Abbott@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0ParkerGlover54Otha93@yahoo.com
1ClemmieTromp-Bednar23Winnifred28@yahoo.com
2LeifOrtiz46Arthur.Schinner43@hotmail.com
3MackenzieLang35Nicholas_Gorczany@hotmail.com
4CiaraHarber56Patti46@hotmail.com
5AndreaneHamill44Edward40@hotmail.com
6GenevaCormier26Dewey_Senger89@gmail.com
7TrystanHeathcote62Bernardo_Klein65@gmail.com
8VergieMohr24Gudrun21@gmail.com
9MonserrateUllrich20Monte.Waters25@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0AnnettaO'Hara57Ivan65@hotmail.com(504) 849-2555admininactive11/2/20257/21/2026
1MaybelleWill53Kerry81@hotmail.com(331) 402-1763 x4908userinactive11/23/202511/22/2025
2CadenDooley-Dickens26Gunnar.DAmore75@hotmail.com902.208.3250 x19272useractive7/3/20262/14/2026
3VerniceBauch39Kitty.Parker@yahoo.com(617) 519-8622adminactive11/2/20252/26/2026
4LadariusBergstrom28Alberta19@hotmail.com1-819-281-8326admininactive5/2/20264/7/2026
5KieraKessler22Bennie_Rolfson@hotmail.com276.754.6502 x078useractive5/16/20266/4/2026
6HattieHayes35Freeda.Hahn@gmail.com408.386.7401 x472useractive2/7/20267/31/2026
7AvaHauck-Macejkovic32Addie.Cruickshank90@gmail.com312.446.1269 x2740useractive11/7/20258/15/2026
8JaedenDickens52Sheila_Hilpert@hotmail.com(932) 969-9366 x88326useractive1/22/202611/6/2025
9KeeganWolff22Hans_Abernathy@gmail.com1-317-860-6280userinactive12/25/20253/24/2026

Header Groups

iduser
nameageemail
firstNamelastName
0RochelleMedhurst43Gerald_Leannon@yahoo.com
1GermanFeil47Lela.Brekke@gmail.com
2MacMante-Abbott23Ryann.Williamson57@gmail.com
3JaquanKonopelski42Maggie32@hotmail.com
4TalonLabadie36Cole_Baumbach@yahoo.com
5AlbinWisozk37Eliza.Mertz@yahoo.com
6OthoLockman50Burnice.Sanford29@hotmail.com
7OrlandoHomenick64Chanelle.Trantow9@gmail.com
8VeronaMayert32Reece.Farrell@hotmail.com
9TorranceYost31Ethan95@gmail.com
iduser
nameageemail
firstNamelastName
0BrendaSchiller64Wesley24@yahoo.com
1NicklausOberbrunner37Sadye_Franey43@gmail.com
2CharityGleichner20Quincy25@hotmail.com
3MekhiBoehm46Vivianne.Muller@gmail.com
4WilbertCollins61Marlon2@yahoo.com
5EribertoAnkunding28Coty.Wolff@yahoo.com
6QuincyLueilwitz22Angus63@yahoo.com
7JermeyPrice40Maynard.Hauck@yahoo.com
8JenaYundt46Fletcher_Mosciski@yahoo.com
9CeasarMetz22Aryanna.Franecki@hotmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0ChadOsinski26Luisa_Hagenes4@yahoo.com
1AntonioLind32Micheal22@yahoo.com
2CodyYundt47Franz_Harber@hotmail.com
3AmieStroman20Stacey34@yahoo.com
4LaurianeWeissnat45Emerson.Gusikowski@yahoo.com
5JaysonAuer48Myrna_Abernathy@hotmail.com
6ThaddeusRice44Junius92@hotmail.com
7CooperEffertz-Quitzon40Lafayette_Schmitt@hotmail.com
8MireyaShanahan39Hunter.Marks1@yahoo.com
9JuliusLarkin53Carmela.Windler@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
0DorisLebsack43Marcellus_Kihn@hotmail.com
1JavierBlick29Syble_Stark28@gmail.com
2AnaisCruickshank28Johann90@hotmail.com
3UniqueBashirian59Tremayne.Hoppe91@yahoo.com
4ShaniaBoehm43Evans.Friesen@hotmail.com
5TimJacobi36Vanessa40@gmail.com
6EmilConnelly-Emmerich57Domenick5@gmail.com
7JalynOrtiz40Aurelie64@hotmail.com
8EmersonBahringer19Noemy_Hegmann82@yahoo.com
9StantonEffertz53Alexis_Quigley53@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0CharlesDenesik61Kellie18@hotmail.com
1AmiyaHettinger54Athena_Torphy74@yahoo.com
2ZionCole21Mackenzie.Pacocha@yahoo.com
3AmericoMoen65Trudie78@yahoo.com
4BrionnaSchmitt64Deanna45@yahoo.com
5CleveMcLaughlin35Francisco_Franecki42@hotmail.com
6CasimirGleason53Earl54@yahoo.com
7ElsaFunk41Irwin.Boyle@gmail.com
8RowlandBergnaum18Amiya_Armstrong@yahoo.com
9FaeConroy26Emmie_Parker@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0WaltonBreitenberg25Kenneth66@yahoo.com
1BlazeConnelly47Crystal.Barton16@gmail.com
2EstefaniaHoeger53Jacky.Fay56@yahoo.com
3MabelWeissnat32Easton_Legros1@gmail.com
4RodgerBartoletti36Janis66@yahoo.com
5KayliMorissette23Mildred_Kutch40@gmail.com
6LeraSwaniawski21Odessa36@yahoo.com
7NoemieBatz31Merle_Veum67@gmail.com
8LianaBeahan52Mafalda_Schaefer45@hotmail.com
9MaeganSchroeder46Santa.Fadel@hotmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
7WillardCrist54Aaliyah.Blick19@gmail.com
3MuhammadSchroeder46Manuel_Miller@yahoo.com
5EvertHeller42Romaine_Douglas7@gmail.com
4AidaBernier37Dell67@gmail.com
2GroverStrosin36Camille_Jaskolski@hotmail.com
0ReginaGibson-Stamm35Tobin98@hotmail.com
8JamaalGislason32Lucy_Dach@yahoo.com
6CharlesMraz30Art.Keebler@gmail.com
1FatimaOsinski22Sarai70@hotmail.com
9RogelioJacobs21Kaela_Stracke16@yahoo.com

Disable Sorting

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

idfirstNamelastNameageemail
0JanaeKeebler43Bert_Ritchie@hotmail.com
1EvelineLittle60Mac66@gmail.com
2PauletteKeebler58Eldon83@gmail.com
3SavanahKeebler21Daron3@hotmail.com
4LoisWisozk61Lazaro_Crona13@hotmail.com
5VanceConn29Joanna.Cole@gmail.com
6BenjaminMraz60Maia_Kirlin90@hotmail.com
7TheodoreKoch65Waino.Schulist@hotmail.com
8EmersonStanton38Delia70@hotmail.com
9SerenitySipes53Nils_Raynor@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0MylesTreutel-Swaniawski31Mack.Kreiger@gmail.com
1PeytonDickens33Delpha87@yahoo.com
2EdenEmmerich25Dennis.Greenholt@yahoo.com
3JoannGutkowski54Alvina46@hotmail.com
4KentKihn61Brennon_Mohr@gmail.com
5DaleCole62Manuel.Morissette31@hotmail.com
6EmiliaHettinger47Latoya90@hotmail.com
7WillardMcGlynn18Dolores_Murray91@hotmail.com
8JazminKassulke-Wilkinson34Myrl_Cartwright@hotmail.com
9CarolynMcCullough44Tomasa.Rogahn91@hotmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0ShadNitzsche31Faye_Parisian0@yahoo.com
1RichieBuckridge54Monserrat92@hotmail.com
2JillianRau60Garth65@yahoo.com
3JordyHyatt45Amos_Bruen54@gmail.com
4CristalWintheiser65Willy46@yahoo.com
5OdaO'Hara32Foster_Gerhold17@yahoo.com
6PiperStehr54Hannah65@hotmail.com
7MarionLabadie30Jessica_Bruen71@yahoo.com
8TheodoreHackett61Arden93@yahoo.com
9KileyBerge44Wade88@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0CharityMohr64Colleen_Legros70@hotmail.com
1QuentinRunolfsson31Alek48@hotmail.com
2ClaudineLueilwitz46Summer_Bartoletti@hotmail.com
3RobinSchmitt36Rufus.Emmerich@yahoo.com
4BennyMoen24Justen28@yahoo.com
5NikkoAdams-Collier50Sophie.Kessler89@hotmail.com
6MikelBartoletti53Carolyne_Franey72@gmail.com
7PeggieStroman53Montana_Kling-Anderson78@yahoo.com
8ShainaSchuster36Henderson80@hotmail.com
9CristalSchroeder23Donna.Thiel@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
0LaurenWilderman65Helga_Ortiz@gmail.com
1BrionnaJacobi61Polly.Sipes@gmail.com
2ReedKemmer23Vincenza35@yahoo.com
3DanielleHalvorson32Erica.Smitham48@gmail.com
4JaleelFrami42Paxton.Goldner30@gmail.com
5RogerEbert65Enrico.Monahan14@gmail.com
6NicolaMertz30Terence.Hills86@hotmail.com
7HarmonSchuppe24Conrad_Kreiger@yahoo.com
8FredericKeeling28Rogelio6@gmail.com
9TrishaOkuneva-Hodkiewicz29Hassie68@gmail.com

Control Sorting

idfirstNamelastNameageemail
0EzekielKerluke26Kayla_Ondricka@gmail.com
1IsabellaBraun63Rex14@gmail.com
2JazminFritsch31Garrett_Beatty50@hotmail.com
3LilianeO'Connell35Salma52@gmail.com
4MinaConroy64Bettye92@gmail.com
5MakennaKlein59Alvina46@yahoo.com
6GinoHarber46Harley84@hotmail.com
7CatharineSteuber33Lana.Mante@gmail.com
8RebekahHarber19Cornelius26@yahoo.com
9LonnieMitchell22Ryleigh.McClure-Roob77@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
0BillyAbshire53Lavina_Pollich66@yahoo.com
1ToneyGoldner50Finn32@gmail.com
2CandiceMorissette38Larue.Rau39@gmail.com
3FosterBoyer64Alvina28@hotmail.com
4AliaDibbert62Roel72@hotmail.com
5HowellConnelly36Christelle89@gmail.com
6EnidSchulist25Leanne70@yahoo.com
7GarretBernhard18Bo85@hotmail.com
8LaurynBashirian56Ian_Leannon@yahoo.com
9DayneGibson38Lizzie74@yahoo.com
10OnaWilliamson28Vivien_Bogisich@gmail.com
11DonnieRippin30Turner.Lang90@gmail.com
12AlexysMayert-Brown54Wilton_Marvin28@hotmail.com
13HayleeCorwin43Tobin.Rau78@gmail.com
14LeoneMonahan40Naomi_Parker@yahoo.com
15MayraDouglas19Stefan_DAmore@gmail.com
16TreyKuphal59Naomi60@yahoo.com
17ChaseWilliamson60Lina_Gusikowski@gmail.com
18DevanteBayer43Carli.Pacocha3@yahoo.com
19NinaRunolfsson24Kailyn.Rice@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
10SiennaNader33Anastacio_Lueilwitz44@hotmail.com
11CasperGleichner-Kiehn25Stevie_Ritchie@yahoo.com
12BlakeSchamberger18Joana_Rowe72@gmail.com
13MarilieCrist25Lue61@gmail.com
14BennyHarris60Micah_Bayer18@hotmail.com
15CristopherSpinka34Marianne97@gmail.com
16HowardVolkman33Alfonso.Auer99@yahoo.com
17MarioFay43Adolf.Runte@yahoo.com
18DejuanMacGyver41Art.Kshlerin46@gmail.com
19MichelHills49Ludie.Cassin@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0TorreySpencer29Melba_Grimes@hotmail.com
1HerminiaMurray41Angie.Berge99@hotmail.com
2RaheemBode52Jettie.Nitzsche@hotmail.com
3DangeloMosciski34Linda_Goldner0@hotmail.com
4CassidySauer50Tyra17@hotmail.com
5SabrinaWard27Rowan_Littel66@yahoo.com
6PreciousFritsch20Lexus69@hotmail.com
7GeneWalker44Nathanial20@yahoo.com
8AveryStroman50Koby_Torphy76@yahoo.com
9IcieCassin62Ocie4@yahoo.com
10KelsiVandervort19Irma_Jerde@gmail.com
11CurtisBosco22Katelyn.Kirlin@yahoo.com
12SaraiKertzmann57Terrance.Bailey-Volkman@gmail.com
13AntonioVolkman39Angelina40@hotmail.com
14MyrnaJakubowski45Debra.Kozey@gmail.com
15JocelynPfannerstill56Addison86@yahoo.com
16AricSchumm27Louise_Nikolaus@gmail.com
17KalebSipes44Vernon.Wolf28@gmail.com
18WaylonHarris23Chaya_Bayer95@yahoo.com
19DuncanSipes63Tania.Leannon@gmail.com

Control Pagination

idfirstNamelastNameageemail
0TheodorePowlowski62Rey.Kautzer@yahoo.com
1BusterBauch49Keira.Greenfelder@yahoo.com
2HillardWhite58Jayme27@gmail.com
3EbbaAltenwerth57Nico.Bergnaum@gmail.com
4ElijahZboncak49Dena.McKenzie10@gmail.com
5HerminioLabadie22Tamia_Bailey30@hotmail.com
6MontanaGibson25Olen55@hotmail.com
7ErnaMcClure43Kennedi.Kuhn@hotmail.com
8DouglasBeier47Dana_Becker@yahoo.com
9DemetriusMacGyver36Janis_Kuvalis38@gmail.com
10IvanSchultz53Jaquelin50@yahoo.com
11EzequielJohns30Elbert33@hotmail.com
12VidaDickinson65Freddie.Wuckert@yahoo.com
13EnriqueSauer33Laurel_Lueilwitz7@hotmail.com
14ElliottCronin36Zakary27@gmail.com
15ProvidenciOkuneva57Josefa58@hotmail.com
16UrbanMitchell52Nathanael_Wisozk@gmail.com
17DonnyBradtke53Guiseppe_Schamberger50@yahoo.com
18ToddHahn56Bridget.Gutkowski28@yahoo.com
19JennyferSchamberger36Webster.Deckow80@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0LyleRempel18Hal_Hayes20@gmail.com
1CharlieMorar25Jaquelin.OKon@hotmail.com
2CandaceLindgren23Wilburn_Homenick@gmail.com
3LueFeest25Tricia_Hintz@gmail.com
4StewartCrooks48Lorenzo.Hayes63@yahoo.com
5SherwoodHuels-Gerlach47Sigrid.Schulist39@gmail.com
6JennyferEffertz53Whitney47@gmail.com
7AlonzoKutch65Stanford47@gmail.com
8EmelyBoyer33Domenic.Wisoky@yahoo.com
9CelestineDaniel32Thad_Kohler19@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
0SantaCrona24Emilio58@hotmail.com
1KatlynMoore56Karson_Deckow17@gmail.com
2EmelieBeahan60Lou56@hotmail.com
3BreannaDuBuque54Colin38@hotmail.com
4NedHowe41Adriel.Hane46@hotmail.com
5SheridanChamplin31Leigh.Erdman@gmail.com
6TraceyFranecki33Dario_Hammes41@hotmail.com
7LoraineConn28Adella_Feeney@yahoo.com
8IrwinJenkins53Kathryn26@yahoo.com
9PriceAdams21Rudolph46@yahoo.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0NancySchultz37Merl2@hotmail.com
1RahsaanGraham-Abshire40Alan.Watsica78@gmail.com
2DarronCartwright61Fae50@yahoo.com
3GusSkiles60Lionel.Jenkins@yahoo.com
4GiaBatz64Matilda57@hotmail.com
5DavonRoberts43Latoya.Parker-Krajcik@gmail.com
6StephanieBlanda26Cristopher.Russel21@hotmail.com
7LewisHudson52Brielle_Kub26@hotmail.com
8CarsonMertz20Eloy44@hotmail.com
9JayneRitchie47Max_Lemke@hotmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0CoryHaag64Abdul.Balistreri12@gmail.com
1JeanieHaag48Kellen.Bernhard@gmail.com
2TevinStehr41Emilie_Schumm47@hotmail.com
3CandiceFay56Fredy.Cronin@hotmail.com
4ClayCronin20Jaqueline.Bergnaum@yahoo.com
5RaoulNader21Darby.Kilback@yahoo.com
6IsobelDare44Johanna.Blanda@yahoo.com
7MathildeTromp59Lester65@yahoo.com
8DoloresStracke31Rozella.Muller@gmail.com
9RudyHeidenreich18Lacy33@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0SherwoodSchuster45Mervin42@hotmail.com
1LillianKoss49Jeannie_Daniel-Rath@gmail.com
2RebaWiza64Van12@yahoo.com
3CyrusStanton46Dahlia_Bergstrom@hotmail.com
4CarmineKulas42June.Wyman@hotmail.com
5KingFraney42Peyton10@hotmail.com
6IdellStanton63Ozella_Brakus@hotmail.com
7MaureenMuller25Mayra97@yahoo.com
8IcieRempel44Leticia_Schmeler@hotmail.com
9DarianaO'Keefe18Sherry55@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0KennediCole29Riley8@hotmail.com
1MarisolTorphy18Tre_Hayes@yahoo.com
2CaryKoelpin24Edison.Moore@hotmail.com
3StephonTromp64Viva_Corwin46@gmail.com
4PatienceKling65Lucie.Koch@yahoo.com
5LyricKirlin28Ottilie.Mueller@hotmail.com
6PascaleBrekke29Lyle.Hackett@yahoo.com
7SusannaCrooks30Ceasar_Stoltenberg@yahoo.com
8QuentinWiegand23Sunny0@gmail.com
9ScottThompson62Tiara_Leuschke83@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0TyrelKling59Lela65@yahoo.com
1LindsayGoyette33Alessandro.Schowalter@hotmail.com
2FrederickLabadie37Chad57@yahoo.com
3AnaMiller55Sonya48@hotmail.com
4WendyTerry23Cierra.Friesen@gmail.com
5MarcellaCronin50Hugo_Auer@yahoo.com
6ElvieBins29Domenico_Mayert@gmail.com
7MyleneBeahan37Kirk_Reichel@hotmail.com
8DallinTowne42Mortimer32@gmail.com
9AlexysSchmitt28Braxton2@hotmail.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
2SandrineKovacek34Isac_Ebert34@gmail.com
4GenesisAnderson64Trevor.Rolfson92@gmail.com
5GlennaMorissette35Hayden.Frami@gmail.com
6AbelHeathcote59Rosina23@gmail.com

Control Filter

idfirstNamelastNameageemail
0ShaunNikolaus41Kelli.Auer48@yahoo.com
1RickTremblay58Blair78@hotmail.com
2VestaConnelly-Romaguera34Rafael.Jones79@hotmail.com
3MaiyaPrice34Marques.Hahn@gmail.com
4PresleyRempel36Yessenia.OReilly@gmail.com
5MarielaKuphal18Daniel.Hahn28@yahoo.com
6EssieProhaska34Maynard_Runte@yahoo.com
7GranvilleKshlerin22Lea.Kemmer19@gmail.com
8DelbertWilkinson65Tyson_Buckridge9@yahoo.com
9NyasiaBode18Selmer_Feest@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0KaylaHeaney-Bartell34Kirk.Mitchell@yahoo.com
1NasirMiller31Margie_Little67@gmail.com
2DamarisRobel31Thelma.Schmidt@hotmail.com
3JannieLakin-Lebsack53Mavis78@gmail.com
4RylanBlock40Ollie.Bogisich@gmail.com
5ShakiraHerzog63Lester.Bartell@hotmail.com
6ValerieFadel60Mable.Heaney89@yahoo.com
7JeffBarton47Krystel63@yahoo.com
8PattyLegros47Keaton_Schimmel84@yahoo.com
9SidAnkunding33Jovani_Wisoky@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
0LucieBalistreri28Reyna_Gleason@hotmail.com
1DemetriusMonahan-Leuschke43Tricia_Harber18@gmail.com
2AltonBerge63Maude22@yahoo.com
3FloyRatke45Patrick.Bernier1@gmail.com
4JeraldFarrell48Irvin_Leannon36@gmail.com
5RaymondShields50Rhoda.Bednar99@hotmail.com
6AlfordSmith63Merritt.McGlynn95@gmail.com
7MyrlDickinson45Estelle64@yahoo.com
8WebsterParker63Ellie.Jacobi@yahoo.com
9JosieCronin46Austen57@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