Table

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

idfirstNamelastNameageemail
0TammyWintheiser20Shawn31@yahoo.com
1MilfordBode22Rosie_Gibson64@hotmail.com
2LeonaHeathcote35Noel_Bode@gmail.com
3MaxineRatke43Lilliana_Johns88@gmail.com
4CliftonTremblay30Annamae.Hegmann@hotmail.com
5PabloDavis52Fernando20@yahoo.com
6RosamondHammes57Mae.Bogisich@gmail.com
7DougRogahn-Nikolaus40Larry70@hotmail.com
8JuanaStoltenberg58Kevin_Towne55@yahoo.com
9AnnamaeBarton63Meredith.Witting37@yahoo.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0TitusRippin26Marcelina_Rosenbaum@yahoo.com
1ClintonMcDermott65Efren_Prosacco@gmail.com
2JaidenRoberts34Samir3@yahoo.com
3JosefaSipes62Itzel.Howell@gmail.com
4ArtO'Conner61Natalia72@gmail.com
5LawrenceTowne25Preston.Braun@yahoo.com
6CaroleMayert27Gwendolyn_McCullough57@hotmail.com
7RoxaneMcCullough55Martin.Lowe59@gmail.com
8MaeBrown63Alberto.Upton92@hotmail.com
9MyraSpinka31Jeannette.Legros@hotmail.com
idfirstNamelastNameageemail
0TitusRippin26Marcelina_Rosenbaum@yahoo.com
1ClintonMcDermott65Efren_Prosacco@gmail.com
2JaidenRoberts34Samir3@yahoo.com
3JosefaSipes62Itzel.Howell@gmail.com
4ArtO'Conner61Natalia72@gmail.com
5LawrenceTowne25Preston.Braun@yahoo.com
6CaroleMayert27Gwendolyn_McCullough57@hotmail.com
7RoxaneMcCullough55Martin.Lowe59@gmail.com
8MaeBrown63Alberto.Upton92@hotmail.com
9MyraSpinka31Jeannette.Legros@hotmail.com

Change Size

