Table

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

idfirstNamelastNameageemail
0AntoinetteGoyette-Dickinson24Luisa.Johns78@yahoo.com
1KristianUpton-Haley40Sherri.Heller@gmail.com
2AntwonPagac60Kerry67@gmail.com
3DorothyHudson48Alfonso.Deckow20@hotmail.com
4ViolaStiedemann51Domingo_DuBuque@yahoo.com
5BradySchaden24Josephine_Nader@hotmail.com
6WillaLowe64Santa.Swift@gmail.com
7KathlynDonnelly61Margie36@hotmail.com
8ClaytonPouros60Meredith87@yahoo.com
9WoodrowHoeger42Aaron.Carroll-Considine68@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0KristieMcKenzie45Eldred92@hotmail.com
1CatherineStrosin63Jake_Yundt48@hotmail.com
2SkyeWiegand42Jill.Ledner73@gmail.com
3EvanWyman60Walton60@gmail.com
4SadyeRoob19Claire.Stiedemann@yahoo.com
5JimmyHickle55Cesar89@hotmail.com
6NaomiBogisich41Candida_Haley66@hotmail.com
7MackFerry38Ronaldo.Littel@gmail.com
8XavierSkiles43Dangelo35@gmail.com
9KellyDickinson44Rhonda65@gmail.com
idfirstNamelastNameageemail
0KristieMcKenzie45Eldred92@hotmail.com
1CatherineStrosin63Jake_Yundt48@hotmail.com
2SkyeWiegand42Jill.Ledner73@gmail.com
3EvanWyman60Walton60@gmail.com
4SadyeRoob19Claire.Stiedemann@yahoo.com
5JimmyHickle55Cesar89@hotmail.com
6NaomiBogisich41Candida_Haley66@hotmail.com
7MackFerry38Ronaldo.Littel@gmail.com
8XavierSkiles43Dangelo35@gmail.com
9KellyDickinson44Rhonda65@gmail.com

Change Size

idfirstNamelastNameageemail
0SantinoMertz35Rossie_Nolan37@hotmail.com
1IdellaBrakus19Shirley.Friesen76@hotmail.com
2KellyBergnaum36Toby12@hotmail.com
3GarryBeahan39Maudie.Casper@yahoo.com
4ShermanPacocha62Janice55@gmail.com
5KeiraGerlach37Cecil.Nikolaus@hotmail.com
6ClementWiegand64Gwendolyn_Lynch10@hotmail.com
7LincolnHeller27Nathanael1@gmail.com
8MauriceKlocko51Elsie_OConnell80@hotmail.com
9CristianStracke32Natasha53@hotmail.com
idfirstNamelastNameageemail
0SantinoMertz35Rossie_Nolan37@hotmail.com
1IdellaBrakus19Shirley.Friesen76@hotmail.com
2KellyBergnaum36Toby12@hotmail.com
3GarryBeahan39Maudie.Casper@yahoo.com
4ShermanPacocha62Janice55@gmail.com
5KeiraGerlach37Cecil.Nikolaus@hotmail.com
6ClementWiegand64Gwendolyn_Lynch10@hotmail.com
7LincolnHeller27Nathanael1@gmail.com
8MauriceKlocko51Elsie_OConnell80@hotmail.com
9CristianStracke32Natasha53@hotmail.com
idfirstNamelastNameageemail
0SantinoMertz35Rossie_Nolan37@hotmail.com
1IdellaBrakus19Shirley.Friesen76@hotmail.com
2KellyBergnaum36Toby12@hotmail.com
3GarryBeahan39Maudie.Casper@yahoo.com
4ShermanPacocha62Janice55@gmail.com
5KeiraGerlach37Cecil.Nikolaus@hotmail.com
6ClementWiegand64Gwendolyn_Lynch10@hotmail.com
7LincolnHeller27Nathanael1@gmail.com
8MauriceKlocko51Elsie_OConnell80@hotmail.com
9CristianStracke32Natasha53@hotmail.com

Change Color Scheme

