Table

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

idfirstNamelastNameageemail
0JoanaNikolaus45Jessica.Hahn@hotmail.com
1JoyAuer57Bryce88@hotmail.com
2LonzoCrist57Layne.Stracke76@gmail.com
3AudreyMurphy39Marlee50@gmail.com
4NorvalDurgan29Cruz95@hotmail.com
5AlvisStehr37Jana_Nitzsche-Ondricka1@gmail.com
6JoannSmith38Syble_Kertzmann@hotmail.com
7ZitaTrantow18Chanelle.Smitham52@gmail.com
8JoanneTreutel-Dach20Garland_Wilderman40@gmail.com
9NelleKilback44Matilde.Fay@yahoo.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0OttoGerlach53Kali.Blanda80@yahoo.com
1CaliAufderhar63German_Ruecker79@hotmail.com
2KayaKrajcik19Lyla1@gmail.com
3HeleneMoen41Jaden.Volkman26@gmail.com
4LibbieStroman37Odie.Williamson32@yahoo.com
5JulietSteuber27Alessia53@hotmail.com
6MeganLittle38Joseph33@yahoo.com
7EarnestineHudson31Rosamond.OHara@hotmail.com
8KayliSkiles-Bode48Ezra_Steuber@yahoo.com
9QuinnHaag60Piper.Weimann-Cassin@gmail.com
idfirstNamelastNameageemail
0OttoGerlach53Kali.Blanda80@yahoo.com
1CaliAufderhar63German_Ruecker79@hotmail.com
2KayaKrajcik19Lyla1@gmail.com
3HeleneMoen41Jaden.Volkman26@gmail.com
4LibbieStroman37Odie.Williamson32@yahoo.com
5JulietSteuber27Alessia53@hotmail.com
6MeganLittle38Joseph33@yahoo.com
7EarnestineHudson31Rosamond.OHara@hotmail.com
8KayliSkiles-Bode48Ezra_Steuber@yahoo.com
9QuinnHaag60Piper.Weimann-Cassin@gmail.com

Change Size

