Table

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

idfirstNamelastNameageemail
0LarryWilliamson43Felipe3@gmail.com
1GregorioSchuster42Dangelo.Conn@yahoo.com
2AlfredoKerluke56Jovan46@yahoo.com
3EvaKutch19Randy_Bosco@hotmail.com
4ArjunAnderson27Guillermo96@gmail.com
5MichelleNikolaus32Bernice.Buckridge@yahoo.com
6TremaineGorczany20Drew12@gmail.com
7RowanDicki50Marianna_Pouros39@gmail.com
8HerthaLebsack34Eduardo.Renner-Mueller@hotmail.com
9VicenteDuBuque20Jennifer20@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0SigurdGerhold27Enrique.Kilback51@gmail.com
1AhmadArmstrong19Chaya_Barrows27@gmail.com
2TrentonJacobi41Hugh.Mertz@gmail.com
3GilbertVandervort49Virginie_Hilll76@hotmail.com
4AlanHettinger21Yvette_Davis@gmail.com
5JeremiahHauck61Lyla21@yahoo.com
6WilberBrown42Silas_Blick80@yahoo.com
7GoldenRomaguera48Cassandre_Streich40@yahoo.com
8WilsonSanford24Frankie_Howell83@gmail.com
9GertrudeWalker52Anna.Hirthe@hotmail.com
idfirstNamelastNameageemail
0SigurdGerhold27Enrique.Kilback51@gmail.com
1AhmadArmstrong19Chaya_Barrows27@gmail.com
2TrentonJacobi41Hugh.Mertz@gmail.com
3GilbertVandervort49Virginie_Hilll76@hotmail.com
4AlanHettinger21Yvette_Davis@gmail.com
5JeremiahHauck61Lyla21@yahoo.com
6WilberBrown42Silas_Blick80@yahoo.com
7GoldenRomaguera48Cassandre_Streich40@yahoo.com
8WilsonSanford24Frankie_Howell83@gmail.com
9GertrudeWalker52Anna.Hirthe@hotmail.com

Change Size

idfirstNamelastNameageemail
0BrisaRaynor-Davis46Burnice.Macejkovic@hotmail.com
1EricAbernathy28Camylle.Mohr@yahoo.com
2TomasRodriguez39Mack88@hotmail.com
3ChristopheMcKenzie61Brigitte.Tillman@gmail.com
4AgnesMarks31Morris_Roob59@yahoo.com
5RobertaFarrell38Noel_Wisoky@hotmail.com
6MosePfannerstill44Sheila25@yahoo.com
7MarjorieGrant60Lindsay84@gmail.com
8CarmenRohan55Wilfredo17@hotmail.com
9JordanEmard38Pearl95@hotmail.com
idfirstNamelastNameageemail
0BrisaRaynor-Davis46Burnice.Macejkovic@hotmail.com
1EricAbernathy28Camylle.Mohr@yahoo.com
2TomasRodriguez39Mack88@hotmail.com
3ChristopheMcKenzie61Brigitte.Tillman@gmail.com
4AgnesMarks31Morris_Roob59@yahoo.com
5RobertaFarrell38Noel_Wisoky@hotmail.com
6MosePfannerstill44Sheila25@yahoo.com
7MarjorieGrant60Lindsay84@gmail.com
8CarmenRohan55Wilfredo17@hotmail.com
9JordanEmard38Pearl95@hotmail.com
idfirstNamelastNameageemail
0BrisaRaynor-Davis46Burnice.Macejkovic@hotmail.com
1EricAbernathy28Camylle.Mohr@yahoo.com
2TomasRodriguez39Mack88@hotmail.com
3ChristopheMcKenzie61Brigitte.Tillman@gmail.com
4AgnesMarks31Morris_Roob59@yahoo.com
5RobertaFarrell38Noel_Wisoky@hotmail.com
6MosePfannerstill44Sheila25@yahoo.com
7MarjorieGrant60Lindsay84@gmail.com
8CarmenRohan55Wilfredo17@hotmail.com
9JordanEmard38Pearl95@hotmail.com

Change Color Scheme