idfirstNamelastNameageemail
0RodrickWeimann56Amy.Collins@gmail.com
1AndersonWiegand28Reyes97@gmail.com
2ScarlettSatterfield28Rickey_Fay@yahoo.com
3StephonCollier30Norma8@hotmail.com
4RoslynHills36Webster.Zboncak@yahoo.com
5KaiaPadberg62Jesus4@yahoo.com
6OrvilleWyman31Kara.Waters0@gmail.com
7MyrtleKirlin27Nichole_Kshlerin37@gmail.com
8MikelKessler60Giuseppe_Legros99@hotmail.com
9KristyMills59Madge97@yahoo.com
idfirstNamelastNameageemail
0RodrickWeimann56Amy.Collins@gmail.com
1AndersonWiegand28Reyes97@gmail.com
2ScarlettSatterfield28Rickey_Fay@yahoo.com
3StephonCollier30Norma8@hotmail.com
4RoslynHills36Webster.Zboncak@yahoo.com
5KaiaPadberg62Jesus4@yahoo.com
6OrvilleWyman31Kara.Waters0@gmail.com
7MyrtleKirlin27Nichole_Kshlerin37@gmail.com
8MikelKessler60Giuseppe_Legros99@hotmail.com
9KristyMills59Madge97@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0FurmanGleason40Lucille.Smith72@yahoo.com
1DeliaAbbott24Mikayla.Swift@gmail.com
2SidneyCollins63Joseph57@yahoo.com
3JoanieLowe32June_Hane@hotmail.com
4MelindaLang33Kameron.McGlynn90@gmail.com
5TitoDach-Schuster26Scot.Ward@hotmail.com
6IsabelWalker53Jimmie72@hotmail.com
7LonnieBrakus50Richard_Zemlak43@hotmail.com
8SedrickWiegand41Stacy_Hartmann57@gmail.com
9KristinMonahan22Jeanne65@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0ReneeBecker65Francisco62@hotmail.com
1TyriqueVonRueden43Teresa_Hermann49@hotmail.com
2GabrielleQuitzon32Gustave_Streich84@yahoo.com
3LionelStark39Hal_Mitchell@hotmail.com
4BonnieTreutel26Cassidy97@yahoo.com
5DavinPredovic30Elmira_Boyer@gmail.com
6AydenLueilwitz51Abel_Johnston44@yahoo.com
7HectorSchumm62Jeremiah_Ritchie@gmail.com
8TerryStiedemann45Luciano76@gmail.com
9KyleMacejkovic23Ashley45@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0CesarRoob55Sonia.Lemke@gmail.com
1IsraelMoore26Queenie40@gmail.com
2BradleyGislason57Brooks_Stiedemann23@gmail.com
3DeweyJohnson63Ryan91@yahoo.com
4KarsonCrist24Terrell_Windler@gmail.com
5LeonoraCassin27Bradford.McDermott@gmail.com
6KayceeSkiles48Sherri47@gmail.com
7JanisTerry36Chelsie.Volkman@hotmail.com
8AlanBrakus19Emilio.Hand@gmail.com
9MalachiCarroll31Alanis.Fritsch78@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0JeraldStiedemann65Beverly38@yahoo.com
1AlbertHarber19Essie.Bergstrom@yahoo.com
2EdwinCormier59Alta60@gmail.com
3ClaudeHudson54Susana.Ruecker@gmail.com
4AlRutherford33Andres_Hintz@gmail.com
5JosefinaKuphal60Lorraine_Littel@yahoo.com
6MitchellJones51Carla_Russel23@gmail.com
7ByronGerlach51Fletcher_Reichel@yahoo.com
8TatumBednar22Jonatan.Schultz@yahoo.com
9ErikaKeeling64Tina34@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0DawnAdams20Marion41@gmail.com549.213.7717 x15384useractive12/14/20259/4/2025
1HelgaWolf36Hubert_Haag@yahoo.com281.498.1423 x9672useractive6/26/202512/31/2025
2MarilynMorar59Janet_Lueilwitz@gmail.com(309) 235-3025userinactive6/17/20257/18/2025
3LynetteJenkins46Casey7@gmail.com(513) 564-3708 x948adminactive7/19/20252/22/2026
4GenevieveHuel40Concepcion.Anderson29@gmail.com1-371-320-3114 x56285adminactive4/25/20258/19/2025
5JudsonHaag51Darren.Okuneva@yahoo.com388-272-7792useractive2/20/20264/9/2025
6DamonLindgren47Margarita.Schimmel89@hotmail.com1-344-351-3592 x459admininactive3/3/202610/5/2025
7WilliamDeckow31Gunner_Kautzer@hotmail.com(643) 905-2818useractive2/13/20263/5/2026
8ChadKonopelski37Lorraine_Kuhn@hotmail.com(867) 486-4078 x86072userinactive10/3/20251/3/2026
9JordiHaag36Lillian60@hotmail.com(680) 346-4947userinactive6/1/202512/7/2025

