Table

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

idfirstNamelastNameageemail
0FredyGoldner33Clifford52@yahoo.com
1LaurieD'Amore35Dave.Oberbrunner6@hotmail.com
2VeraCassin56Harriet38@yahoo.com
3SandyHegmann39Vicenta.Little62@gmail.com
4BrettJohnston31Ilene83@gmail.com
5KaylinMorar52Juana5@hotmail.com
6KarlaFerry61Carleton38@yahoo.com
7RenePadberg-Lakin24Lionel31@gmail.com
8GlendaHuel23Cedric.Conroy41@hotmail.com
9KaileeAbbott36Marcel_Murazik93@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0DoraFrami56Will9@hotmail.com
1MaciSteuber52Marcia59@yahoo.com
2RicardoHilll61Megan_Cormier28@hotmail.com
3RayWeber23Fernando.Ruecker41@gmail.com
4RayKautzer32Toni_Ebert37@hotmail.com
5AdelbertRath63Raleigh34@yahoo.com
6NormaSauer19Oren_Dicki@hotmail.com
7MelissaPfeffer-Kerluke52Cristina.Heidenreich22@gmail.com
8MayraGulgowski25Kristine.Cummings@yahoo.com
9EldridgeDuBuque48Brandon14@yahoo.com
idfirstNamelastNameageemail
0DoraFrami56Will9@hotmail.com
1MaciSteuber52Marcia59@yahoo.com
2RicardoHilll61Megan_Cormier28@hotmail.com
3RayWeber23Fernando.Ruecker41@gmail.com
4RayKautzer32Toni_Ebert37@hotmail.com
5AdelbertRath63Raleigh34@yahoo.com
6NormaSauer19Oren_Dicki@hotmail.com
7MelissaPfeffer-Kerluke52Cristina.Heidenreich22@gmail.com
8MayraGulgowski25Kristine.Cummings@yahoo.com
9EldridgeDuBuque48Brandon14@yahoo.com

Change Size