idfirstNamelastNameageemail
0JuanJakubowski28Barry62@gmail.com
1RyderRunolfsdottir57Johan77@yahoo.com
2JessicaOrtiz38Mona.Kirlin38@gmail.com
3TonyWiegand21Bryant33@gmail.com
4ArnoldCremin45Clark61@yahoo.com
5ElainaKirlin63Tom29@yahoo.com
6SherryWisozk28Buford_Purdy@gmail.com
7ClaytonTurner47Vicky_Green@hotmail.com
8JeromyTurner36Anita.Heidenreich@yahoo.com
9KarsonJacobi20Kelsie.Hansen43@yahoo.com
idfirstNamelastNameageemail
0JuanJakubowski28Barry62@gmail.com
1RyderRunolfsdottir57Johan77@yahoo.com
2JessicaOrtiz38Mona.Kirlin38@gmail.com
3TonyWiegand21Bryant33@gmail.com
4ArnoldCremin45Clark61@yahoo.com
5ElainaKirlin63Tom29@yahoo.com
6SherryWisozk28Buford_Purdy@gmail.com
7ClaytonTurner47Vicky_Green@hotmail.com
8JeromyTurner36Anita.Heidenreich@yahoo.com
9KarsonJacobi20Kelsie.Hansen43@yahoo.com
idfirstNamelastNameageemail
0JuanJakubowski28Barry62@gmail.com
1RyderRunolfsdottir57Johan77@yahoo.com
2JessicaOrtiz38Mona.Kirlin38@gmail.com
3TonyWiegand21Bryant33@gmail.com
4ArnoldCremin45Clark61@yahoo.com
5ElainaKirlin63Tom29@yahoo.com
6SherryWisozk28Buford_Purdy@gmail.com
7ClaytonTurner47Vicky_Green@hotmail.com
8JeromyTurner36Anita.Heidenreich@yahoo.com
9KarsonJacobi20Kelsie.Hansen43@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0HoraceLubowitz56Keely33@hotmail.com
1EleanoraBeahan32Scarlett79@gmail.com
2BruceLeuschke49Laura_Cassin29@yahoo.com
3ErinHowe60Ashly_Reichel@gmail.com
4JaquanDickens59Julian76@gmail.com
5MaximilianCremin64Olive_Langosh@gmail.com
6DayneHilpert44Elise35@yahoo.com
7JuanaSchmeler34Clinton64@gmail.com
8ErikaCarter23Shayna_Jakubowski96@hotmail.com
9BiankaRolfson43Cesar53@hotmail.com
idfirstNamelastNameageemail
0HoraceLubowitz56Keely33@hotmail.com
1EleanoraBeahan32Scarlett79@gmail.com
2BruceLeuschke49Laura_Cassin29@yahoo.com
3ErinHowe60Ashly_Reichel@gmail.com
4JaquanDickens59Julian76@gmail.com
5MaximilianCremin64Olive_Langosh@gmail.com
6DayneHilpert44Elise35@yahoo.com
7JuanaSchmeler34Clinton64@gmail.com
8ErikaCarter23Shayna_Jakubowski96@hotmail.com
9BiankaRolfson43Cesar53@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0GretchenArmstrong41Shaun44@gmail.com
1GladysWalter23Margaretta_Lind@yahoo.com
2RandallRyan49Trystan.Kessler-Mills73@yahoo.com
3TheresaHayes58Kristina_Littel0@yahoo.com
4JonathanConroy18Christie.Oberbrunner@yahoo.com
5JanicePouros18Marlene9@hotmail.com
6TheodoreTurner-Lueilwitz39Preston.Hauck31@gmail.com
7AlfredoHermann35Sydnee.Koelpin-Sporer@yahoo.com
8DellaFrami42Carlton_Schaden20@hotmail.com
9GlendaYost30Oda_Grant@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0CarolReilly51Christy.Schamberger@gmail.com
1LaurieBaumbach64Elenor_Block66@yahoo.com
2HubertDach50Jarred_Osinski@yahoo.com
3LouiseOndricka36Hyman.Blick63@yahoo.com
4SydniConn42Ramona2@yahoo.com
5AlexzanderAuer20Kaci.Tillman29@hotmail.com
6HellenPadberg28Ignacio.Kling@hotmail.com
7LianaKessler-Schinner20Cole49@hotmail.com
8MerlinCrooks43Sarah_Legros75@yahoo.com
9RusselNader33Ashley32@gmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0KelvinHaag52Ladarius.Little@yahoo.com
1ElwynKeebler46Cedric.Collins@gmail.com
2GilesStrosin37Jeannie.Willms22@yahoo.com
3SheldonKshlerin23Felix_Little@gmail.com
4LorettaSenger56Roland.Bradtke@yahoo.com
5HarrietBatz23Tyler78@yahoo.com
6DexterWehner38Alize.Becker39@yahoo.com
7LillyEbert50Kacey_Runolfsdottir10@hotmail.com
8HadleyHeaney30Bobbie_Hilpert54@gmail.com
9BradleyMuller31Grant_Pacocha-Carter@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0JonatanQuitzon24Christa.Dickinson@yahoo.com
1EmilioLittel35Doug_Daugherty0@gmail.com
2NathanPredovic48Cedric.Larkin41@hotmail.com
3LucienneGleason49Emmett.Adams34@hotmail.com
4MaritzaGrant60Zakary.Lemke@yahoo.com
5JudithBradtke63Roslyn_Kling-Ankunding@hotmail.com
6OtiliaLeuschke-Gulgowski48Timmy49@gmail.com
7ElmerAbshire43Tad96@gmail.com
8RuthLeannon65Glenda_Keebler@hotmail.com
9AbigailBahringer29Grant.Reynolds58@hotmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0EmmettKshlerin41Jarrell.Johnson88@yahoo.com(638) 727-9108userinactive9/9/20259/11/2025
1KathleenHyatt63Allen98@gmail.com1-541-708-1168adminactive4/1/20264/2/2026
2MartineGislason36Torey15@hotmail.com622-290-5699 x1947userinactive9/25/202510/13/2025
3JasonSchneider57Leon85@gmail.com741-364-3828userinactive3/2/20263/4/2026
4JettieMcClure23Jarret_Borer@hotmail.com757-492-9744 x324useractive2/18/202610/29/2025
5AmberDickinson22Ryan.Denesik4@yahoo.com455.321.7414 x800adminactive8/11/20251/1/2026
6RobertLebsack65Rudolph_Grant12@gmail.com1-750-308-0676 x4886adminactive2/25/20266/29/2025
7JammieHirthe62Timmy.Krajcik87@gmail.com(974) 834-2681useractive11/25/202511/5/2025
8BrisaDuBuque53Tammy87@yahoo.com659-682-3970 x36190admininactive10/16/202511/8/2025
9GenevaKilback46Alejandro93@yahoo.com(407) 569-4033useractive7/2/20257/29/2025