idfirstNamelastNameageemail
0OnieBrekke30Lulu43@gmail.com
1ChelsieZemlak64Jessie21@yahoo.com
2BriceMohr30Kristie.Murray59@hotmail.com
3OlinDaniel20Ivory.Littel@hotmail.com
4GregStreich63Edgardo_Altenwerth@gmail.com
5KaileyLittel46Osbaldo_Wuckert4@yahoo.com
6CadenKonopelski19Miracle78@hotmail.com
7BarrettMoen18Sherry.Balistreri@hotmail.com
8AbigailCarter46Arturo_Kessler37@gmail.com
9SabinaHansen57Dereck_Bednar13@gmail.com
idfirstNamelastNameageemail
0OnieBrekke30Lulu43@gmail.com
1ChelsieZemlak64Jessie21@yahoo.com
2BriceMohr30Kristie.Murray59@hotmail.com
3OlinDaniel20Ivory.Littel@hotmail.com
4GregStreich63Edgardo_Altenwerth@gmail.com
5KaileyLittel46Osbaldo_Wuckert4@yahoo.com
6CadenKonopelski19Miracle78@hotmail.com
7BarrettMoen18Sherry.Balistreri@hotmail.com
8AbigailCarter46Arturo_Kessler37@gmail.com
9SabinaHansen57Dereck_Bednar13@gmail.com
idfirstNamelastNameageemail
0OnieBrekke30Lulu43@gmail.com
1ChelsieZemlak64Jessie21@yahoo.com
2BriceMohr30Kristie.Murray59@hotmail.com
3OlinDaniel20Ivory.Littel@hotmail.com
4GregStreich63Edgardo_Altenwerth@gmail.com
5KaileyLittel46Osbaldo_Wuckert4@yahoo.com
6CadenKonopelski19Miracle78@hotmail.com
7BarrettMoen18Sherry.Balistreri@hotmail.com
8AbigailCarter46Arturo_Kessler37@gmail.com
9SabinaHansen57Dereck_Bednar13@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0UlicesBlick43Casper80@gmail.com
1JamirTurner60Kade2@yahoo.com
2BrookBaumbach33Darien_VonRueden@yahoo.com
3ShaniaWest27Kali65@gmail.com
4IrwinGottlieb48Eldridge.Lockman63@hotmail.com
5EllieHessel-Bradtke36Johnpaul_Larkin@gmail.com
6LonzoMcDermott56Whitney73@yahoo.com
7EladioSchmitt39Jed_Greenfelder76@gmail.com
8WardHarber62Hilda.Walker53@gmail.com
9DavonKuhic24Betsy85@yahoo.com
idfirstNamelastNameageemail
0UlicesBlick43Casper80@gmail.com
1JamirTurner60Kade2@yahoo.com
2BrookBaumbach33Darien_VonRueden@yahoo.com
3ShaniaWest27Kali65@gmail.com
4IrwinGottlieb48Eldridge.Lockman63@hotmail.com
5EllieHessel-Bradtke36Johnpaul_Larkin@gmail.com
6LonzoMcDermott56Whitney73@yahoo.com
7EladioSchmitt39Jed_Greenfelder76@gmail.com
8WardHarber62Hilda.Walker53@gmail.com
9DavonKuhic24Betsy85@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0FletcherKuphal43Kenny58@gmail.com
1CareyReichel47Vaughn69@yahoo.com
2AlexieLittle18Alaina73@yahoo.com
3MontyKling26Fritz66@yahoo.com
4AmosAnkunding57Russ23@gmail.com
5DwightHahn22Leopoldo.Gerlach45@hotmail.com
6RobynVolkman62Alice52@yahoo.com
7KarliRobel50Savion.Collins@gmail.com
8IrvinBlanda27Golden_Fisher37@yahoo.com
9AiyanaSipes37Titus.Kreiger84@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0LornaTremblay62Issac_Hickle@hotmail.com
1EphraimBlick62Doreen.Torphy16@yahoo.com
2TerrenceSmitham-Becker48Joesph_Ullrich58@hotmail.com
3RavenMacejkovic28Daphney_Beatty@hotmail.com
4RainaGottlieb47Marquise_Oberbrunner@gmail.com
5VanessaO'Kon56London.Champlin@gmail.com
6WilfridWintheiser37Maye_Wintheiser@gmail.com
7SydneeOlson40Montana_Langosh18@hotmail.com
8ShelleyWolff61Vincenzo14@yahoo.com
9IsobelBernhard-Cremin59Kaleb_Mueller46@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0LuzWhite45Cameron_Baumbach@yahoo.com
1ArvelPouros27Ulices.Sanford@hotmail.com
2RoderickJaskolski23Sonny.Batz91@yahoo.com
3JacintoWolf36Stacey20@yahoo.com
4EarlLegros57Nicholaus19@hotmail.com
5SageKemmer30Muhammad.Grimes48@yahoo.com
6TroyWaters37Wava.Marquardt@hotmail.com
7MeaghanWillms51Mabelle.Bashirian@yahoo.com
8TrentJones21Makenna40@yahoo.com
9EdwinFarrell-Lindgren47Osborne72@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0RosemarieFeeney25Jed35@yahoo.com
1LaurenceWintheiser18Beau_Schoen@hotmail.com
2SchuylerMuller42Jackson.Graham64@gmail.com
3EleanorBarrows62Annie.Grady@gmail.com
4KeelyMraz52Sierra_Turner21@yahoo.com
5MadgeKemmer61Jed17@gmail.com
6RicardoDibbert50Amiya_Schaden@gmail.com
7JaylonMcKenzie59Giovanna_Cronin60@yahoo.com
8HenriMitchell42Isom.Farrell80@hotmail.com
9MaximusCrist18Meta64@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0TiannaDietrich55Sallie99@gmail.com1-597-486-2648 x074userinactive5/9/20265/10/2026
1DarbyHauck34Percival93@gmail.com(365) 867-4965 x256userinactive12/22/20255/1/2026
2HallieStokes29Freida.Klocko85@gmail.com983-715-0895 x75997userinactive2/19/20267/17/2026
3FreddyD'Amore43Kailee.Mayer43@yahoo.com955.890.0263 x3221useractive3/4/20264/22/2026
4JaronHegmann46Milan.Murphy44@hotmail.com895-273-7850 x096useractive7/9/20264/25/2026
5StefanieLangworth31Hermann_Ortiz6@gmail.com392.312.4541 x3288adminactive7/29/20267/17/2026
6DarronRice18Merlin.OKeefe@gmail.com(521) 285-2938 x679admininactive12/6/20254/11/2026
7DejaSchimmel46Weldon.Yost@yahoo.com(515) 839-3599 x33149userinactive6/4/202612/26/2025
8LennieGibson26Vera1@gmail.com(772) 272-0203 x3947userinactive3/4/20263/7/2026
9MichelleToy55Clayton85@gmail.com765-385-7523 x07425useractive8/10/20263/18/2026