idfirstNamelastNameageemail
0LeoAdams48Kenny37@gmail.com
1MarciaWalter27Clotilde55@yahoo.com
2BransonRuecker41Garrett5@hotmail.com
3CarolynWillms57Randi_Swaniawski@yahoo.com
4TraceyWelch20Jeremy_Stokes3@yahoo.com
5LeslieParker56Roselyn_Batz80@yahoo.com
6PeterLang-Spencer45Rosina_Jacobson43@hotmail.com
7VerlieNikolaus49Conner.Hauck@hotmail.com
8DustinKutch28Deanna87@yahoo.com
9GonzaloQuigley-West33Lena.Fahey72@yahoo.com
idfirstNamelastNameageemail
0LeoAdams48Kenny37@gmail.com
1MarciaWalter27Clotilde55@yahoo.com
2BransonRuecker41Garrett5@hotmail.com
3CarolynWillms57Randi_Swaniawski@yahoo.com
4TraceyWelch20Jeremy_Stokes3@yahoo.com
5LeslieParker56Roselyn_Batz80@yahoo.com
6PeterLang-Spencer45Rosina_Jacobson43@hotmail.com
7VerlieNikolaus49Conner.Hauck@hotmail.com
8DustinKutch28Deanna87@yahoo.com
9GonzaloQuigley-West33Lena.Fahey72@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0CassandreCrist63Kelli_Zieme75@hotmail.com
1LucilleAuer24Silvia36@hotmail.com
2JaydonStroman52Shana99@hotmail.com
3MoisesHodkiewicz50Floyd_Bailey13@gmail.com
4SamirOlson60Erica_Corkery50@hotmail.com
5GillianMcGlynn29Justen20@gmail.com
6AlexandreLebsack20Maye_Jenkins20@hotmail.com
7HowardSimonis63Johnathan.Doyle@gmail.com
8ClarenceMante60Art.Lang90@gmail.com
9HeathKutch-Kling28Luna84@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0AlexandraMcKenzie57Daren50@yahoo.com
1PaulineAbernathy26Myrtle5@yahoo.com
2EverettHerzog62Pattie_Bergnaum38@hotmail.com
3SuzanneO'Hara33Mindy.Stehr80@gmail.com
4FranklinBreitenberg31Kacey18@hotmail.com
5MattieShanahan57James23@yahoo.com
6CierraSchuster35Randal.Carroll@yahoo.com
7LucienneJones61Estelle_Wiza81@gmail.com
8SaulKlein-Hartmann54Nathaniel90@hotmail.com
9JoJohns64Eliezer_Cartwright0@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0AndreaGerlach18Evan.Bergstrom@yahoo.com
1ErwinKoss-Rippin54Tasha72@hotmail.com
2SchuylerCollier22Rodrigo16@gmail.com
3EdnaGreen47Sylvia63@hotmail.com
4PattyBechtelar56Shawna87@gmail.com
5EileenRatke28Pat_Schimmel-Mante@gmail.com
6SierraVolkman54Nona.Gerhold55@gmail.com
7MorganAbshire35Marianna.Kiehn@gmail.com
8RubenKonopelski18Melinda94@yahoo.com
9DorcasHahn22Rosella_Tillman@yahoo.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0HenriettaWyman49Jeffrey.Hoppe@gmail.com
1CodyHane36Meghan.Gibson@hotmail.com
2LindsayKunde38Willa.Hudson@gmail.com
3MaybelleRenner41Linnea71@gmail.com
4LukeDickens23Nathaniel.OConnell@hotmail.com
5SchuylerGutmann23Robert.Gutmann-Leuschke76@gmail.com
6CrawfordKuphal19Dominic.Stamm11@gmail.com
7RufusDicki33Tiffany_Collins7@hotmail.com
8HerbertFarrell22Tina_Fahey78@hotmail.com
9RobertHuel22Patty.Jerde50@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0EmanuelBosco35Angelina_Dickens@hotmail.com1-620-900-6271 x295adminactive11/1/20257/5/2026
1HardyDurgan31Kelli_Bernier@gmail.com1-285-410-5111 x09535admininactive3/4/20267/15/2025
2SheldonZieme21Jensen.Carter17@yahoo.com1-794-280-4738 x9222admininactive6/27/20263/10/2026
3HattieMcKenzie24Vergie_Cassin@yahoo.com215.588.7723 x2474admininactive10/4/20254/21/2026
4FaithMarvin34Gianni.Reichel95@yahoo.com(201) 735-1546 x34397adminactive4/23/20264/11/2026
5AnthonyZemlak41Miriam.Cruickshank17@yahoo.com937-781-6391 x0732userinactive7/19/20258/26/2025
6BennySatterfield61Carole_Dooley@hotmail.com402-718-1821useractive5/20/20264/5/2026
7RaulReynolds65Deanna_Crona65@hotmail.com(433) 473-3742 x279admininactive10/29/20258/18/2025
8LorenzoCorkery65Noah17@gmail.com747-627-5657admininactive12/5/202510/2/2025
9ClaraLeannon-Hilpert62Estelle_Hagenes38@yahoo.com625.469.2954userinactive6/13/202612/25/2025