Header Groups

iduser
nameageemail
firstNamelastName
0DennisOlson46Lenny.Shields@yahoo.com
1AlfonsoWuckert33Darrell_Koss20@gmail.com
2BryanSchmeler53Layla.Corkery@gmail.com
3RaquelHammes-Murphy25Eddie.Lind-Mills@hotmail.com
4EmmieWard57Traci25@gmail.com
5MauriceMosciski43Bridget56@hotmail.com
6ShanonSchneider60Tiana.Johnston79@yahoo.com
7KameronKertzmann34Jeanne.Auer@gmail.com
8MozellAuer19Troy_Auer62@yahoo.com
9LillianBotsford46Greg_Frami-Fay@gmail.com
iduser
nameageemail
firstNamelastName
0JennaBaumbach58Lana.Cassin36@gmail.com
1EloiseNitzsche22Leigh1@gmail.com
2MellieHeller62Joshuah_Schiller4@gmail.com
3DanielAbernathy20Dasia_Kling@gmail.com
4GusRutherford21Nina_Langosh@gmail.com
5AntoniaBartoletti24Jaclyn29@gmail.com
6SydnieWilderman60Arnulfo17@hotmail.com
7KylieBergnaum38Robert_Deckow18@gmail.com
8CourtneyMraz56Jeanette_Jones34@yahoo.com
9OraBarton53Al_Kemmer@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0HoracioRuecker63Stanley34@yahoo.com
1LaurianeCormier54Letitia.Howe37@hotmail.com
2RosalieKonopelski37Alayna.Rippin56@gmail.com
3PhoebeBruen32Miguel_Mayert@gmail.com
4WmCronin24Ottis_Shanahan5@hotmail.com
5AngelSchultz38Josephine.Aufderhar98@hotmail.com
6BlancheJacobs56Pauline_Jast@gmail.com
7EleanoraHickle50Dennis.Wehner-Medhurst33@yahoo.com
8MakennaRoob28Jose.Quigley@yahoo.com
9WatsonJast43Fernando34@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
0JimMiller18Pamela_Rogahn@gmail.com
1NicholasO'Hara50Maryann_Wolff25@yahoo.com
2CraigFahey41Lenora5@hotmail.com
3SusanaFerry33Martine35@yahoo.com
4GailHowe24Douglas_Kassulke-Conn81@hotmail.com
5DoreenKoepp34Javon_Skiles@hotmail.com
6MerleHoeger25Christina.Haag16@gmail.com
7CharleyMcKenzie24Mikayla_Kilback@yahoo.com
8SusannaRippin34Rene.Kuhlman9@gmail.com
9LexusRunolfsdottir-Lueilwitz53Hortense_Goodwin59@hotmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0JasonMann60Myra30@hotmail.com
1LamarChamplin60Geoffrey77@gmail.com
2GarrisonHuels52Ruby92@gmail.com
3DwayneKreiger41Lexi.Lesch@gmail.com
4ErikRath40Clementine89@gmail.com
5BernadineBeier-Price64Fleta_McCullough59@hotmail.com
6AurelieDonnelly37Jesus7@hotmail.com
7JohnsonRohan47Chelsea_Lindgren62@gmail.com
8BenjaminHudson63Clarissa.Windler6@yahoo.com
9JoanneMitchell23Caden_Spinka@hotmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0JakobReinger31Tricia.OReilly88@hotmail.com
1JackieWill57Laverna_Botsford@hotmail.com
2EliezerKub39Holly.Feest87@yahoo.com
3OraWitting36Jimmie78@gmail.com
4JackieO'Kon26Fleta_Jacobi68@gmail.com
5KentKutch21Percy69@hotmail.com
6DouglasHudson61Madilyn1@gmail.com
7LelaRowe18Emilie_Stamm39@yahoo.com
8LouiseJenkins56Halie67@yahoo.com
9WendellGoldner-West48Gordon18@hotmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
4GarnetKuhic62Ricardo.Bode88@hotmail.com
2KathyKiehn58Camille_Kassulke21@hotmail.com
3BobbyDibbert51Libby.DAmore83@gmail.com
8HelenBlick45Chelsea_Crooks7@gmail.com
0MyronLubowitz36Aleen.Marvin@yahoo.com
6MackLebsack35Hugh_Breitenberg8@hotmail.com
9CathrinePadberg33Yolanda_Braun@hotmail.com
5AbigailHeaney25Lula41@hotmail.com
1LouveniaBradtke20Lysanne_Leuschke86@hotmail.com
7ErikaKovacek18Gertrude.Jenkins@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0JohnnieHessel43Saige64@yahoo.com
1ClovisOberbrunner38Kyle52@gmail.com
2JarrodHalvorson21Aylin_Mueller@hotmail.com
3AbdielRomaguera44Charles_Klocko69@gmail.com
4TrinityPfeffer49Doug.Miller@yahoo.com
5PatsyBalistreri45Emma_Walter@hotmail.com
6EliezerBergstrom19Hector.Dietrich@hotmail.com
7LanaMraz60Frances.Stoltenberg16@hotmail.com
8PattieReichert28Nancy81@hotmail.com
9AgnesKuvalis34Van_Kutch84@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0KobeErnser20Gunnar_Legros@yahoo.com
1EmilieCasper-Hand36Roxanne35@hotmail.com
2WilfredHegmann29Michele_Schuster96@hotmail.com
3AmberCrist56Lenore66@hotmail.com
4BrayanHackett27Jacob43@yahoo.com
5TyreeKuhic23Kallie20@gmail.com
6DeclanBaumbach21Laurence_Friesen94@yahoo.com
7BrionnaKuhlman46Jaime86@gmail.com
8PiperAbshire45Mortimer_Swift31@yahoo.com
9EmilianoKreiger53Sean_Volkman@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0AlveraRenner63Jacques37@gmail.com
1FannieKuphal40Giovanna_Braun20@yahoo.com
2ElliotMurphy53Vera.Fadel50@hotmail.com
3DevynWaters37Otha37@hotmail.com
4DamonSchoen48Henry.Quitzon63@yahoo.com
5AlessandroHuel41Addison50@gmail.com
6MarcelinoKovacek47Santa_Purdy54@hotmail.com
7MarciaLangworth45Rick.Bernier9@yahoo.com
8EffieSchamberger26Javier_Kemmer@hotmail.com
9SammyPowlowski-Purdy26Emanuel79@gmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0JazmynSimonis50Cecil.Fay@gmail.com
1NettieMitchell43Angelo_Willms33@hotmail.com
2SharonLakin37Gabe_Roob@gmail.com
3GarrisonWilderman28Laurie0@gmail.com
4DorothyFrami43Darnell84@yahoo.com
5VickyParisian24Lucy_Senger41@hotmail.com
6QuintonBayer47Marilyn19@hotmail.com
7MarcoWilderman28Alonzo.Lesch@hotmail.com
8ErinMarks53Jan_Kub-Murray@yahoo.com
9LillianBlanda27Dallas_Buckridge@gmail.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
0WillieBraun65Johnathan.Brakus77@gmail.com
1BraxtonAnkunding19Emerson.Nolan-Johnston@hotmail.com
2BillieDurgan29Russell49@yahoo.com
3TeresaOsinski58Erin_McCullough@hotmail.com
4AngelinaDare56Tracy_Schmitt-Leannon52@yahoo.com
5ElisaFraney31Lila_Lakin@yahoo.com
6EdSchmitt-Waters40Katherine.Conroy47@gmail.com
7TerrenceBorer21Shelly.Doyle@gmail.com
8CarmineSchowalter42Agnes_Treutel@hotmail.com
9GarrySmith46Judith.Russel@gmail.com