Header Groups

iduser
nameageemail
firstNamelastName
0PeteTowne63Cali3@yahoo.com
1ChristinaMurazik43Alexandrea.Reilly73@yahoo.com
2TremaineRowe45Kent2@gmail.com
3CharlesWaelchi51Lynette_Ward83@hotmail.com
4ZoeyBartell40Ellis48@gmail.com
5KarlWard43Fred_Bechtelar-Schultz49@gmail.com
6TyroneRempel22Tremaine_Kerluke71@gmail.com
7HillardMetz54Jordan.Boehm7@hotmail.com
8CindyAltenwerth36Frances_Braun51@yahoo.com
9LiamZboncak30Judith.OConner@hotmail.com
iduser
nameageemail
firstNamelastName
0GilbertoKozey45Abel.Schaden39@gmail.com
1RudolphPacocha35Jamal.Smith@gmail.com
2MilesDurgan53Joanne_Leannon@yahoo.com
3AnsleyBotsford-Robel45Ahmed_Abbott95@gmail.com
4SaraHansen38Erica.Gerhold80@gmail.com
5BrettO'Conner43Gaetano_Doyle43@hotmail.com
6AnaBayer64Ernesto_Cremin29@yahoo.com
7LouisKuvalis22Hugh98@hotmail.com
8ElwynPagac63Daniella.Collins@yahoo.com
9FordKreiger51Darla53@hotmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0EldoraLynch55Pamela29@yahoo.com
1HopeLockman47Lana31@hotmail.com
2KevinChristiansen26Guillermo.Runolfsson@hotmail.com
3RandallMurray-Corwin30Joanna.Gulgowski17@hotmail.com
4KatelinQuigley32Rudolph54@hotmail.com
5ScottWilderman58Eliezer_Funk-Langworth66@gmail.com
6EmmaAbbott35Sandra23@yahoo.com
7ChelsieHarber53Rogelio.Fahey@hotmail.com
8BennieKutch51Iris_OKon56@gmail.com
9CarolineOsinski30Tiffany.Lind-Jacobs@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
0JanetMayer39Mellie_OReilly38@yahoo.com
1RickyZieme48Julie_Williamson@hotmail.com
2RebeccaToy38Todd71@hotmail.com
3ReaganBode50Janie42@yahoo.com
4EleanorBeer60Bennie_Goyette64@yahoo.com
5AnikaDickinson39Heather_Miller@hotmail.com
6MichaelLittle32Bailee.Aufderhar@yahoo.com
7TiffanyDietrich64Winifred.Bartell45@hotmail.com
8CraigSchaden47Don.Davis@hotmail.com
9HoldenJacobs60Euna42@hotmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0StellaMcDermott38Sofia.Sauer56@yahoo.com
1BrodyHintz28Jaren_Grant@gmail.com
2KristenLebsack19Noble.Witting@gmail.com
3ShaneWalter19Kara_Homenick@gmail.com
4AllisonJacobs26Jamar_Maggio97@hotmail.com
5ConstantinAufderhar48Clair.Langworth@yahoo.com
6GretchenChamplin37Lourdes_Marvin@hotmail.com
7KendraHirthe-Stanton54Maddison36@hotmail.com
8BellPaucek50Sage.DuBuque@yahoo.com
9MercedesLubowitz30Eudora.Franecki@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0MyrtleKemmer38Jamel5@gmail.com
1AnitaDickens59Jayson.Halvorson13@yahoo.com
2GretchenCasper34Jon97@hotmail.com
3NealWalsh42Joann56@yahoo.com
4ChristopherRosenbaum47Mathew_Balistreri@hotmail.com
5SheridanRath54Floyd12@hotmail.com
6SamsonSimonis41Andy58@gmail.com
7TamaraCormier56Olivia_Leffler@yahoo.com
8KayHudson40Rodolfo.Orn@yahoo.com
9MaeJacobi29Homer_Mante@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
7SherylCole65Rachel_Gulgowski20@hotmail.com
1DevinMuller62Mitchell34@hotmail.com
4CordeliaRuecker62Madonna22@hotmail.com
6FedericoRitchie58Austyn_Macejkovic@yahoo.com
8HenriettaShanahan57Naomi.Torphy@yahoo.com
5ArielWalter-Kreiger47Willard.Powlowski51@gmail.com
3CarmenReinger38Dixie_Conn3@hotmail.com
9ClarissaFeest37Terri.West37@gmail.com
0KeanuOlson24Travis_Robel35@gmail.com
2JoannaEmmerich21Edgar.Lueilwitz-Wilderman@gmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0AustenBraun48Oswald.Waelchi@yahoo.com
1WilbertNicolas24Gwen14@gmail.com
2TammyReilly48Wellington87@yahoo.com
3RamonaQuitzon-Little58Marcelle.Hoppe@gmail.com
4NoahKunze49Agnes.Crist47@hotmail.com
5MadelineErnser35Gail62@yahoo.com
6JewellFadel46Nettie36@gmail.com
7JulieKulas55Faye.Harris@yahoo.com
8StacyAufderhar39Grant31@gmail.com
9MargaretOlson35Renee.Grant@hotmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0NeilKulas20Terrell_Huel-Nikolaus6@yahoo.com
1BlakePowlowski59Arlo83@hotmail.com
2ColleenMoen58Wilton20@gmail.com
3EverardoSpencer36Sean_Weimann@hotmail.com
4MarthaMedhurst38Emmy.Ullrich@yahoo.com
5KristyFadel64Chloe3@hotmail.com
6TierraGibson33Lottie.West20@gmail.com
7MarjorieTerry64Vickie13@yahoo.com
8HazelVeum48Clement46@yahoo.com
9ClevelandBahringer34Robert.Raynor@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0NoahGleichner38Alta.Cartwright73@gmail.com
1JacobWilliamson32Cameron20@gmail.com
2StacyPfeffer-Moore20Buddy_Homenick-Smith@hotmail.com
3ElenaHerzog20Jim64@hotmail.com
4PrudenceKulas46Sandy58@yahoo.com
5JakeMetz57Terrence.Lubowitz36@gmail.com
6CynthiaO'Hara18Shannon.Goodwin27@gmail.com
7FannieDuBuque42Kathryn73@hotmail.com
8NaomiHegmann37Kendra64@yahoo.com
9JimmyMiller38Christophe68@gmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0BenjaminGutmann56Davion61@gmail.com
1KyleeHilll-Macejkovic60Jacob28@yahoo.com
2IvanPaucek45Jon.Rosenbaum53@yahoo.com
3ScottyRaynor61Jim_Lemke97@gmail.com
4ColleenSpinka53Brown23@gmail.com
5LinaAltenwerth45Leroy7@yahoo.com
6GuyKovacek-Becker50Pamela_Gulgowski-Hudson39@gmail.com
7DameonHermann61Jerome_Tremblay@hotmail.com
8MarjoryBlock43Efrain_Purdy@hotmail.com
9CarolSmith52Krista_Cartwright47@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
0LutherO'Connell54Forrest.DAmore@hotmail.com
1SherylWintheiser45Sam9@hotmail.com
2AllieGlover36Kacie_Schuppe21@hotmail.com
3HerthaKoch61Adam_Stark-Hudson22@yahoo.com
4RoxaneRomaguera34Grayce.Fadel@gmail.com
5GastonKunde60Malcolm.Murphy@yahoo.com
6StephenO'Conner53Wilbert69@gmail.com
7CliftonHills65Lela53@hotmail.com
8DemetrisBotsford21Lea.Gerhold@hotmail.com
9AishaMcLaughlin20Peter_Kertzmann@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0LeslyMante42Freddie.Stroman@yahoo.com
1JanisRice43Matt_Sanford@hotmail.com
2KelvinCremin23Luther_Yundt54@gmail.com
3KarenOlson32Waldo.Welch@gmail.com
4AbnerMaggio38Don88@yahoo.com
5MurielStamm61Amanda.Jones80@hotmail.com
6AndreaLarson48Edmond_Hagenes15@gmail.com
7CeciliaJohnston38Gust.Bode@hotmail.com
8MustafaKihn29Doris81@hotmail.com
9LacyOkuneva30Jarret68@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
0BennieFranecki29Ed.Hodkiewicz50@yahoo.com
1RupertSwift50Myrtle_Lockman-Macejkovic@gmail.com
2PamMacGyver40Augustine_Metz99@yahoo.com
3SidneyHarris50Susan2@gmail.com
4LazaroRyan42Paul.Bernhard@yahoo.com
5KarelleKuphal18Tracey70@yahoo.com
6AbbigailChamplin29Abraham.Gutmann@hotmail.com
7KristaWiza-Green42Phoebe93@hotmail.com
8BradCole43Matthew86@hotmail.com
9NadineGreenholt28Blaze.Stamm@hotmail.com
10MildredEmmerich38Inez.Lindgren10@gmail.com
11ClarissaMuller63Tanya64@hotmail.com
12TerrellSipes28Nelson_Fadel@gmail.com
13JillParisian38Mae_Marks@hotmail.com
14SteveMurazik36Miller_Schuppe62@gmail.com
15PauletteReilly52Rhett.Donnelly@hotmail.com
16RickeyGrimes42Kristine_Rohan-Ward@gmail.com
17FreemanMoen60Armando.Runolfsdottir37@yahoo.com
18JoannaHarvey55Diana9@yahoo.com
19CharitySwaniawski50Rene.Koepp@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
10WilbertKozey50Bernhard56@gmail.com
11RoseOndricka26Garrick.Murazik@hotmail.com
12ReinaWeber44Sandra_Simonis@gmail.com
13CrystalShields33Olivia.Pfannerstill9@gmail.com
14CraigBoehm55Marlen_Wolff51@gmail.com
15ChristFadel62Angelo8@hotmail.com
16NinaReichert37Jada_Walter32@gmail.com
17OletaJohnston33Trace_Ebert@hotmail.com
18JeremyWolf40Tasha39@hotmail.com
19ZitaQuitzon39Ernestine96@hotmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0ChaunceyHeaney20Lyle.Romaguera18@hotmail.com
1AmelieBruen61Kristin.Walsh38@gmail.com
2RosieKilback49Tyrone40@gmail.com
3BertLeannon37Dale_Reilly59@gmail.com
4MargueriteHuels65Katie40@gmail.com
5MarthaHalvorson31Louvenia.Kemmer@yahoo.com
6ZoraBarrows63Glenna.Olson97@gmail.com
7HarryGoodwin41Cielo_Cremin-Kihn0@gmail.com
8MossieBashirian21Grace_Ratke30@yahoo.com
9ElaineBeatty32Brandi81@yahoo.com
10RodMarvin42Sylvia.Wuckert@gmail.com
11NaomiJenkins28Axel_Von@gmail.com
12TriciaSipes32Sandra_Ritchie80@hotmail.com
13TayaWeissnat19Douglas22@hotmail.com
14RomaineGraham57Grace53@gmail.com
15KearaSpencer-Bayer36Clarence69@yahoo.com
16LorenzoWillms38Claud.OHara43@yahoo.com
17NoahWitting52Newton.Hyatt1@yahoo.com
18SonyaVandervort38Noel.Orn-Keeling36@hotmail.com
19TabithaMaggio45James_Hills32@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0KristineUpton39Eveline.Shields@hotmail.com
1JarrettAbernathy64Louis8@hotmail.com
2ClaudeVolkman51Robyn.Okuneva@yahoo.com
3DarrelAdams46Dominick.Kerluke@gmail.com
4NayeliRowe53Mercedes99@yahoo.com
5LorenHettinger23Brianne.Beer63@yahoo.com
6MarianneBernier39Rebecca_Hickle@yahoo.com
7IsaacBruen34Griffin_Gusikowski@hotmail.com
8BernadineMuller-Huel60Chadd_Feeney@hotmail.com
9CalvinKihn-Schultz32Enos_Dietrich@hotmail.com
10AlleneKulas59Roger_Connelly@hotmail.com
11KarineGrimes19Tommy.OConner10@gmail.com
12DwightHoeger40Bernard58@gmail.com
13WilsonLubowitz57Kelton96@hotmail.com
14KaneTreutel44Marsha.Schimmel14@gmail.com
15CalvinHowe44Gunner.Douglas@hotmail.com
16DallasBalistreri23Toby.Armstrong@yahoo.com
17IraHayes61Lulu.McGlynn1@gmail.com
18NoemieWiza-Blanda18Scottie.Leannon96@yahoo.com
19BettyLeannon38Jeremy56@yahoo.com