idfirstNamelastNameageemail
0KristopherMcCullough35Hassie_Beier29@yahoo.com
1GunnarKuhlman62Jakob_Lehner40@yahoo.com
2MaxwellRogahn62Andre_Kub3@yahoo.com
3JeanneGusikowski48Marian_Wolf@gmail.com
4TaraHirthe35Dean.Casper@hotmail.com
5JordaneMaggio24Sandra.Cronin@gmail.com
6DoloresTerry24Salvador.Weber@gmail.com
7KylaHaag56Violet76@yahoo.com
8ElisaDietrich23Anne14@yahoo.com
9SantinaBayer59Yolanda.Hammes@gmail.com
idfirstNamelastNameageemail
0KristopherMcCullough35Hassie_Beier29@yahoo.com
1GunnarKuhlman62Jakob_Lehner40@yahoo.com
2MaxwellRogahn62Andre_Kub3@yahoo.com
3JeanneGusikowski48Marian_Wolf@gmail.com
4TaraHirthe35Dean.Casper@hotmail.com
5JordaneMaggio24Sandra.Cronin@gmail.com
6DoloresTerry24Salvador.Weber@gmail.com
7KylaHaag56Violet76@yahoo.com
8ElisaDietrich23Anne14@yahoo.com
9SantinaBayer59Yolanda.Hammes@gmail.com
idfirstNamelastNameageemail
0KristopherMcCullough35Hassie_Beier29@yahoo.com
1GunnarKuhlman62Jakob_Lehner40@yahoo.com
2MaxwellRogahn62Andre_Kub3@yahoo.com
3JeanneGusikowski48Marian_Wolf@gmail.com
4TaraHirthe35Dean.Casper@hotmail.com
5JordaneMaggio24Sandra.Cronin@gmail.com
6DoloresTerry24Salvador.Weber@gmail.com
7KylaHaag56Violet76@yahoo.com
8ElisaDietrich23Anne14@yahoo.com
9SantinaBayer59Yolanda.Hammes@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0NikkiSteuber64Madisyn.Lockman@gmail.com
1CassandraDavis58Chelsea48@yahoo.com
2JoelSmitham37Isabel_Schumm@gmail.com
3LonnieZiemann26Dillan_Boyle39@gmail.com
4LouisaVeum52Kevin_Reichert@yahoo.com
5JeannetteLemke-Koelpin41Virginia_Luettgen@gmail.com
6ChristianProhaska-Stamm44Kevin61@yahoo.com
7HerminioHerman25Wade.Dach@hotmail.com
8WhitneyHettinger63Charles.Bednar@yahoo.com
9MableGerlach24Krystal60@yahoo.com
idfirstNamelastNameageemail
0NikkiSteuber64Madisyn.Lockman@gmail.com
1CassandraDavis58Chelsea48@yahoo.com
2JoelSmitham37Isabel_Schumm@gmail.com
3LonnieZiemann26Dillan_Boyle39@gmail.com
4LouisaVeum52Kevin_Reichert@yahoo.com
5JeannetteLemke-Koelpin41Virginia_Luettgen@gmail.com
6ChristianProhaska-Stamm44Kevin61@yahoo.com
7HerminioHerman25Wade.Dach@hotmail.com
8WhitneyHettinger63Charles.Bednar@yahoo.com
9MableGerlach24Krystal60@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0LurlineJacobson59Eddie51@hotmail.com
1ElizaKohler41Ian80@yahoo.com
2LorineLynch22Christine.Wilkinson88@gmail.com
3ForrestOrn36Louise_Purdy1@gmail.com
4ImmanuelHansen50Grayson_Kuhlman@gmail.com
5TraceCrona42Janice.Sipes3@hotmail.com
6OwenFunk62Brennan.Rogahn39@hotmail.com
7JanSenger65Willard.Anderson@gmail.com
8SabrinaBlock60Earl_Towne78@gmail.com
9LizethNicolas26Carley.Predovic44@yahoo.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0MyronCormier51Ernestine_Cummings93@gmail.com
1TraceyFeil-Dickinson26Darla_Williamson@yahoo.com
2NellaPowlowski61Archie.Kling@yahoo.com
3SageEmmerich-Keeling49Kendrick47@hotmail.com
4AnnieBoyle27Destinee_Barton35@gmail.com
5GerardKemmer47Terrence37@yahoo.com
6LoriLynch24Ewald.Kreiger@gmail.com
7MaryseSchuppe51Hallie57@gmail.com
8LenaNienow18Bridie.Rice@gmail.com
9AlbertoSchmeler25Verlie18@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0LeifBartoletti19Miguel78@gmail.com
1ArchibaldNitzsche64Kelli_Wolff41@yahoo.com
2RoyceFerry60Earl76@yahoo.com
3JodieNikolaus55Abner65@gmail.com
4KristieHessel43Adrian_Gulgowski22@hotmail.com
5LesleyHoppe31Vivian_Beatty@yahoo.com
6MarianGorczany48Calvin.Morissette@hotmail.com
7EdmondBradtke41Christie.Carroll@hotmail.com
8CarmelaBorer43Davin8@yahoo.com
9EarlBins58Desiree23@yahoo.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0GlennKihn40Lynda.Howe@gmail.com
1AlfonzoSchuster36Barbara11@hotmail.com
2MckenzieDare48Cali.Langosh-Miller@gmail.com
3ForrestRunolfsson35Ron77@yahoo.com
4IvoryLehner40Kianna31@hotmail.com
5LorenaBeier53Velda.Anderson67@yahoo.com
6JazlynSimonis52Kaylee51@hotmail.com
7FloydTerry35Christine.Johns73@gmail.com
8BridgetDuBuque35Moises6@hotmail.com
9TriciaBednar47Wanda_Pacocha@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0EllaZemlak39Carlos_Rolfson@gmail.com903.392.0438adminactive5/28/202612/8/2025
1TrevorGerhold19Pablo_Blick@gmail.com521-882-8969 x9119adminactive3/5/20269/13/2025
2AdaNikolaus40Nettie.Emard@hotmail.com(735) 874-9651 x37915useractive8/2/202511/13/2025
3VladimirKirlin39Lloyd_Hauck88@yahoo.com262-678-2217useractive11/28/202510/6/2025
4EstaKoelpin53Miriam.Purdy@hotmail.com1-507-518-8389adminactive10/17/202510/18/2025
5YazminNicolas62Jordy.Moen35@yahoo.com(587) 362-4594 x16210admininactive10/21/20259/12/2025
6CoryShanahan63Sofia.Franey-Dach87@yahoo.com282-937-1320 x01091useractive5/14/202611/8/2025
7IdaHackett49Soledad_Kilback@yahoo.com416.833.6364 x426useractive2/19/20261/9/2026
8KariKilback39Minerva.Blick6@gmail.com585-730-5843 x3600userinactive5/26/202611/27/2025
9KaylinSchroeder29Julio.Tromp@yahoo.com373.433.6898 x08378useractive2/21/20268/9/2025