Control Sorting

idfirstNamelastNameageemail
0DellaLeuschke44Tanya_Conn@yahoo.com
1ClaireDickens31Kathy.Abshire@yahoo.com
2EdwardBeer57Isaiah23@yahoo.com
3TianaLedner23Jodi_Stark@gmail.com
4EthelHills58Lilyan18@hotmail.com
5LydiaWillms44Isaac45@hotmail.com
6CameronFrami39Kitty.Larkin20@gmail.com
7ChaimLittle44Jaida_Corkery24@yahoo.com
8LoreneWilkinson55Clay48@yahoo.com
9DellaDonnelly47Maureen_Koelpin@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
0DoraReynolds59Tad53@gmail.com
1LolaWalker49Hermina_Jerde11@yahoo.com
2RickSenger64Bruce_Bayer38@hotmail.com
3RicardoDare54Dixie68@gmail.com
4DylanBayer57Vidal73@gmail.com
5IrvingKoelpin42Baron_OKon@gmail.com
6EnolaBogan58Anderson_Hoppe-OKeefe@yahoo.com
7MarvinGrady21Linda94@hotmail.com
8SabrinaBergnaum37Nya_Shields93@hotmail.com
9AmeliaGulgowski56Steve10@gmail.com
10MichaelStanton20Otis68@gmail.com
11JustynRau48Alva51@yahoo.com
12FrancisKovacek50Lula_Ankunding-Rosenbaum@hotmail.com
13AlmaKlein65Doug_Jaskolski@yahoo.com
14FrankieMann63Judith.Jakubowski-Wisoky14@hotmail.com
15EulaLittel38Calvin22@yahoo.com
16RosalynJacobs42Earl_Trantow@gmail.com
17FredaMurazik36Darrin_Hoeger38@gmail.com
18DawsonKeebler-Schowalter20Malcolm.Lockman@yahoo.com
19MertiePacocha65Elsa.Konopelski-Keeling47@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
10BradfordHessel29Dessie84@yahoo.com
11AndreanneKassulke-Watsica50Carrie77@hotmail.com
12SandyMcClure41Don26@hotmail.com
13KristaUllrich64Kathleen.Brekke@yahoo.com
14LynneRitchie33Kennedi.Block@gmail.com
15HarmonyBogan29Florencio58@hotmail.com
16JaredRau59Gene.Veum67@yahoo.com
17DaisyWolf47Franklin.Hyatt@yahoo.com
18MadelynDicki59Luz_Harvey57@hotmail.com
19ElmerLindgren33Elmer60@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0MelanyCorwin63Emilia.Halvorson46@yahoo.com
1AlejandroReichert24Katherine48@gmail.com
2ErikaRyan55Aaliyah_Kris81@yahoo.com
3MichealGutkowski38Libby_Beer74@yahoo.com
4KaliBatz57Diego0@gmail.com
5GlendaSchowalter33Presley1@hotmail.com
6SusieGusikowski-Morar33Frankie_Koss67@hotmail.com
7OrieRatke33Eunice97@yahoo.com
8EloyKerluke28Sheldon_King41@yahoo.com
9KimWitting56Herminio_Boyer@hotmail.com
10MarieParker25Trevor.Berge92@hotmail.com
11JohnathanHessel27Joan.Hilll@yahoo.com
12JamieMann49Jarrell.Fisher10@hotmail.com
13LoisMuller48Orion_OKeefe20@yahoo.com
14AdelleSenger32Fanny_Beatty@yahoo.com
15KaleDouglas61Genevieve97@yahoo.com
16MaceyJakubowski33Judge_Paucek@hotmail.com
17BryantStracke21Timothy_Lubowitz@hotmail.com
18ErnaWeissnat37Emily.Miller29@gmail.com
19CaseyMurray30Moises_Hand@gmail.com