Header Groups

iduser
nameageemail
firstNamelastName
0ZoeZieme64Raleigh.Kautzer13@hotmail.com
1TellyWilliamson51Keegan_Leffler@yahoo.com
2JarretOsinski37Schuyler_Trantow8@hotmail.com
3MariamCarter65Hobart.Fadel30@yahoo.com
4TyshawnCartwright46Sid.Hackett@hotmail.com
5SavanahYundt19Melisa_Pollich@gmail.com
6EliseoGerhold51Modesta79@gmail.com
7AdelbertRohan56Rolando_Johnston96@gmail.com
8ManuelChamplin63Fay_Hoeger@hotmail.com
9MackCollins33Hoyt_Crist76@yahoo.com
iduser
nameageemail
firstNamelastName
0LewSpencer36Tamia.Kreiger@hotmail.com
1TashaErnser57Clemens.McKenzie@hotmail.com
2TimmothyPfannerstill30Selena.Yost@gmail.com
3KianBosco58Dovie9@gmail.com
4OdieLueilwitz33Jazmin66@hotmail.com
5BennieVonRueden41Vincenza_Bruen81@hotmail.com
6SammyTremblay62Tressie_OConner@gmail.com
7TiaHayes61Nicklaus26@yahoo.com
8DakotaKshlerin21Jamey_Hintz69@gmail.com
9PeytonKuhic52Keenan80@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0AllanAdams59Idell_Beier@hotmail.com
1StefanieArmstrong-Hansen62Lexi_Mertz@gmail.com
2KameronMayert31Dee0@yahoo.com
3DenisFlatley37Augusta.Wiegand@hotmail.com
4TamaraQuigley59Jennifer11@yahoo.com
5HildegardMcKenzie30Christop92@yahoo.com
6DellaHowell40Cora.Smitham71@gmail.com
7JovaniSwaniawski32Alec98@yahoo.com
8RobbieStamm37Antonette_Morissette51@hotmail.com
9LawrenceLeuschke46Dorthy.Wilderman78@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
0AriFrami18Zachery.Wyman@yahoo.com
1LaurianeGlover60Robert_OConnell@yahoo.com
2JanKshlerin35Darren.OHara16@gmail.com
3AdityaSchuster49Anderson.Schmidt72@hotmail.com
4JermainFunk40Addison_Rippin@yahoo.com
5StevenMurray61Eloise.Streich@yahoo.com
6ChristineBaumbach50Tobin.Berge34@hotmail.com
7RochelleFraney19Alexanne16@gmail.com
8JedidiahDickinson48Vivien.Kerluke38@gmail.com
9EmoryVandervort21Barry_Murray10@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0JudyRutherford64Scot69@hotmail.com
1RodrigoBrown28Alisa_Mann@hotmail.com
2TeriCremin50Eusebio_Cummings@yahoo.com
3JacquesKuhlman37Maudie77@hotmail.com
4JohnathanHyatt30Alicia.Hessel@gmail.com
5JavierHirthe26Arno.Kshlerin@gmail.com
6VallieParker33Rosamond.Beahan40@hotmail.com
7CamrynWunsch59Lyle29@gmail.com
8DinoMurazik38Haven.Simonis92@yahoo.com
9RoseWunsch51Deondre_Shanahan3@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0ElwinO'Connell41Henrietta.Satterfield@hotmail.com
1LewMertz51Demetrius_Dicki81@yahoo.com
2OkeyLesch-Klein28Jaiden.Bergnaum90@hotmail.com
3AveryBreitenberg25Faye.Rutherford@yahoo.com
4KirstenDaniel20Ashley.Renner83@yahoo.com
5PeterStark22Reynold47@hotmail.com
6SvenKoelpin61Cassandra_Daniel@yahoo.com
7LanceTrantow35Willy.Connelly@yahoo.com
8KolbyOndricka22Anastasia76@hotmail.com
9IanSenger21Darrell_Hyatt80@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
1IvanBergnaum61Destiny_Brekke59@yahoo.com
2ShaunBalistreri57Moriah.Klocko50@hotmail.com
3ChynaCummings51Berniece44@yahoo.com
7VernonCartwright47Camylle.Legros-Wisoky@gmail.com
5PenelopeGrady37Eldon28@gmail.com
0SibylBrown35Kerry77@hotmail.com
6DevonNader32Frank68@yahoo.com
9HavenSchmitt23Dayana7@hotmail.com
4FritzMcLaughlin22Dimitri93@gmail.com
8TyreeTrantow18Tanya_Berge90@yahoo.com