Header Groups

iduser
nameageemail
firstNamelastName
0TerenceKohler64Vincent_Funk@yahoo.com
1EstebanBashirian22Darlene55@hotmail.com
2BrisaLeffler26Austin.Marquardt5@yahoo.com
3EleanoraUpton61Dominic_Crona75@hotmail.com
4FaithRempel57Kristy.Gutkowski@yahoo.com
5MarvinBergstrom31Ned.Hessel-Quitzon@yahoo.com
6EfrainReynolds55Gabriel.Baumbach@yahoo.com
7EmmanuelGutkowski29Carli71@hotmail.com
8ElaineConn33Dion.Lehner@gmail.com
9CatalinaMcLaughlin24Gene_Streich@hotmail.com
iduser
nameageemail
firstNamelastName
0KyleeHammes51Carla_Walter87@hotmail.com
1TheaMetz40Jonatan_Orn51@gmail.com
2HershelGreenfelder54Dahlia52@gmail.com
3MadisynBartell40Judy56@gmail.com
4ColtTreutel42Freda.Runte78@yahoo.com
5RoslynRobel64Nadine.MacGyver86@gmail.com
6RosalieSpinka50Roy12@gmail.com
7ReinholdKris25Nikko_Bergnaum46@yahoo.com
8KatieZieme32Sammy76@gmail.com
9AlisonBlock35Sonja99@gmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0JaylinDach62Bennie13@gmail.com
1BrooksVonRueden49Noel75@yahoo.com
2KaitlinPollich45Tyrone.Ferry@gmail.com
3SimonRussel61Elizabeth.Wisoky78@gmail.com
4KelleyWilkinson59Fabian66@hotmail.com
5LeoraBogisich47Lisa_Hegmann@yahoo.com
6JohnnieSipes53Laverne.Dare@hotmail.com
7AgnesGreenfelder60Rodrick31@hotmail.com
8CarolSchroeder38Walton.Zulauf47@gmail.com
9DamonRohan27Annette_Senger@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
0RitaJohns43Kristi36@gmail.com
1PaulGleichner36Clint_Cormier34@gmail.com
2CalebWindler43Gianni_Jaskolski@gmail.com
3SidO'Hara60Maverick96@hotmail.com
4ElodyHeaney39Tristian6@gmail.com
5KirkKeebler28Josue71@hotmail.com
6SylviaMcKenzie46Ayana.Botsford@hotmail.com
7EmeryHills25Flavie46@hotmail.com
8LorenzoDooley63Nina.Nikolaus34@yahoo.com
9ErvinRippin-Dach47Garry94@hotmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0AustenHyatt64Micheal.Schimmel90@yahoo.com
1CaroleMacejkovic44Ronald.Feest-Abernathy69@hotmail.com
2RobynDeckow36Derrick6@yahoo.com
3SavannahHansen50Shanny36@hotmail.com
4EmiliaStehr38Bonnie_Grady-Robel52@gmail.com
5KyleighBahringer42Whitney_Bayer@gmail.com
6RamiroSpinka23Terri.Strosin@hotmail.com
7ArielleCarroll50Alessandro_Wuckert45@yahoo.com
8GarrickStanton52Luz_Zulauf-Ferry13@hotmail.com
9TanyaLesch53Irwin.Abshire@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0TressaKub53Rickey_Brown47@yahoo.com
1ValentinBeatty24Maryann91@hotmail.com
2MakennaZiemann-West54Kaci50@gmail.com
3AnaHilll55Latoya_Barrows13@yahoo.com
4ZacharyGreen61Iris.Blick@hotmail.com
5AlyceCummings54Ernesto.Gottlieb62@gmail.com
6LucyWintheiser20Haylee_Parker@gmail.com
7JordanMayer57Joanna_Kihn18@yahoo.com
8MyrtleHilll31Angelica87@yahoo.com
9AllenBauch31Natalie13@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
1AlPurdy64Rachael89@yahoo.com
3AntoninaSchuster63Jaunita89@gmail.com
6AdrienStokes53Leo20@hotmail.com
8MyriamRogahn44Marco_Jast84@gmail.com
2RichmondRogahn42Jacynthe.Watsica@hotmail.com
5LorettaCummerata37Lorna.Turcotte@gmail.com
0MalloryWill34Delia83@hotmail.com
9TimVeum22Pearl_Legros24@gmail.com
7AriannaConroy20Barton_Roob@gmail.com
4ShanePagac18Arnold74@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0OsborneNader48Greyson89@yahoo.com
1DeniseHeidenreich61Amparo_Nitzsche96@yahoo.com
2MarciaHahn23Marc_Abbott@gmail.com
3CedricLangosh-Conroy55Tommy52@yahoo.com
4KristieWaters65Yessenia11@gmail.com
5HeloiseCummings40Araceli.Torphy38@hotmail.com
6JoanO'Conner54Norman82@hotmail.com
7AustinPfeffer45Beau.Reilly52@gmail.com
8DenisLeannon-Barton60Patricia26@gmail.com
9UrsulaMoen60Brendan67@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0RebekaSchaefer29Molly58@hotmail.com
1KarenSchamberger19Roosevelt33@yahoo.com
2JaredNikolaus33Sharon_Schuppe43@yahoo.com
3ElmoreZulauf47Marty_Crona96@gmail.com
4JanetKreiger-Ankunding55Aiyana14@hotmail.com
5RaymundoBreitenberg23Javier.Roob88@gmail.com
6ClarenceWiegand54Gust14@yahoo.com
7OtisOberbrunner25Thelma.Upton71@hotmail.com
8KristieLueilwitz45Isabell.Connelly@hotmail.com
9HadleyAltenwerth57Alexander_Windler2@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0TamaraCasper54Elvira_Bernier86@gmail.com
1ClydeJacobi23Kaylie9@gmail.com
2ForrestSimonis37Jaime.Conroy3@gmail.com
3GeorgeGerlach18London6@gmail.com
4AylaJacobi21Millie.Kris53@yahoo.com
5LeslieWolff35Catherine.Murazik79@gmail.com
6AlexLeffler35Traci89@yahoo.com
7BradfordWunsch18Sammie.Strosin@yahoo.com
8JeanneVolkman43Fernando_OConner14@yahoo.com
9FinnTowne58Peter13@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0InesZemlak52Stacey.Cruickshank85@gmail.com
1GeorgetteCollier18Madisyn_Harber@hotmail.com
2RooseveltPowlowski36Lizeth11@yahoo.com
3SherylGleichner53Jonathon.Mraz65@yahoo.com
4BenVolkman31Isobel_Considine33@yahoo.com
5EdmundDavis46Yvonne.Johns@yahoo.com
6MonroeMcGlynn18Melyna28@gmail.com
7CalistaSchinner18Alisa.Beahan@yahoo.com
8MarianHilpert56Matt49@hotmail.com
9JoanyHettinger45Joana_Koelpin59@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
0MarshallShanahan42Milford.Schmeler@gmail.com
1MerleCarroll53Simeon_Hoppe@gmail.com
2RhondaHodkiewicz28Lincoln_Paucek59@hotmail.com
3MacDeckow26Allan93@gmail.com
4GerardWilderman-Stracke34Harry_Lemke@hotmail.com
5EvaKunde-Goodwin34Loren.Gulgowski59@gmail.com
6OcieMaggio38Emmalee_Blanda-Kunze@hotmail.com
7AdellaHartmann50Kate_Kuvalis75@yahoo.com
8JoannGottlieb47Lisa.Greenfelder@hotmail.com
9PeggiePfannerstill37Cyrus97@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0OnieLarson22Meggie_Kunze81@gmail.com
1AndrewConsidine59Rosie.Schowalter71@hotmail.com
2HaileyKling47Matthew63@gmail.com
3LorenaGoodwin-Strosin21Isaac82@hotmail.com
4VernonPredovic29Ladarius.Leuschke12@hotmail.com
5DevynBradtke22Margie_Tromp@gmail.com
6KerryOrtiz44Lucious.Barton@yahoo.com
7DarrenGoldner29Dion.Schimmel18@hotmail.com
8JesusHudson56Danielle.Wolf@gmail.com
9JudgeWehner40Citlalli.Walker21@gmail.com