Header Groups

iduser
nameageemail
firstNamelastName
0DeshaunDonnelly30Jimmie_Feest9@hotmail.com
1JaidenNikolaus43Florencio27@hotmail.com
2LaurieWeimann49Annalise_Kilback19@gmail.com
3MarilynTillman29Lupe11@hotmail.com
4RobinBayer29Maiya.Pfannerstill73@yahoo.com
5CletusSchinner36Susie_Rice76@hotmail.com
6MandyDooley54Jerod2@yahoo.com
7TrinityOlson21Curtis_Johns52@hotmail.com
8ErnestoWillms62Darrel.Dickinson@yahoo.com
9MelanyLemke46Elijah_Lynch98@gmail.com
iduser
nameageemail
firstNamelastName
0UnaLueilwitz29Lela.Gusikowski39@gmail.com
1DexterKutch53Marcos.Sanford36@gmail.com
2JaylonMante27Pietro.McCullough@gmail.com
3BennettSchneider31Leland16@gmail.com
4LoriKunze46Adrienne24@yahoo.com
5AmericaMcClure-Mayer51Addie.Crona@yahoo.com
6CarolynHodkiewicz65Neal17@hotmail.com
7BobbieRolfson45Cruz66@yahoo.com
8RobynSchuppe51Ofelia22@gmail.com
9KaleighLubowitz27Della38@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0ClydeHansen64Jensen.Schoen69@yahoo.com
1EleanorCartwright19Oran.Spinka@gmail.com
2CeliaRunte33Wilburn.Friesen56@hotmail.com
3KristopherBashirian18Angelina.Rodriguez@hotmail.com
4KennethConsidine30Xavier_Bauch@gmail.com
5SaraiFarrell25Ida0@hotmail.com
6MolliePowlowski55Floyd.Weber17@gmail.com
7AnnamaeWelch42Edgar.Upton56@yahoo.com
8ChristineOsinski45Sheryl58@hotmail.com
9ChloeWeissnat32Alexa61@yahoo.com

Set Initial Focusable Cell

To set the initial focusable cell, set initialFocusableCell to an object with the column and row indices ({ colIndex: number, rowIndex: number }). The default is { colIndex: 0, rowIndex: 0 }.