Enable Row Selection

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

idfirstNamelastNameageemail
0BrownCasper24Elijah.West97@yahoo.com
1WoodrowThompson37Norma_Jones@yahoo.com
2AidaDaniel40Mustafa.Goyette@gmail.com
3ChristineErdman45Jena_Hyatt44@hotmail.com
4DeliaGislason25Xavier38@yahoo.com
5SheliaRitchie59Julie_Schiller69@hotmail.com
6NevaO'Conner38Nicole35@hotmail.com
7VincentBuckridge49Mack_Kertzmann@gmail.com
8ClaudiaSenger51Harvey.Fay99@yahoo.com
9ManleyQuigley36Jarred.Toy57@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
0CatherineCarroll52Zakary21@yahoo.com
1MadilynChamplin38Celine.Hilll@gmail.com
2WillardStokes42Christian50@yahoo.com
3RufusCummerata35Michelle.Kuhn7@yahoo.com
4JettPrice18Rufus.Heller37@gmail.com
5DustinGreenholt40Johnny62@yahoo.com
6ToreyHeller35Leda17@yahoo.com
7ShyanneWaelchi19Arjun89@hotmail.com
8RickyKshlerin54Eugenia_Marquardt@hotmail.com
9MarielaGreen24Reginald_Hane73@gmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0PhilFeil35Joanny_Nolan@hotmail.com
1AdaSchumm55Arne.Dickens@hotmail.com
2AyanaAbbott65Lacey40@hotmail.com
3AnnaliseRogahn18Jo_Kub43@yahoo.com
4CaraO'Reilly44Belle.Flatley@gmail.com
5HowardHoppe-Jast20Vicky.Kovacek73@yahoo.com
6ElmerKoelpin56Nelda_Medhurst@yahoo.com
7MicahHerman45Jimmie25@yahoo.com
8JerrellWeber26Judith_Kerluke26@yahoo.com
9JeanStamm61Elsie23@hotmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0JamesWest22Aditya88@yahoo.com
1BrendonRowe38Coty99@yahoo.com
2GracielaDouglas44Noemy_McCullough@hotmail.com
3EliseLehner53Luigi_Gutmann23@gmail.com
4GeneErdman40Lawrence.DuBuque@gmail.com
5OliviaSchuster41Enrique94@gmail.com
6CecilRobel-Baumbach28Amos.Hansen58@gmail.com
7KipCruickshank46Salvatore_Sanford@yahoo.com
8MetaBotsford40Casimer76@hotmail.com
9TristonGrimes33Alejandro.Hand81@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0RusselReynolds34Frederik.Wintheiser-Simonis88@hotmail.com
1DarnellPredovic20Dominic14@yahoo.com
2MelbaRunte60Lane88@gmail.com
3CandaceNolan45Dwayne_Fay@yahoo.com
4HelenMoore35Dedrick.King76@yahoo.com
5RickeyFritsch35Marlene44@yahoo.com
6NadiaLangosh62Josh0@hotmail.com
7BrielleBlick36Fay22@gmail.com
8BernhardCassin33Ed.Botsford@gmail.com
9JaniyaJacobs24Mack70@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0MartinGoodwin46Steve_Wintheiser@yahoo.com
1OliveBorer55Paula.Goodwin@yahoo.com
2DellGorczany36Ginger83@yahoo.com
3LouieBrekke21Arnold_Hermiston91@gmail.com
4CelineRaynor63Elvira27@hotmail.com
5PaulaWillms38Katlyn_Harber41@hotmail.com
6GabeRussel39Steven.Hansen@yahoo.com
7AliceLowe39Vladimir_Walker@gmail.com
8FrederickBahringer23Jevon.Koepp@gmail.com
9RosellaBalistreri60Vincent_Dibbert63@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0DwayneGrimes46Darrel80@hotmail.com
1RupertZieme45Ronald40@yahoo.com
2CristobalHettinger63Joseph87@yahoo.com
3HumbertoDenesik63Joshua.Kreiger@yahoo.com
4EmmetParisian41Tyrel35@gmail.com
5CorbinBashirian27Adelle.Kling@hotmail.com
6EvangelineWisozk55Perry_Sanford-Langosh14@yahoo.com
7TerrenceGulgowski37Laurence.Gleason1@yahoo.com
8TaylorVonRueden35Lorenzo62@yahoo.com
9DejahBruen63Claire82@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
1StellaDoyle18Casper_Bins68@gmail.com
2LynnO'Connell49Nichole.Weimann@gmail.com
6KariWitting47Eden76@gmail.com
7CamylleAbshire48Corine88@gmail.com
8IsaacJenkins45Ana.Armstrong@gmail.com
9PatriciaSpencer23Delia_Watsica@gmail.com