Enable Pagination

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

idfirstNamelastNameageemail
0MargaretSpinka39Sim96@gmail.com
1BrannonFriesen22Jan_Runolfsdottir@gmail.com
2DwayneHyatt21Alejandra_Borer@yahoo.com
3JakaylaSchowalter20Christophe.Bailey79@gmail.com
4MichealMitchell33Diane.Schinner@hotmail.com
5RosemarieKing61Rosa.Dickinson78@hotmail.com
6VickiCrist60Isabell.McClure@gmail.com
7ArnoGerlach47Karla_Schultz@hotmail.com
8KaylahBecker-Hamill59Bryan_McClure@hotmail.com
9KieraPfannerstill28Darla_Kuhlman@gmail.com
10ZechariahBatz30Collin_Jerde12@gmail.com
11BetteWhite57Orville.Maggio@yahoo.com
12HettieBarrows28Nicolas_Hackett-Ruecker@hotmail.com
13JuvenalGreenfelder30Darla.King@gmail.com
14NorbertBednar53Floyd44@yahoo.com
15EstevanGislason26Jennie0@yahoo.com
16ElijahStroman51Arthur.Harber@hotmail.com
17HerbertFrami41Oswaldo_Oberbrunner70@gmail.com
18IkeSchneider48Ramiro.Emmerich47@yahoo.com
19LeopoldoGoodwin31Sadie_Ferry@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
10OliveMertz60Helena_Vandervort@yahoo.com
11OpheliaBartoletti30Ophelia.Metz@hotmail.com
12GideonStracke27Una30@yahoo.com
13NicholeBecker59Clarence39@hotmail.com
14CraigBerge33Colton.Barrows48@hotmail.com
15GustGlover65Veronica.Goodwin@hotmail.com
16OscarMarquardt32Randolph_Bogisich51@yahoo.com
17ErvinGoldner45Hannah_McClure@hotmail.com
18ShaunKovacek43Cristina81@yahoo.com
19HansFahey39Hector_Schulist70@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0HeatherMarvin64Alvah13@hotmail.com
1SylviaKuhlman44Erica_Bednar24@hotmail.com
2MeganMoore64Roger_Thompson@hotmail.com
3MichelWilliamson40Cade54@gmail.com
4FaithLebsack56Marlon98@hotmail.com
5KevonBlick29Joey_Beer12@yahoo.com
6DianneLangosh34Gracie.Veum55@hotmail.com
7GerardBerge54Silvia.Ondricka45@yahoo.com
8AnabelLittel56Daryl.Hirthe11@hotmail.com
9JeanneHomenick64Priscilla31@yahoo.com
10LaronCronin-Turner34Serenity_Denesik69@gmail.com
11WileyCassin65Claude_Pacocha94@gmail.com
12LaurenLowe58Craig_Schimmel@yahoo.com
13ChelseaNikolaus31Kylie.Miller37@yahoo.com
14MaggieWilliamson43Destany87@gmail.com
15LaneyO'Keefe21Colleen79@gmail.com
16SueBode52Clotilde.Graham@gmail.com
17MistyHarber54Stacey56@gmail.com
18JoannyHuels-Jaskolski48Kendall_Ratke@gmail.com
19ArnoldLemke26Daphnee47@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0FelicityKonopelski22Jayson74@hotmail.com
1PauletteDibbert34Deanna75@hotmail.com
2MaymieBrakus31Ivan81@hotmail.com
3DeweyRatke27Ann45@gmail.com
4FlorenceSchmitt20Randall56@yahoo.com
5CoryMertz-Lakin29Arlene.Fahey@hotmail.com
6BethHodkiewicz21Jolie84@yahoo.com
7VaughnStreich21Chester_Ullrich32@hotmail.com
8IrisOrn-Bayer28Noble69@hotmail.com
9TraciBartell23Candace9@hotmail.com
10AbrahamCollier42Krista14@hotmail.com
11ArthurHarris37Mable.Cummerata@gmail.com
12GwendolynBashirian35Dallin54@hotmail.com
13LeonorHessel62Drake.Schneider@yahoo.com
14EdBaumbach51Nellie.Zieme76@yahoo.com
15FredZulauf33Margaret60@gmail.com
16HopeSmitham27Dale72@hotmail.com
17PrudenceSchumm28Leonard_Hodkiewicz-Bogisich@yahoo.com
18IvyKertzmann56Laverne.Botsford45@yahoo.com
19AdelbertCummerata-Langosh34Mona_Lueilwitz35@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0RaoulMarquardt49Margarita17@gmail.com
1AlbertoWaelchi63Devonte_Bode5@gmail.com
2EstrellaO'Keefe28Catherine.Kub@hotmail.com
3LunaSchneider25Chance_Abshire@hotmail.com
4ErickGislason53Ralph_Casper@gmail.com
5EmileWeber61Salvador_Trantow18@gmail.com
6ZelmaSchroeder22Tracey.Smitham@gmail.com
7VernaSchmeler64Arianna53@yahoo.com
8PattieKulas30Gene87@hotmail.com
9SaulLesch56Hilma.Goodwin87@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
0EduardoWest26Bruce_Will96@hotmail.com
1ThelmaSenger42Jewel.Murazik@hotmail.com
2JoanieKlein46Jovan55@yahoo.com
3LonnieCrona18Dariana.Funk@gmail.com
4ConnieLittel55Sabrina25@hotmail.com
5LanaHettinger41Zachary28@gmail.com
6TitusKreiger41Newton34@hotmail.com
7ShellyJones38Maddison11@hotmail.com
8ShanelHomenick65Maude52@gmail.com
9AlfonsoFritsch56Yvette42@gmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0ArnoldoSchuppe20Lia90@yahoo.com
1AmosDooley58Arely.Dach98@hotmail.com
2OscarMuller19Nicholas88@hotmail.com
3AshleyKris60Westley_Abbott4@hotmail.com
4NatashaKonopelski59Audie.Bednar@gmail.com
5JustinWillms32Tamara.Harris@hotmail.com
6JarenKoch54Alessandra_Schaden71@hotmail.com
7RodneyKub33Rashawn.Ledner@yahoo.com
8RickyFeeney56Raymond_Terry69@hotmail.com
9KraigCummerata61Martha78@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0SantiagoRatke43Debbie.Corkery70@gmail.com
1TomMcDermott-Hansen57Olin57@gmail.com
2TomasMann38Faith72@hotmail.com
3CaitlynGlover30Mateo_Franecki-Brekke@gmail.com
4GregDooley31Paula_Purdy@gmail.com
5DominicBahringer33Sheryl_Romaguera@yahoo.com
6RyleighHills28Janelle_Auer20@yahoo.com
7AllanAnderson36Taya.Lebsack@gmail.com
8FrankJerde62Leola_Marvin54@gmail.com
9DarrelJohnson30Kareem_Greenfelder@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0StefanieSchulist50Bridgette_Bechtelar@yahoo.com
1ConstanceKuhic33Sheridan93@gmail.com
2AmandaLarkin43Marina.Smitham58@yahoo.com
3DominicKuhic61Christina.Turcotte60@gmail.com
4JodieBogisich55Finn17@gmail.com
5ShermanGibson36Myriam93@gmail.com
6SylvesterWehner26Nicole_Kshlerin38@hotmail.com
7HughBotsford53Elizabeth_Schmidt@yahoo.com
8KhalilKovacek58Alene_Powlowski@hotmail.com
9RayD'Amore22Lukas.OConner80@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0FloridaStamm38Douglas_Schaden@yahoo.com
1SamWilliamson65Rosalyn.Greenholt@gmail.com
2FrancescaGoldner34Blanche44@gmail.com
3AlexandriaJenkins56Karli94@gmail.com
4MargeWilkinson32Zena_Stoltenberg59@gmail.com
5BettyJacobson48Domingo67@gmail.com
6JoyceMohr39Jennifer.Rodriguez@hotmail.com
7JimProsacco59Cody_Koepp13@yahoo.com
8CindyHessel48Loraine_Durgan35@hotmail.com
9WillardRath41Leigh.Douglas@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0WinifredHills25Lexi_Koch@hotmail.com
1LeifBashirian28Chadrick39@hotmail.com
2LavernaHuel55Stacey42@hotmail.com
3EdmondBlanda50Tommie_Parker@hotmail.com
4SamBoehm48Orville2@gmail.com
5OliverSchumm28Althea_Murray@gmail.com
6ElwinHickle56Elisa48@yahoo.com
7RickPacocha54Eladio_Treutel@yahoo.com
8OliviaDeckow49Alexanne.Price-Hettinger69@hotmail.com
9VickiPrice39Marshall.Crist52@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
1MelbaDenesik30Kathlyn61@gmail.com
3TimLynch52Reyna43@gmail.com