idfirstNamelastNameageemail
0AlisonDenesik49Kimberly_Grimes13@gmail.com
1DarnellKirlin18Ewell_Emmerich55@hotmail.com
2FabianZemlak51Bert46@gmail.com
3JennyKuhlman54Barrett46@gmail.com
4RogelioHessel35Mona75@gmail.com
5FaeBeer58Kathy.Cartwright@hotmail.com
6RubyeBruen61Micheal_Farrell@gmail.com
7JaunitaCollier31Danny.Koelpin@gmail.com
8MarlonHegmann43Saul.Tromp@yahoo.com
9NoeliaMann48Geovany48@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0JeanneSwaniawski44Marlon_Schneider4@yahoo.com
1KimberlyQuitzon-Doyle57Dell.Bradtke0@gmail.com
2StephanyMorissette57Rodger30@yahoo.com
3GerardoEffertz43Eric.Krajcik@yahoo.com
4ChristopherOkuneva39Aisha40@gmail.com
5GeorgianaHayes47Federico50@yahoo.com
6JayceJacobson59Cecilia89@yahoo.com
7FrancescoMiller34Brendan_Harber17@hotmail.com
8GlennSmitham36Rosie_Larkin@yahoo.com
9MarcosTillman20Josefina.Hickle@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0KaylaGerhold48Brandyn18@hotmail.com
1VanSchiller49Bradford37@gmail.com
2AgnesLeffler34Oswaldo72@gmail.com
3MichaelBatz47Thelma.Oberbrunner-OReilly@yahoo.com
4IvanSchuster41Luella_Sawayn20@hotmail.com
5CassandraHodkiewicz56Gary.Blick@gmail.com
6GardnerBreitenberg62Coleman97@yahoo.com
7JasperWeimann34Nichole_Morissette@yahoo.com
8RickWest50Christ.Beatty@gmail.com
9KarenReichert63Roger.Luettgen@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
5StaceyPacocha65Terence49@gmail.com
4GladysBarrows56Wilfredo_Homenick41@gmail.com
0RobertRunolfsdottir52Freddie42@gmail.com
3BrookeKrajcik50Moses_Weber@gmail.com
1LouiseGutmann39Matilde55@hotmail.com
8ErnestinaDicki38Kristofer_Nader78@hotmail.com
7LuraHamill25Serenity_Denesik19@gmail.com
2EduardoRunolfsdottir22Wayne_Reichert48@yahoo.com
9MarciaGrady20Andy_Powlowski15@gmail.com
6VirginiaWest18Waylon.Larkin52@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0AndrewHudson62Rose_Batz@hotmail.com
1TanyaBorer29German99@yahoo.com
2HiltonHalvorson32Merritt.Aufderhar33@yahoo.com
3MatildeRohan30Frankie_Franey@yahoo.com
4EllaBayer54Wilton.Bogan@gmail.com
5JacobPredovic62Terrell41@hotmail.com
6RusselGislason52Lance.Blanda2@yahoo.com
7VeronicaKoss18Dave_Reilly71@gmail.com
8MarleyWiza45Harold96@gmail.com
9ReneCremin50Emil55@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0NaomiGibson28Hannah_Bernhard-Veum17@gmail.com
1AlbertoGraham35Gardner77@hotmail.com
2WilfridRath24Jaleel.Lehner33@hotmail.com
3RodrigoMayer29Lillie.Hackett8@yahoo.com
4TomRath59Doug_Mertz62@gmail.com
5ShaneNader19Sarai.Hettinger@hotmail.com
6ArleneKautzer-Prohaska38Stewart_Watsica90@yahoo.com
7SunnySchumm52Noah88@hotmail.com
8MalcolmMonahan27Ida.Terry@hotmail.com
9ArnoldPfeffer31Thaddeus85@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0SarahLockman51Laura_Von27@hotmail.com
1KallieO'Conner28Esther_Vandervort-Jacobs@yahoo.com
2MarieMacGyver62Danny_Hintz@yahoo.com
3JuanitaHowell-Volkman54Sebastian96@hotmail.com
4AnsleyJones38Velma46@hotmail.com
5TheodoreStanton31Steven_McDermott97@hotmail.com
6JuneHayes65Wilbert33@hotmail.com
7RandalVandervort39Rosalinda.Powlowski94@gmail.com
8JaedenBalistreri42Audreanne_Dickinson@yahoo.com
9PrincessReilly22Joanie_Mertz83@yahoo.com

Manual Sorting

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