Control Pagination

idfirstNamelastNameageemail
0AlexZieme18Fay_Dietrich@gmail.com
1ClayBruen49Ernest.Doyle@hotmail.com
2RobinSchaefer34Gene57@yahoo.com
3KarinaLarson44Homer_Bogan51@yahoo.com
4JoanRussel37Dallas68@gmail.com
5NarcisoBeatty29Eve3@gmail.com
6VeronicaLindgren18Dagmar_Pfeffer27@yahoo.com
7CaleGoodwin25Patrick_Schamberger@gmail.com
8OrloWisozk43Jesus61@yahoo.com
9AmandaLindgren52Latoya_Grady6@gmail.com
10AlanPrice42Robert55@yahoo.com
11BurleyHarris46Ernesto78@hotmail.com
12ElenaHessel53Theo_Hilll91@gmail.com
13HaroldGerhold61Roland51@gmail.com
14JamesWaelchi44Daisy80@gmail.com
15CandaceStehr50Joel_Casper53@yahoo.com
16EldridgeCarter38Woodrow_Barrows@gmail.com
17JuliaLakin44Fred.Kuhic@yahoo.com
18HarrietStehr62Angel3@gmail.com
19ReginaGrant21Sienna_Jerde4@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0GuiseppeStracke21Samuel_Wiza83@yahoo.com
1DemetrisAdams34Ole.Lynch@yahoo.com
2KatherineRaynor32Bettie_Thiel@hotmail.com
3ConstanceSchultz39Janet3@hotmail.com
4JimJohnson46Marie48@yahoo.com
5MiguelParker58Haley_Kutch-Turcotte68@gmail.com
6JosephineEbert58Christop.Torphy@yahoo.com
7JoelBoehm20Mable.Fay@hotmail.com
8OliveWilderman58Cielo_Sauer-Schinner@gmail.com
9LaurianneRutherford60Coralie.Erdman34@gmail.com