Disable Sorting

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

idfirstNamelastNameageemail
0LamarAnkunding53Roslyn.McDermott49@hotmail.com
1MagnusCollier42Vito83@hotmail.com
2MelanyWilliamson30Valentine_Douglas67@gmail.com
3ThelmaBernier47Loren_Prosacco@hotmail.com
4MelanyCronin52Makenzie86@yahoo.com
5EarlineLockman27Alexandria56@hotmail.com
6MichelBarton52Leigh_Larkin@gmail.com
7ColtStokes-Langworth18Nya5@yahoo.com
8JarrettSchulist20Jayce.Walker48@hotmail.com
9EthelMcGlynn39Irene_Kassulke21@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0ZoeYost47Caleigh_Frami50@hotmail.com
1EnolaStrosin25Julio.Cormier40@hotmail.com
2HiramGrimes20Jena_OConnell93@hotmail.com
3JadonBailey59Toby1@gmail.com
4KathyLedner39Modesta_Schroeder84@gmail.com
5FannieMcClure24Jorge.Koss@yahoo.com
6KatelinChamplin38Geraldine_Greenfelder@hotmail.com
7JasenBeatty36Frieda21@hotmail.com
8SavanahGoyette53Wiley.Toy46@yahoo.com
9AlfredHansen20Julius_Schumm11@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0IrwinLowe63Cynthia77@hotmail.com
1DanialFritsch54Milford_Halvorson@hotmail.com
2VernaHammes62Sim4@yahoo.com
3JaylenCrooks57Timmy.Weimann34@yahoo.com
4CarlaLemke58Samanta41@gmail.com
5JamisonCremin50Ruthie55@gmail.com
6GerryRath37Alfredo81@gmail.com
7JennaHarber60Daisha68@gmail.com
8TaliaConsidine43Keeley76@hotmail.com
9AubreyDietrich62Ashton.Kiehn33@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0IsomHane34Macey_Emard41@yahoo.com
1CandidaKuhic27Roxane75@yahoo.com
2WillowRunolfsson20Herbert.Blanda16@gmail.com
3ElainaMorar23Antwon.Schaefer@yahoo.com
4NormaGulgowski37Marilyn.Jast19@hotmail.com
5WilmaCollins45Jed.Heidenreich-Labadie@gmail.com
6PinkieJenkins54Layla.Kessler@hotmail.com
7DillonStracke62Becky99@yahoo.com
8MarilouBrakus45Cesar.Stehr8@yahoo.com
9ReinaParisian34Bruce95@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
0PattieMraz22Federico65@gmail.com
1AddisonKoch44Ron.OConnell@yahoo.com
2RyleyAbernathy27Jefferey47@hotmail.com
3KenyattaMertz33Margarete_Zemlak@hotmail.com
4MarlenGreen57Marielle_Witting@hotmail.com
5CelestineReichel24Sigurd.Rowe@gmail.com
6NoemiBosco56Myrna7@gmail.com
7JonatanHarvey32Marjolaine.Windler71@hotmail.com
8MaribelDouglas31Jovani48@gmail.com
9MichaelaGutmann42Jimmy99@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0ElianGraham35Marsha18@yahoo.com
1OcieTerry60Vincent_Koelpin1@gmail.com
2HarleyLang25Flavio_Gleason58@yahoo.com
3EssieSpencer50Heather32@hotmail.com
4TinaKautzer38Orin.Schiller@gmail.com
5ColtArmstrong40Alexandrea32@hotmail.com
6RosaliaGrant57Cristian_Kovacek@hotmail.com
7WadeMcLaughlin30Sean16@hotmail.com
8ShayneAltenwerth41Kiera63@gmail.com
9JaneKozey27Brielle_Corwin@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
0ElenoraKub43Ray_Langworth@hotmail.com
1ShelleyPfannerstill25Kurt64@hotmail.com
2PresleyWunsch50Lois.Berge@hotmail.com
3EvalynGoyette18Frederique_Rowe@yahoo.com
4FloydVolkman60Kyle_Witting@yahoo.com
5GlennLittel55Vladimir.Bruen31@hotmail.com
6AlvertaGibson30Jaeden_Hermann78@gmail.com
7BrandoMurphy-Kassulke35Astrid_Nader85@gmail.com
8BradyRitchie27Lavern49@hotmail.com
9ShanonHyatt33Cleta.Langworth32@gmail.com
10GuillermoKessler56Austyn.Paucek@gmail.com
11MarianWard44Omar82@yahoo.com
12AshtonQuitzon58Paxton_Mohr47@gmail.com
13BillyKautzer41Demond_Flatley@gmail.com
14ZionHodkiewicz40Jalyn.Stracke60@yahoo.com
15BufordWisoky40Yasmine_Hartmann24@yahoo.com
16LoriKessler48Pearline.Herzog58@gmail.com
17RosalindHalvorson44Kirsten_Feest25@gmail.com
18KentHermiston27Jaylen.Hand40@gmail.com
19ZettaJakubowski29Emelia.Gleichner@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
10ClarkCrist62Mercedes.Howell43@yahoo.com
11NicholeReinger55Lee.Adams@gmail.com
12BryantFunk28Kristin_Smitham38@gmail.com
13CaleJohns36Megane.Krajcik@hotmail.com
14MontyLueilwitz56Estell53@yahoo.com
15JohnnyWyman25Ignatius_Feil@yahoo.com
16ErnieLittel26Jovan.Batz-Bashirian9@yahoo.com
17KatrineQuigley54Pasquale.Herman@gmail.com
18BerylLowe49Fern.Bartell@hotmail.com
19DrakeWilderman46Milford_Kris7@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0AshleeLittle51Chandler86@yahoo.com
1ReinaEffertz49Kyla28@gmail.com
2PatrickHaley32Malachi82@gmail.com
3LessieDietrich62Andrew.Kris-Hermann57@gmail.com
4LuraWeissnat50Walter.Schmeler54@hotmail.com
5TremayneMurray48Kaya.Weimann@gmail.com
6CoyMills47Jacob_Johnson@gmail.com
7YesseniaWilliamson19Karine23@gmail.com
8DarrinFeeney41Charles85@yahoo.com
9JohnCole65Amira.Schamberger57@hotmail.com
10BerryKunze53Terri.Mills53@yahoo.com
11KatlynCorkery40Mina98@hotmail.com
12JaydeMueller36Ronny_Berge27@gmail.com
13RuthieKeeling22Justina.Hirthe@gmail.com
14MadelynnJones58Jairo3@gmail.com
15EribertoKlein52Lisandro_Greenfelder@gmail.com
16GailPaucek62Amari26@yahoo.com
17MortimerSwaniawski-Champlin22Dayna.Runte@hotmail.com
18ShannonOndricka47Sergio.Wolff@gmail.com
19TayaSwift22Orlando.Durgan@gmail.com