Control Filter

idfirstNamelastNameageemail
0BlancaLeannon65Morris.Kerluke22@hotmail.com
1EllenDietrich36Elena.Bins@hotmail.com
2DeeKunde40Jesus27@yahoo.com
3RafaelHegmann32Osbaldo.Bernier11@hotmail.com
4DerekKlein55Alene.Brekke@gmail.com
5MoseKoss49Robyn_Wiza53@yahoo.com
6JudeCronin41Patsy_Kozey@yahoo.com
7SabrynaReichel38Thomas.Lind@gmail.com
8DoyleMurazik-Donnelly45Eleanora.Williamson13@yahoo.com
9ChristelleHyatt18Doris_Lueilwitz12@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0TaniaHalvorson57Sally.Armstrong@gmail.com
1BeatriceKemmer19Samuel_Jakubowski@yahoo.com
2DerekStamm61Christop.Ullrich58@gmail.com
3WayneBalistreri19Adaline_Nicolas@hotmail.com
4KevinHeathcote-Kilback59Rhonda19@gmail.com
5AdonisParisian19Stacy34@hotmail.com
6MistyUpton18Maud44@yahoo.com
7MilfordHowe53Miguel.Goyette18@hotmail.com
8AylinDuBuque57Abbigail_Ebert@hotmail.com
9StephaniaYost21Tristin_Kulas@hotmail.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
0UrsulaHudson51German.Mante22@hotmail.com
1AmirSchmitt33Marvin_Cormier81@gmail.com
2JoshuaKessler30Carroll.Bartoletti62@hotmail.com
3LauraStoltenberg48Tom_Tillman@gmail.com
4JeremiahPagac53Glenn.Harvey40@gmail.com
5ShirleyGutkowski25Griffin.Crooks@gmail.com
6EduardoSchaden49Taylor64@gmail.com
7MaeganBashirian21Brooke.Effertz63@hotmail.com
8SpencerWiegand23Marty87@gmail.com
9HassieRaynor34Jacinto.Kuhn@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

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