idfirstNamelastNameageemail
0KamrenBechtelar29Dolores.Thiel@hotmail.com
1DrewKling49Ramiro.Ziemann@hotmail.com
2CaitlynWilliamson54Inez.Mitchell@hotmail.com
3PhyllisBrown36Tami_Williamson-Franecki4@gmail.com
4JacquelynBatz34Clara_Gerlach17@yahoo.com
5ReynaMcCullough25Flavie73@hotmail.com
6NeldaStiedemann53Juanita_Steuber42@gmail.com
7KarleyHartmann54Kurtis21@hotmail.com
8LeonieJast55Cruz_Schneider73@gmail.com
9MicheleErdman32Mabel85@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
0EldridgeBlanda19Brennon_Parisian@hotmail.com
1MonserrateWindler42Jamal.Treutel43@gmail.com
2ItzelStracke54Josie.Rowe@gmail.com
3KianaRaynor-Goyette37Julian.Ankunding@yahoo.com
4EdisonBeahan36Delfina_Wehner21@gmail.com
5RodneyLeannon25Gwen_Mohr-Thiel@hotmail.com
6TaylorSchmeler64Trycia_Effertz56@gmail.com
7WilburHamill19Gerardo.Gleichner4@yahoo.com
8GladysJacobi55Emily_Kirlin@yahoo.com
9ClementineParker24Juanita.White52@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0TeresaBaumbach40Clinton.Schimmel@gmail.com
1GlendaLehner65Dwight29@hotmail.com
2StephenMitchell19Sonya.Fritsch@hotmail.com
3JacquelineSipes29Heidi86@gmail.com
4AnnetteGlover33Geneva59@gmail.com
5SigridBraun59Anthony.Bernier38@hotmail.com
6RylanBauch43Katherine63@yahoo.com
7DesmondThiel56Van.Walker-Kub@gmail.com
8KristenWindler45Xzavier.Jenkins75@hotmail.com
9JaylanSchultz53Kurtis.Bogisich17@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
0NicolaHilll57Kate15@yahoo.com
1ChadDoyle44Johathan_Carter69@hotmail.com
2KarolannRippin20Melody_Adams@yahoo.com
3ShariSkiles63Keely.Lind-Bartoletti15@hotmail.com
4GilbertoLittel54Eric61@yahoo.com
5HaileeEmard52Charlie_Upton@gmail.com
6ZellaLockman-Bernier36Sabina1@yahoo.com
7GordonJast61Merritt50@hotmail.com
8ReginaKuphal19Priscilla_Carroll31@hotmail.com
9ValentineBalistreri26Isaias.Huel50@yahoo.com
10ElyssaPurdy42Lucienne_Hermann@gmail.com
11ImeldaProsacco27Jonathan.Quigley31@yahoo.com
12TaylorBrekke31Shawna89@gmail.com
13LindseyCorkery51Jimmy32@hotmail.com
14RodolfoGottlieb42Madelynn_Zulauf-Reinger@gmail.com
15SigmundCremin39Cesar60@hotmail.com
16HellenReynolds39Scottie57@gmail.com
17BillieRunolfsson31Kurt.Franecki67@yahoo.com
18VeronicaHansen56Santino_Murphy@hotmail.com
19KristineJohnston49Brayan.Nienow@yahoo.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
10CleoWalter43Jonathon.Hyatt@yahoo.com
11WilmaBartoletti34Mathew_Wintheiser@hotmail.com
12MeaganLeannon-Quitzon48Adelbert80@gmail.com
13HazelSpencer63Marie_Cassin@hotmail.com
14NoreneTrantow48Karla15@yahoo.com
15LeahConnelly56Blake33@yahoo.com
16BudHeidenreich22Emmie_Luettgen-Morar25@hotmail.com
17ShawnSchmidt38Jeramy24@hotmail.com
18MandyMiller60Andrew12@yahoo.com
19RiverDoyle58Caleb_Abbott38@hotmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0CaryLangosh59Thea_Heathcote@gmail.com
1MetaLedner24Johnny78@gmail.com
2EileenNicolas40Rene.Abbott8@gmail.com
3ScottMann43Madison98@gmail.com
4EldonAuer39Jacob.Waters44@hotmail.com
5GwenCruickshank21Tierra46@gmail.com
6AssuntaFahey23Ima26@gmail.com
7StellaBarrows40Steven.Schamberger64@hotmail.com
8MargaritaStoltenberg36Macie23@yahoo.com
9GretaBashirian57Mandy.Brakus47@yahoo.com
10PrestonHickle24Alexandra44@yahoo.com
11IreneReichel55Jacob59@yahoo.com
12ValerieCasper21Myrna.Kub@hotmail.com
13CathyHegmann31Abbey.Steuber21@yahoo.com
14HoustonFriesen61Dallas_Lueilwitz@gmail.com
15JosieSchumm27Latoya.Gerhold4@yahoo.com
16MyleneWard19Tatum30@gmail.com
17VirginiaKeeling28Jamarcus_Hartmann@yahoo.com
18MalcolmStokes49Dudley.Skiles3@gmail.com
19ForrestPfannerstill18Esther.Prohaska12@gmail.com