Control Pagination

idfirstNamelastNameageemail
0JaniceZieme59Bernard_McClure@yahoo.com
1CiaraNader58Shirley_Haag78@yahoo.com
2AntoneRolfson-Nolan54Gerard77@yahoo.com
3ToreyBechtelar46Myles_Hills@gmail.com
4JanKeeling55Corene.Sipes@yahoo.com
5AllieWindler35Katherine_Vandervort22@gmail.com
6JosiahBartell29Toney71@hotmail.com
7BethelBrown42Arnold.Witting48@gmail.com
8RoselynTowne29Jamey.Kilback@yahoo.com
9AlexandrineHyatt50Miguel54@yahoo.com
10MonserratGusikowski64Ahmad49@gmail.com
11KelsiFlatley50Alana.Volkman@gmail.com
12LorenzoHerzog31Becky37@hotmail.com
13SedrickMurazik42Natasha.Kunze-McDermott@yahoo.com
14ValerieBauch34Zoe76@gmail.com
15JordiRunte35Kylee.Beatty4@hotmail.com
16ElodyFeeney22Rahul_Johns@yahoo.com
17KobyArmstrong40Emmanuelle.Lowe@yahoo.com
18ErnestineThiel54Justice72@hotmail.com
19EliseBreitenberg50Kavon.Satterfield@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0KennethReilly63Jeanne44@yahoo.com
1MetaHagenes-Yundt55Maurice88@hotmail.com
2KearaConn26Milan.Baumbach@gmail.com
3CassandraKuvalis34Abigayle66@hotmail.com
4AlfredWiza24Coralie70@yahoo.com
5NewellBarrows26Enrique.Sawayn64@hotmail.com
6JulianBauch51Emelie55@hotmail.com
7MarquesAltenwerth52Izabella65@hotmail.com
8MurlZboncak62Elody_Krajcik@gmail.com
9SkyeKuphal31Leonard62@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
0MartineFlatley54Jacynthe.Toy73@gmail.com
1CamillaPacocha48Foster_Boehm@hotmail.com
2CotyHowell43Danyka.Hamill27@gmail.com
3PenelopePowlowski-Ankunding29Freddy.Smitham-Prohaska61@gmail.com
4JaylinBogisich27Titus_Reynolds35@gmail.com
5LambertHuel64Providenci_Jacobi@yahoo.com
6BrandyKassulke25Avery_Yundt@hotmail.com
7BeauEmard43Bria.Macejkovic@yahoo.com
8RahsaanSchulist31Ray_Heathcote47@gmail.com
9KamrynBruen52Ward_Ward72@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0BlancheTurcotte30Oleta28@hotmail.com
1ConorSpencer27Margret_Langosh86@gmail.com
2XavierWalter58Judd.Bergnaum51@gmail.com
3LaneRatke25Sidney.Wyman@hotmail.com
4AltheaBergstrom45Nash_Mertz70@yahoo.com
5ClayGoodwin32Oceane.Harvey@yahoo.com
6HumbertoOlson40Myra_McLaughlin@yahoo.com
7LeliaWisoky24Garry5@gmail.com
8CrystalJerde43Damian.Wintheiser@yahoo.com
9EleonoreLakin61Kristen.Blick@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0JacksonPagac44Camren.Koss@yahoo.com
1JonatanWalker55Shemar_Jacobs@yahoo.com
2GilbertoBogan19Angela.Mayert6@gmail.com
3DevynYundt33Amaya78@hotmail.com
4EugeniaRyan-Schultz20Elissa44@yahoo.com
5MarvinBarton34Candido73@yahoo.com
6WinnifredConroy24Aubrey.Crist96@yahoo.com
7KiannaStehr22Lauretta.Donnelly@hotmail.com
8AdrienHagenes22Jakob_Bartoletti@gmail.com
9AnnamaeTorphy39Mack.Oberbrunner-Quitzon@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0CoyKeeling42Hazel.Schumm@yahoo.com
1NealOsinski63Ambrose0@gmail.com
2EmersonProhaska60Rufus.Zboncak61@gmail.com
3LauryHeaney39Jennie.Russel@gmail.com
4JarvisBartoletti22Kristian76@hotmail.com
5MedaRutherford43Jeffrey31@gmail.com
6ClaudineKerluke54Cecilia_Spinka@gmail.com
7StephanieFay42Crystel_Anderson83@gmail.com
8MaudeZboncak63August.Bogisich67@hotmail.com
9ChristinaHarris28Faye35@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0OmariWisoky37Alyson80@hotmail.com
1MackHilll-Hickle47Wellington56@gmail.com
2MisaelLittle31Maxie.Leuschke@hotmail.com
3CamrynMante55Terri_Carter30@yahoo.com
4SydniDurgan57Kevin41@hotmail.com
5HattieMayer19Dock_Pfannerstill@hotmail.com
6MonroeTrantow29Reilly99@hotmail.com
7ChristineVon44Rodrigo_Koss42@hotmail.com
8RubyeFeest57Veronica.Harber-Lebsack39@gmail.com
9LoganAuer27Jayme.Abernathy@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0KendallHowell56Zoe27@hotmail.com
1EltaSenger43Shelley9@gmail.com
2EloyStracke56Noemie_OKon89@gmail.com
3BaileyHomenick46Matteo74@gmail.com
4BernadetteSchultz42Rogelio_Feest@yahoo.com
5KaleLeffler28Stuart.Friesen@hotmail.com
6CydneySwaniawski35Lilly_Corkery@yahoo.com
7DwightChamplin62Justyn92@gmail.com
8ShayleeWuckert49Vince_Swift49@hotmail.com
9LinnieLindgren60Ila28@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
5ObieRaynor33Baby.Pollich@gmail.com
7ReidSchmeler47Werner.Glover-Homenick@gmail.com
8IsabelleCummings21Estrella.Hoppe@gmail.com
9RafaelZieme47Sabina32@gmail.com