Control Filter

idfirstNamelastNameageemail
0RosemarieHermiston62Eloise.Kassulke@yahoo.com
1EmanuelFahey48Darwin_Beer@gmail.com
2CraigHeathcote58Cooper23@hotmail.com
3JavierSchuppe26Lenna.OConnell4@yahoo.com
4RamonThiel59Claude76@gmail.com
5LaneGoyette-Waelchi36Irwin_Pagac88@gmail.com
6OlinBeahan58Katharina.Johnson19@hotmail.com
7GeorgiaKlocko29Neil.Krajcik32@hotmail.com
8MagdalenWuckert26Tate_Mante@yahoo.com
9EdithBogisich25Velma_Wunsch50@hotmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0AngieBarton58Dan50@hotmail.com
1JulioTerry33Annie15@yahoo.com
2GiovannaMann50Armando50@yahoo.com
3BenjaminSchultz49Cecelia.Doyle@gmail.com
4ForrestO'Connell46Cathy87@yahoo.com
5SheriStanton22Beverly69@yahoo.com
6HildaQuitzon64Lowell_Schuppe66@yahoo.com
7MathewMarvin35Jarrell42@yahoo.com
8AshleyBogisich43Meda_Bosco2@hotmail.com
9StephaniaGlover50Alma_Hagenes@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
0ChristieGerlach35Hilton14@gmail.com
1ElianNader62Kimberly39@gmail.com
2TeresaMaggio42Chad_Heathcote-Maggio@yahoo.com
3MadonnaLakin50Damon.Sipes-Bogisich@hotmail.com
4AniyaHuels54Vernon_Hessel25@yahoo.com
5HiramKemmer39Tony_Ernser@yahoo.com
6DanielleBeatty52Julie_Huel@gmail.com
7EmmittNitzsche25Braulio_Schneider-Barton@yahoo.com
8LaurenceHane49Margaret9@gmail.com
9PaytonKirlin59Rosemarie_Durgan@hotmail.com