Set Default Selected Rows

To set the default selected rows, set defaultRowSelection to an object with the index of the data as the key.

idfirstNamelastNameageemail
0CarmenSchroeder26Gerardo_Koepp@yahoo.com
1HadleyLarkin45Ambrose49@yahoo.com
2AngieKlocko30Levi_Schamberger@yahoo.com
3MarcosSteuber32Emmet46@hotmail.com
4NinaLind23Kevin13@hotmail.com
5EdithMetz51Oleta.Gleichner42@gmail.com
6NelsonBoehm18Nathaniel.Gottlieb@hotmail.com
7EstellLubowitz19Rex.Leannon@gmail.com
8LoyCarroll64Candace_Ullrich42@gmail.com
9CharleyCremin-O'Conner20Beth10@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0JaredTreutel65Blanche.Von@hotmail.com
1ChristopErdman52Orville_Cartwright@hotmail.com
2JayHand38Kathleen30@gmail.com
3EssieLarkin51Jean.Cartwright@gmail.com
4ErikaStehr35Horace_Pouros56@hotmail.com
5BenjaminBrakus50Samantha31@hotmail.com
6JamesKoepp48Sean_Huel@yahoo.com
7CaseyConsidine21Bill_Langosh@hotmail.com
8DonaldGerhold62Rylee.VonRueden9@hotmail.com
9JettieHartmann62Derek.Gerhold29@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0KristieCronin28Cora_Beahan36@gmail.com
1KristieSmitham33Andre_Dickens@hotmail.com
2IdaPagac34Carmine54@hotmail.com
3KathleenGreenholt19Fernando_Ruecker@gmail.com
4TamaraMcLaughlin25Martin91@gmail.com
5BlazeHudson39Rebecca_Romaguera@hotmail.com
6HarveyMarks47Wilber_Wuckert@yahoo.com
7StaceyGulgowski63Geoffrey53@yahoo.com
8EmanuelKlocko58Vera.Boehm69@yahoo.com
9AnnetteKub39Miguel.Gutkowski89@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0EthanDouglas23Pat.Heathcote@hotmail.com
1JustinBeahan20Moses_Kohler@yahoo.com
2FaithTorp41Luigi.Ebert@yahoo.com
3JacquesHuels63Forrest32@yahoo.com
4BrendaGottlieb51Chase.Hauck36@yahoo.com
5ScotKiehn20Chase_Nicolas77@gmail.com
6OctaviaRuecker44Keshawn_Beahan@gmail.com
7RolandoHeaney35Leticia10@hotmail.com
8AdaSchoen41Patrick7@gmail.com
9MarkKassulke42Wanda.Weissnat84@yahoo.com