Control Filter

idfirstNamelastNameageemail
0DianneJacobi64Julius95@hotmail.com
1OdessaBatz54Edmond_Renner81@gmail.com
2JaylanHills37Berneice.Hartmann@yahoo.com
3AdellSporer42Romaine_Feil75@hotmail.com
4VergieKeeling51Randy10@gmail.com
5RosemaryKilback43Magdalena.Abernathy@gmail.com
6JavonteQuigley58Tate.Strosin31@hotmail.com
7AbelKirlin36Lisandro_Schoen67@gmail.com
8TodLangosh63Deon72@yahoo.com
9BellSchimmel33Hertha_Lueilwitz@hotmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0MarianHuels61Kellen_Hane-Towne83@yahoo.com
1LudwigDickinson30Michele_Ankunding@gmail.com
2KattieD'Amore25Keanu.Kulas@hotmail.com
3ShanieLang64Eden_Ondricka31@hotmail.com
4KarliWelch30Luisa.Koch@yahoo.com
5FerminConnelly20Zoie2@hotmail.com
6CindyOndricka-Koch47Juliet.Koelpin16@gmail.com
7DaniellaKonopelski48Abbie_Borer@hotmail.com
8DorthaGoodwin60Odessa.Franey@yahoo.com
9RomaineYost31Jessie_Hodkiewicz@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
0FloTurcotte29Madie.Hettinger23@hotmail.com
1CarolineWilderman48Stephen60@yahoo.com
2ClaudieLeannon39Shari_Koepp23@yahoo.com
3MathildeSchmitt42Alexzander82@hotmail.com
4AlbinaLehner33Ibrahim_Cruickshank37@gmail.com
5NancyWillms26Jayce20@gmail.com
6TimmothyTurner57Ali.Will28@yahoo.com
7StacyHarber47Estell19@hotmail.com
8WilfredReynolds-Dare39Lindsay.Jaskolski@yahoo.com
9WinifredSauer64Richard.McClure@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