Props

Accessibility

The Table follows the WAI-ARIA - Table Pattern for accessibility.

Setting an aria-label on the tableProps allows it to be read by screen readers.

const data = useMemo<TableData[]>(() => createTableData(), [])

return (
  <Table
    columns={columns}
    data={data}
    tableProps={{ "aria-label": "User list" }}
  />
)

Keyboard Navigation

KeyDescriptionState
ArrowLeftMoves focus one cell to the left. If focus is on the left-most cell in the row, focus does not move.-
ArrowRightMoves focus one cell to the right. If focus is on the right-most cell in the row, focus does not move.-
ArrowUpMoves focus one cell Up. If focus is on the top cell in the column, focus does not move.-
ArrowDownMoves focus one cell down. If focus is on the bottom cell in the column, focus does not move.-
HomeMoves focus to the first cell in the row that contains focus.-
EndMoves focus to the last cell in the row that contains focus.-
PageUpMoves to the previous page.enablePagination={true}
PageDownMoves to the next page.enablePagination={true}

ARIA Roles and Attributes

ComponentRole and AttributesUsage
NativeTable.Rootrole="grid"Indicates that the element is a grid.
aria-rowcountIndicates the total number of rows in the table.
aria-colcountIndicates the total number of columns in the table.
aria-multiselectableSet to "true" if enableRowSelection is set.
NativeTable.Theadrole="rowgroup"Indicates that the element is a rowgroup.
NativeTable.Trrole="row"Indicates that the element is a row.
aria-rowindexIndicates which row the element is in the table.
aria-disabledWhen enableRowSelection is provided as a function, set "true" for rows that return false.
aria-selectedSet to "true" if the row is selected, "false" if not selected.
NativeTable.Throle="columnheader"Indicates that the element is a columnheader.
aria-rowindexIndicates which row the element is in the table.
aria-colindexIndicates which column the element is in the table.
aria-sortSet to "ascending" for ascending order, "descending" for descending order, and "none" if no order is specified.
NativeTable.Tbodyrole="rowgroup"Indicates that the element is a rowgroup.
NativeTable.Tdrole="gridcell"Indicates that the element is a gridcell.
aria-colindexIndicates which column the element is in the table.
aria-rowindexIndicates which row the element is in the table.
NativeTable.Tfootrole="rowgroup"Indicates that the element is a rowgroup.
Checkboxaria-labelSet to "Select all rows" for the header, and "Select row" for body rows.
SortingIconaria-labelSet to "Sort ascending" for ascending order, "Sort descending" for descending order, and "Clear sorting" when no order is specified.

Similar Components

NativeTable

NativeTable is a component for efficiently organizing and displaying data.

Stat

Stat is used to display numbers or data within a box.

AreaChart

AreaChart is a component for drawing area charts to compare multiple sets of data.

Badge

Badge is a component that emphasizes the status of an item to make it immediately recognizable.

BarChart

BarChart is a component for drawing bar charts to compare multiple sets of data.

Card

Card is a component that groups and displays related information. By default, it renders a article element.

ComposedChart

ComposedChart is a component for drawing composed charts to compare multiple sets of data.

DataList

DataList is used to display a list of data items.

Uses Components & Hooks