Control Pagination

idfirstNamelastNameageemail
0JudsonRussel24Taylor50@yahoo.com
1ConradJohns55Dallas.Wisoky@hotmail.com
2HarryCummings37Hazel.Conn96@gmail.com
3TravonPrice-Heathcote61Domenico.Padberg80@gmail.com
4DaphneeKutch23Samuel_Reilly@gmail.com
5SteveBechtelar62Kian_Raynor@yahoo.com
6CasperGusikowski48Raymond_Hermiston@yahoo.com
7ReneAnderson39Sid.Brown55@hotmail.com
8PhillipHilpert39Perry32@gmail.com
9AiyanaLarson34Kelvin99@yahoo.com
10HarmonRunolfsson34Halie_Marks@yahoo.com
11DominickHoppe53Maymie.Douglas17@hotmail.com
12RustyWiza59Rufus.Berge@yahoo.com
13MonteFay61Stephanie.Hayes66@gmail.com
14CecilRice48Miller_Gutkowski13@hotmail.com
15TammyRomaguera61Josephine_Raynor69@gmail.com
16DeronBarton63Don45@yahoo.com
17RolandDonnelly-Ziemann52Gayle28@gmail.com
18ZoieProhaska33Josefina.Legros26@gmail.com
19RaySanford31Francesco26@yahoo.com

Enable Row Selection

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

idfirstNamelastNameageemail
0HugoKing53Reginald92@hotmail.com
1AaliyahRunte53Jeannette45@gmail.com
2RoseMacejkovic48Laura76@hotmail.com
3JayCormier38Alan_Runolfsson37@hotmail.com
4MaurineKris40Billie70@yahoo.com
5BeverlyHickle55Oliver_Johns93@yahoo.com
6PriscillaCormier26Emmalee.Macejkovic@hotmail.com
7MarcellaKovacek39Anibal90@yahoo.com
8JuwanKozey22Darian16@hotmail.com
9LeopoldoToy46Ernestine90@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
0MarieBatz23Neal88@hotmail.com
1MicahBoyer50Jaycee62@hotmail.com
2NoraBode36Jeremiah_Nolan@yahoo.com
3MyrlSporer59Linwood.Kunze66@hotmail.com
4AllieFrami29Orlando20@gmail.com
5BlakeStamm62Daphnee3@hotmail.com
6TessieDaniel32Shane_Jenkins@hotmail.com
7MindyMaggio58Abraham.Bernier@yahoo.com
8AlyciaBosco32Wendell97@yahoo.com
9VivienCrooks30Marshall_Wiza53@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0ClemensLindgren45Roosevelt_Herman84@gmail.com
1DollyPollich25Jayde.Beer34@hotmail.com
2DesireeHickle23Helen11@hotmail.com
3SallyMiller22Janick_Schiller6@hotmail.com
4BraedenStark47Kim44@yahoo.com
5LeilaniWiegand23Sim.Lueilwitz@yahoo.com
6FrankieO'Connell-Jenkins56Krystel_Towne-Boehm68@hotmail.com
7EricaKiehn64Tracey.Runte@hotmail.com
8PercyEffertz34Rodney.Maggio@gmail.com
9AngelicaHermann26Eva_Schowalter@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0KeatonKeeling20Vera_Kshlerin28@hotmail.com
1SeamusCole33Griffin_Green@hotmail.com
2JeradCronin22Jodi.Bednar7@hotmail.com
3LucindaHessel58Sheldon_Sipes59@hotmail.com
4BlancheKuhic44Ethel_Rowe-Lind@gmail.com
5WilburEbert61Kristopher57@hotmail.com
6ChazJohns63Cecil_Langosh@gmail.com
7EmeryTurner45Laurie.Langosh71@hotmail.com
8DandreKozey58Patrick61@hotmail.com
9NealRosenbaum43Agnes_Borer7@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0KraigJakubowski55Sofia_OHara97@gmail.com
1RowenaSatterfield44Hillary0@hotmail.com
2EstrellaRowe62Dan6@yahoo.com
3GwenWeber56Kory13@yahoo.com
4GodfreyBoyer37Lena.Corwin@yahoo.com
5AnthonyBergnaum38Maurice_Spencer48@yahoo.com
6BrannonBahringer42Kolby_Metz85@gmail.com
7GloriaFay61Marlon70@gmail.com
8FurmanKilback36Dagmar_Beer@yahoo.com
9SantinoMorissette38Bruce_Lynch71@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0FordKeeling64Lisandro88@gmail.com
1AracelyRobel57Kiel32@yahoo.com
2MarilynFlatley57Melody_Brakus@yahoo.com
3OtisWyman51Viola_Howe13@gmail.com
4SedrickFraney29Nina.Wiegand@hotmail.com
5BernadineTorphy26Serenity_Hane@hotmail.com
6EllenEffertz49Katie.Kuhn@hotmail.com
7JulieSchamberger59Edwin_Funk43@hotmail.com
8JasonBeatty31Magdalen_Paucek96@hotmail.com
9DwightFisher25Isobel_Boyer@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0SaulTrantow34Kiarra_Okuneva94@yahoo.com
1FreidaWatsica21Crystel_Schmidt82@yahoo.com
2OmarBoyer33Clayton.Watsica25@gmail.com
3MalcolmHegmann40Max_Muller@yahoo.com
4NormaMayert19Paul.Kirlin@yahoo.com
5BrownLittel21Noel64@gmail.com
6AdrienneVandervort63Simon_Erdman@yahoo.com
7GlenHodkiewicz18Enid_Dibbert@hotmail.com
8KristieBayer48Mable.Erdman79@hotmail.com
9AllisonHaley45Cielo_Wilderman@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
1KennithTorp58Simeon47@gmail.com
5ClaudineLarkin45Duane_Smith@gmail.com
6DomenickWilkinson24Lysanne.Hayes41@gmail.com
7NelsKunze58Calista_Champlin65@gmail.com