Control Row Selection

idfirstNamelastNameageemail
0MarioAufderhar48Celia.OHara@hotmail.com
1VioletSchultz24Mathew.Langworth96@hotmail.com
2CleoRobel26Hillard_Dicki@yahoo.com
3BoydLubowitz35Jeffery62@gmail.com
4TheodoreGerhold43Susan_Spinka94@gmail.com
5DarylKoss40Adrienne21@hotmail.com
6ChristaTrantow49Tessie58@gmail.com
7GregWeber26Sheryl_Moen@gmail.com
8FranciscoRowe41Virginia30@yahoo.com
9DelfinaFunk57Sidney.Carter61@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0BetsyOndricka63Polly18@gmail.com
1ElbertConnelly32Noah96@gmail.com
2EsperanzaTremblay43Erin_Trantow34@gmail.com
3MichelSpencer30Henrietta32@hotmail.com
4SantiagoBergnaum62Gustavo_Cruickshank@gmail.com
5LaverneCollier64Jasmine72@gmail.com
6MitchellMonahan63Lucia.Fahey@yahoo.com
7ArnoldBashirian39Cristobal62@gmail.com
8AbelSchulist64Blanche_Wunsch78@yahoo.com
9MarjorySatterfield25Allan97@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
1MiguelKuhlman34Donald.Crist@gmail.com
5JoQuigley42Desiree_Rosenbaum94@gmail.com
9GregoriaFadel59Paula.Beahan@gmail.com

Control Filter

idfirstNamelastNameageemail
0DavionBogan-Simonis20Norman_Wiegand@yahoo.com
1MicheleTorp60Jackie_Green12@gmail.com
2ModestaHand30Darlene_Paucek@gmail.com
3GinaMcClure43Rick.Murazik42@yahoo.com
4CharlesSchmitt39Carmen.McGlynn39@gmail.com
5AmeliaLedner52Julie.Dietrich@gmail.com
6MarinaBogan54Lisa_Fisher51@yahoo.com
7LaishaWaters41Alyssa4@yahoo.com
8WillKunde64Kay69@hotmail.com
9JoeyStiedemann52Kayley99@hotmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0AndyMarks22Maegan71@hotmail.com
1GregHowell58Margie.Baumbach3@yahoo.com
2LaurynRoberts47Sophia36@hotmail.com
3IsaacWillms44Alexandro.Dickens47@yahoo.com
4ElisaGrant58Bernadine.Bradtke75@gmail.com
5LloydFlatley27Sylvester94@gmail.com
6AnnCollins21Cristal_Senger52@hotmail.com
7FelixRice21Kaylin.Anderson45@yahoo.com
8KarlieKautzer63Jazmyne.Stoltenberg@hotmail.com
9AndrewHilll39Hazel.Wisoky@yahoo.com

Change Column Resizing Method

By default, the column resizing timing is changed while dragging. If you want to change it when the drag is finished, set columnResizeMode to "onEnd".

id
firstName
lastName
age
email
0IrvinBrakus52Lolita_Durgan40@gmail.com
1LeoWaelchi37Horace.Reynolds@hotmail.com
2JazlynNitzsche45Mittie75@hotmail.com
3RobertMcCullough46Chris.Davis52@gmail.com
4RonaldHegmann25Sheryl_Reilly@gmail.com
5SilasSchimmel43Cleta.Ortiz17@hotmail.com
6BertSchimmel-Schinner38Jamaal.Batz48@hotmail.com
7DorisHerzog52Kari.Rowe@hotmail.com
8AmbroseCasper22Myles.Gibson17@hotmail.com
9DeannaFranecki65Dominick_Connelly82@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

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

Stat

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

NativeTable

NativeTable is a component for efficiently organizing and displaying data.

PieChart

PieChart is a component for drawing pie charts to compare multiple sets of data.

RadialChart

RadialChart is a component for drawing radial charts to compare multiple sets of data.

RadarChart

RadarChart is a component for drawing radar charts to compare multiple sets of data.

DonutChart

DonutChart is a component for drawing donut charts to compare multiple sets of data.

AreaChart

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

ComposedChart

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

Uses Components & Hooks