Control Filter

idfirstNamelastNameageemail
0KarlaO'Connell49Khalil87@yahoo.com
1OsvaldoPfannerstill28Reba0@yahoo.com
2BettyDooley37Phillip.Miller@gmail.com
3CarlottaCole-Doyle50Unique.Jones36@hotmail.com
4FelicityKutch58Lilian_Price44@yahoo.com
5CynthiaNitzsche29Scottie.Waelchi@gmail.com
6ReinaBrown47Dangelo.Runolfsson@gmail.com
7LukeKeeling49Efren_Kessler@gmail.com
8JeremiahBins37Rosalie.Erdman@gmail.com
9IrisWaelchi21Herbert.Bahringer@hotmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0TristinHowe55Jana_Blanda38@gmail.com
1KarsonQuigley52Lavinia10@yahoo.com
2RiverLeuschke30Stephen.Kshlerin37@hotmail.com
3StevenBoyer37Mabelle_Gottlieb@yahoo.com
4AntoniaPredovic53Edna.Schmidt@hotmail.com
5LudieMarks37Electa_Zboncak14@hotmail.com
6SheldonDenesik60Marianne.Mueller@hotmail.com
7CoryFeeney32Brian99@hotmail.com
8BenKling50Cristina38@gmail.com
9AntoinetteTurner41Matthew11@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
0KelliRau42Dulce70@hotmail.com
1WaldoSchumm45Rachael.Kling@yahoo.com
2WilburKozey65Ansel_Stehr@yahoo.com
3JaredSchmitt62Javonte53@hotmail.com
4JonathonCorwin39Madilyn_Stokes@gmail.com
5NathanielKemmer28Winston.Mertz2@gmail.com
6LaurelChristiansen28Hailie_Johnston-Gerlach36@yahoo.com
7ShirleyWill37Eric2@hotmail.com
8RodgerSwift39Philip_Boyle@yahoo.com
9LulaBrakus24Jeannie_Kunze56@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