Table

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

idfirstNamelastNameageemail
0LayneGutkowski18Ernest29@yahoo.com
1MarquisSanford30Anissa_Weimann@hotmail.com
2VivaGoyette25Cassidy.Rosenbaum@hotmail.com
3JeffryBosco29Lonnie_Kassulke@hotmail.com
4VinnieDickens38Dayne.Boyle@hotmail.com
5CandiceSchowalter-Schumm43Alexandria_Wunsch@yahoo.com
6TianaAufderhar56Shany_Effertz78@gmail.com
7AnikaOsinski38Mavis24@hotmail.com
8HarveyCollins24Jaylen3@yahoo.com
9KevinKuhlman25Ann_Wiegand@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0JeanKoch65Jed_Kub88@yahoo.com
1ZackeryLuettgen18Marcus.Lowe68@hotmail.com
2DejonWhite55Sabina.Keeling60@yahoo.com
3LeaHegmann60Nelson37@yahoo.com
4ElinoreCummerata59Jeanne.Willms@gmail.com
5MargieGleason60Fatima_Turner59@hotmail.com
6NathanialPacocha49Russell.Gerlach14@hotmail.com
7MarilynJohnson25Modesto17@yahoo.com
8ClintonJenkins45Trenton_Halvorson@gmail.com
9KatrinePouros27Jayden53@yahoo.com
idfirstNamelastNameageemail
0JeanKoch65Jed_Kub88@yahoo.com
1ZackeryLuettgen18Marcus.Lowe68@hotmail.com
2DejonWhite55Sabina.Keeling60@yahoo.com
3LeaHegmann60Nelson37@yahoo.com
4ElinoreCummerata59Jeanne.Willms@gmail.com
5MargieGleason60Fatima_Turner59@hotmail.com
6NathanialPacocha49Russell.Gerlach14@hotmail.com
7MarilynJohnson25Modesto17@yahoo.com
8ClintonJenkins45Trenton_Halvorson@gmail.com
9KatrinePouros27Jayden53@yahoo.com

Change Size

idfirstNamelastNameageemail
0LindsayRosenbaum28Juwan_Lubowitz27@hotmail.com
1KrisChamplin50Kassandra_Baumbach@hotmail.com
2DarrionFlatley34Chance.Tremblay86@yahoo.com
3AlvahLakin33Verdie_Schiller47@hotmail.com
4SincereFeeney53Mildred64@hotmail.com
5CameronKozey19Florencio_Denesik31@gmail.com
6CadeConnelly31Wilford58@hotmail.com
7SidneyHagenes51Alexis_Bartoletti35@gmail.com
8TraciHowe62Karianne22@yahoo.com
9ElaineMosciski-Kub63Alton_Batz@yahoo.com
idfirstNamelastNameageemail
0LindsayRosenbaum28Juwan_Lubowitz27@hotmail.com
1KrisChamplin50Kassandra_Baumbach@hotmail.com
2DarrionFlatley34Chance.Tremblay86@yahoo.com
3AlvahLakin33Verdie_Schiller47@hotmail.com
4SincereFeeney53Mildred64@hotmail.com
5CameronKozey19Florencio_Denesik31@gmail.com
6CadeConnelly31Wilford58@hotmail.com
7SidneyHagenes51Alexis_Bartoletti35@gmail.com
8TraciHowe62Karianne22@yahoo.com
9ElaineMosciski-Kub63Alton_Batz@yahoo.com
idfirstNamelastNameageemail
0LindsayRosenbaum28Juwan_Lubowitz27@hotmail.com
1KrisChamplin50Kassandra_Baumbach@hotmail.com
2DarrionFlatley34Chance.Tremblay86@yahoo.com
3AlvahLakin33Verdie_Schiller47@hotmail.com
4SincereFeeney53Mildred64@hotmail.com
5CameronKozey19Florencio_Denesik31@gmail.com
6CadeConnelly31Wilford58@hotmail.com
7SidneyHagenes51Alexis_Bartoletti35@gmail.com
8TraciHowe62Karianne22@yahoo.com
9ElaineMosciski-Kub63Alton_Batz@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0JaydenBoyer42Selena.Bruen53@yahoo.com
1CarloMcLaughlin-Welch39Verona51@yahoo.com
2LornaOsinski39Myriam52@hotmail.com
3AlexKuphal20Vella54@hotmail.com
4DomingoWalker27Herminia67@hotmail.com
5YvetteRolfson46Angelo.Hintz78@gmail.com
6AlyceNitzsche62Turner.Jacobi88@gmail.com
7JalynAbshire40Piper_Kirlin@gmail.com
8RayBayer28Fabiola.Marks@hotmail.com
9JohnpaulFisher43Katlynn29@hotmail.com
idfirstNamelastNameageemail
0JaydenBoyer42Selena.Bruen53@yahoo.com
1CarloMcLaughlin-Welch39Verona51@yahoo.com
2LornaOsinski39Myriam52@hotmail.com
3AlexKuphal20Vella54@hotmail.com
4DomingoWalker27Herminia67@hotmail.com
5YvetteRolfson46Angelo.Hintz78@gmail.com
6AlyceNitzsche62Turner.Jacobi88@gmail.com
7JalynAbshire40Piper_Kirlin@gmail.com
8RayBayer28Fabiola.Marks@hotmail.com
9JohnpaulFisher43Katlynn29@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0ClaudSanford41Arnold56@hotmail.com
1CarmelaWatsica54Wilhelmine12@hotmail.com
2DustyTreutel36Justin_Schmeler@hotmail.com
3CarmelaWill50Lisandro_Bergstrom79@gmail.com
4BurdetteBogisich29Maida.Kautzer46@yahoo.com
5OnaTowne29Emmy.Robel86@yahoo.com
6AbdielBreitenberg50Erling.Muller@gmail.com
7MakaylaBreitenberg43Golda_Hahn-Johns@yahoo.com
8CristopherDeckow38Alicia.Botsford93@yahoo.com
9JarretMorar47Tomasa.Oberbrunner19@hotmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0DennisBlock65Leatha.Monahan10@gmail.com
1JohannaSanford34Terrance39@gmail.com
2ReneeBraun44Rebekah_Schroeder35@gmail.com
3CortezSenger19Jason.Hegmann@gmail.com
4RandolphGulgowski57Terry_Bosco@hotmail.com
5KathryneJohnston20Adriana83@gmail.com
6EzekielWillms47Isabel17@hotmail.com
7MilanCollier38Abner28@yahoo.com
8GuidoAuer63Dimitri94@hotmail.com
9KeithBauch47Bud.Hauck27@gmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0TheronTreutel47Colin97@yahoo.com
1RoryLeannon38Sophia_Schuster@gmail.com
2HiltonBins-Jacobson37Felipa.Hamill@hotmail.com
3EbonyEbert34Chadrick36@yahoo.com
4LukasMacGyver62Diane_Labadie@yahoo.com
5DixieKertzmann23Jeromy51@gmail.com
6AveryFriesen44Claudie_Daniel61@hotmail.com
7WillisBailey44Dennis_Mueller88@hotmail.com
8GeorgetteBins-Schmitt57Dee37@yahoo.com
9BirdieDicki44Carole.Breitenberg24@gmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0RosaHalvorson64Dortha.OHara@gmail.com
1JayPfeffer24Georgianna_Nicolas19@gmail.com
2EmanuelKerluke52Sim_Spinka@yahoo.com
3CamylleRolfson26Earl.Willms@yahoo.com
4FritzLockman50Jody_Monahan@hotmail.com
5LennaWilkinson55Scotty_Reilly@gmail.com
6EveBeatty32Vada_Wisozk68@gmail.com
7MarlinFeil31Alycia84@gmail.com
8EllisWintheiser24Nicolas89@hotmail.com
9MathewHeathcote21Haven_Cole@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0HollisFarrell61Gennaro24@hotmail.com363.565.3963 x8338adminactive4/29/20261/30/2026
1GilesDickens64Cleve25@yahoo.com1-671-949-5107 x3064adminactive5/2/20268/28/2026
2NorvalWilkinson29Monique75@gmail.com989-538-3562 x97585userinactive12/10/202512/2/2025
3JaymeBlanda36Nakia93@yahoo.com(942) 951-2925 x0092adminactive11/16/202510/3/2026
4MaryseDeckow27Benjamin.Tremblay69@hotmail.com220-307-1664userinactive9/5/20261/29/2026
5AdeleOndricka62Felipa_Fahey@hotmail.com1-750-470-5498 x648useractive9/19/202610/20/2025
6SherylHagenes40Kamryn_Shields43@yahoo.com1-668-992-2221userinactive10/4/202610/21/2025
7LazaroAnderson48Monroe24@gmail.com(329) 696-5988admininactive12/25/20258/19/2026
8TylerUpton22Marlee_Parisian@yahoo.com(412) 800-0567admininactive7/30/20265/18/2026
9DarrionSatterfield21Horacio.Lynch83@gmail.com1-220-810-9370 x546adminactive3/20/20267/24/2026

Header Groups

iduser
nameageemail
firstNamelastName
0MaceyVonRueden59Everett_Herman50@yahoo.com
1AnnamarieO'Conner-Cassin27Grayson.Schumm15@gmail.com
2EbbaStokes31Hunter_Bogan96@hotmail.com
3CarrollMcCullough46Lamont17@yahoo.com
4KristineHudson33Billie_Balistreri@hotmail.com
5GarnettReichel41Mya89@hotmail.com
6BernieO'Reilly25Dewitt.Cummerata15@hotmail.com
7JessikaWilkinson58Eric_Brown52@yahoo.com
8GloriaBreitenberg28Eriberto87@hotmail.com
9BrannonLueilwitz55Audie_Bailey@gmail.com
iduser
nameageemail
firstNamelastName
0DarrionSchowalter37Matthew.Koelpin87@yahoo.com
1FranciscaConnelly49Destin96@gmail.com
2MoisesGreenholt61Vivianne_Christiansen@yahoo.com
3NoraSipes60Hardy.Balistreri@gmail.com
4MosesNader29Darwin7@hotmail.com
5OmaMiller-Klocko44Eusebio_Steuber@gmail.com
6SimeonKing45Aubrey.Weissnat29@yahoo.com
7EstevanHartmann35Maynard.Funk23@gmail.com
8HillardSpencer31Frederic_Harber6@hotmail.com
9AnahiCollier25Adonis22@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0StephonLegros56Leora80@gmail.com
1FreddieReynolds27Enrico.Jacobs@yahoo.com
2DonaldMarquardt31Casandra_Frami@yahoo.com
3DarwinEmmerich21Jess25@yahoo.com
4DuncanKunze-Little53Luther_Stamm@gmail.com
5LacyKreiger49Melody80@gmail.com
6LouieRomaguera31Mabel25@gmail.com
7RodgerBode48Lyric_Herzog@yahoo.com
8JeradPowlowski39Edison33@gmail.com
9MonserrateStokes20Herta_Rogahn@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
0BennieDach33Hobart_Schneider@gmail.com
1KennedyCassin41Frederik88@yahoo.com
2RochelleLabadie55Lynne54@yahoo.com
3MakaylaCartwright50Verdie36@hotmail.com
4CodyRobel24Layla_Dicki@hotmail.com
5ElodySimonis32Jayce.Schroeder@yahoo.com
6ConnieWiegand20King_Brekke@yahoo.com
7JeanetteKihn27Mya.Brown@gmail.com
8LesleyRau30Marlee_Christiansen@hotmail.com
9PollyCrist61Felix67@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0LisetteHowe49Olen.Emmerich@hotmail.com
1FlorineBeahan39Orville_Haley@yahoo.com
2LuisaAbernathy53Marlee.Funk@yahoo.com
3MurrayCole27Cornell6@yahoo.com
4RebecaCorwin21Tate19@yahoo.com
5CecilTurcotte18Jonathon58@yahoo.com
6BurniceWilliamson27Jeramie.Rogahn65@gmail.com
7JameyHansen19Fabiola52@yahoo.com
8SammieParisian49Hadley59@gmail.com
9JuvenalSpinka28Rachelle3@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0CasandraLesch59Ella.Waelchi@gmail.com
1WavaFeeney19Liam_Zieme14@gmail.com
2CaylaGraham37Tami_Nicolas-Schmidt92@gmail.com
3AlberthaZboncak53Hazle.Spinka@yahoo.com
4KayaLind30Narciso_Hills77@hotmail.com
5MerlKeeling62Winfield_Borer@yahoo.com
6MagnusRatke56Dwayne92@yahoo.com
7MonserrateDaugherty63Rosa.McDermott@hotmail.com
8HollieKassulke-Stehr44Dalton26@gmail.com
9JackyBrakus26Easton47@hotmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
9JavonteKunde64John_Breitenberg72@hotmail.com
1BernadetteProsacco61Stone48@gmail.com
8EmmaKunze60Eliza48@hotmail.com
4RyleeWaelchi59Luella_Kulas@hotmail.com
0RachaelStrosin58Tony.Predovic@yahoo.com
2KatherynCrist54Michelle.Kshlerin97@gmail.com
6StefanBahringer53Freeman81@gmail.com
7EveAbbott45Clayton31@gmail.com
5RhiannaQuitzon40Tressa.Graham68@hotmail.com
3MaiyaGutkowski34Brenda.Powlowski78@gmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0KentonFritsch45Cheyanne_Stroman-Gusikowski80@yahoo.com
1NasirHaley44Elias_Lang-Bailey39@yahoo.com
2BrielleKub30Salvador.Kshlerin51@gmail.com
3PollyHane59Raphaelle21@hotmail.com
4MathewYost53Ollie_Kunde-Lubowitz@gmail.com
5SerenitySpinka49Arianna99@yahoo.com
6OdaDenesik48Lew.Fay49@yahoo.com
7KrystalBode41Halie69@gmail.com
8EmeraldMuller22Nyah.Kohler@gmail.com
9EddieKuhlman19Maybelle13@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0ClarkWunsch41Ford.Sanford@yahoo.com
1RichieKeeling62Opal44@hotmail.com
2TommieSauer38Nestor23@yahoo.com
3CoralieBechtelar40Ronny.Pagac@gmail.com
4AmyaAltenwerth21Jermain_Roob@gmail.com
5ChetWisoky62Samanta_Bednar@gmail.com
6CaterinaMcGlynn48Spencer.Ziemann@hotmail.com
7ClaudineDeckow48Tracy_Reilly21@yahoo.com
8EliseBeatty54Eldora40@gmail.com
9JanieLarkin-Kuhn32Clint.McCullough98@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0RollinPollich30Leann.Ankunding@gmail.com
1PaulineCorwin47Lew.Beatty@hotmail.com
2JeanneWaelchi45Gregoria.OHara1@yahoo.com
3NannieDurgan60Emerson96@yahoo.com
4MaximilliaGleichner40Rowan97@hotmail.com
5HoldenMoore53Kieran_McGlynn@hotmail.com
6LizaBalistreri63Sarai_Steuber@hotmail.com
7AnaNolan53Jacynthe20@gmail.com
8MarcoBaumbach27Vella.Shields@hotmail.com
9PearlieHarris52Gabe8@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0JeromyBaumbach61Ignacio.Bernier35@hotmail.com
1JoelleMacejkovic33Colt_Haag2@hotmail.com
2GastonMueller36Hassie_Cole85@hotmail.com
3SaulMcCullough18Breanna_Kub28@yahoo.com
4ArchibaldDaniel27Lavern38@yahoo.com
5RuthieKuhn28Hilbert.Shields@gmail.com
6AgustinaMurray44Bernard42@hotmail.com
7BabyBeer46Brady39@yahoo.com
8BradMayer62Herbert_Dach@hotmail.com
9AlfonsoKoss36Tad.Schmidt30@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
0MarleyStoltenberg19Olive.Rolfson82@hotmail.com
1RosaleeO'Connell29Oleta.Schaefer25@gmail.com
2D'angeloHowe65Cayla5@yahoo.com
3JudahAbbott21Gabriel68@hotmail.com
4EmmanuelKutch22Milan.Klocko85@yahoo.com
5RoscoeRitchie22Devon_Corkery@hotmail.com
6CamillaHeathcote56Brycen.Cartwright@gmail.com
7LouisConnelly54Ellen.Quitzon29@gmail.com
8MaudSchumm21Gisselle.West99@hotmail.com
9TheoGusikowski25Jerome_Hansen@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0JessikaZieme43Hadley6@yahoo.com
1LeanneO'Hara65Dejon.Schaefer-Blick@gmail.com
2UbaldoBeatty46Catharine87@gmail.com
3DarbyMills50Robin.Schowalter@gmail.com
4GregoriaStrosin59Annabell.Yost@hotmail.com
5ElwynRitchie58Kiara.Koepp@yahoo.com
6ErnaRunte41Owen4@gmail.com
7HerthaMosciski34Filiberto_Conn@gmail.com
8LamontKuhlman61Hipolito.Weimann80@hotmail.com
9KennedyNienow32Henry.Welch87@yahoo.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
0RodneySchultz53German.White@hotmail.com
1MireyaHyatt33Ava.Nolan-Treutel@yahoo.com
2AlethaSchuster53Garett_Larkin52@hotmail.com
3TellyReichel36Toy.Hessel32@hotmail.com
4CyrusJohnston29Yvonne44@hotmail.com
5SylviaRatke32Omari.Schulist55@gmail.com
6AnnamaeSanford53Gabe53@hotmail.com
7DimitriGleason22Jarod_Schroeder@yahoo.com
8CarmenFraney-Heathcote53Mertie.Jacobs26@gmail.com
9DominiqueEffertz30Ressie_Haley@hotmail.com
10ErwinSchmidt61Alvin.Bartoletti@yahoo.com
11ElmoreQuigley60Cordie.Fahey@gmail.com
12BurdetteMedhurst56Kimberly_Cremin@hotmail.com
13FlorineParker62Stacey_Kris76@hotmail.com
14CullenConn50Chelsea.Frami@hotmail.com
15ReillyBode55Victoria.Johns@yahoo.com
16JodyKuvalis61Elda_Powlowski-Dare64@gmail.com
17DarleneErdman35Wilford.Gutmann82@gmail.com
18MaximilliaKris33Blair.Quitzon@hotmail.com
19ClaraZieme39Moriah_Cartwright52@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
10ImmanuelProhaska43Emilio_Renner@gmail.com
11ChloeUllrich40Riley20@hotmail.com
12BeulahErnser57Tyrique_Medhurst@hotmail.com
13DurwardOrtiz-Dibbert43Melissa.Murazik-Walter90@yahoo.com
14TraciWillms21Kayli_Wisozk51@gmail.com
15AshaBruen54Melissa.Quitzon66@gmail.com
16CaroleEmard26Casey21@gmail.com
17AlessandroSchultz60Susan_Bailey62@yahoo.com
18AnnaGrimes50Oda_Huel83@gmail.com
19RosieMacGyver27Destinee_Orn@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0BrianneSchamberger50Sandy_Wunsch@hotmail.com
1ZacheryLockman35Adolph_Okuneva35@hotmail.com
2KassandraLakin54Raphaelle_Dickens@yahoo.com
3AveryQuigley22Wendy_Hand6@yahoo.com
4LysanneHirthe23Leah13@gmail.com
5AgustinHills57Webster_Renner61@yahoo.com
6GerryFraney60Dario_VonRueden@hotmail.com
7RasheedMacGyver29Matilda.Krajcik15@hotmail.com
8OrvilleSchmidt49Arielle75@gmail.com
9JaylinD'Amore31Corbin39@gmail.com
10JolieFlatley30Silas.Collins@hotmail.com
11ElwinCasper19Joann.Kulas41@yahoo.com
12AngelicaRogahn43Van_Brown65@gmail.com
13RamonaGislason50Mittie.Koelpin@yahoo.com
14MetaHills-Skiles44Yvette_Weimann@hotmail.com
15DeweyLeffler34Kasey_Lockman@yahoo.com
16SunnyKemmer33Maximus_Ledner@hotmail.com
17DeltaRitchie41Alessandra10@hotmail.com
18AnnabelStrosin18Ambrose.Huel-Dooley@yahoo.com
19AuroreCorkery50Leonel_Kreiger@hotmail.com

Control Pagination

idfirstNamelastNameageemail
0GisselleGulgowski60Elijah10@hotmail.com
1AdamGrant48Jaden36@yahoo.com
2ElsieKrajcik62Ashlynn.Witting94@yahoo.com
3RuthieDickinson22Velva89@yahoo.com
4ReginaRempel47George8@gmail.com
5BuddyWiegand55Nola23@gmail.com
6BulahBogan56Jany90@yahoo.com
7IvyLebsack19Holden.Purdy2@yahoo.com
8MarieBraun51Adrain.Marquardt@gmail.com
9AlysaZemlak46Nettie.Runolfsdottir@gmail.com
10LaurianeStamm28Itzel_Kulas@hotmail.com
11PearlieJast61Gwen.Langosh@gmail.com
12KevonFunk65Matthew_Ebert@yahoo.com
13CaliLemke51Sandy_Heller@yahoo.com
14PaoloMcLaughlin28Lilian_Senger69@gmail.com
15FlorineFraney-Nicolas65Chelsie41@gmail.com
16EmoryJacobs61Gertrude.Hudson@hotmail.com
17GerhardOkuneva57Arnold.Powlowski@hotmail.com
18FannieZulauf58Zoey97@yahoo.com
19ReyBeer64Retha19@hotmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0ChesterJakubowski35Sterling_Mayer@hotmail.com
1DemondStroman51Delta.Bruen48@yahoo.com
2RonBergnaum28Spencer.Spinka@yahoo.com
3ClementinaMiller36Devon38@gmail.com
4KaceyRowe18Cooper_Mohr51@yahoo.com
5DorcasHyatt21Eula39@gmail.com
6MarianoBeer42Daryl.OConnell58@hotmail.com
7BaronKemmer23Onie.Terry@gmail.com
8BrookBauch44Ara.Blanda@yahoo.com
9HunterStrosin32Annamae_Huels-Luettgen@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
0DixieMacGyver62Marshall82@hotmail.com
1PerryWilkinson58Hadley_Rutherford19@yahoo.com
2TheresiaMoen57Crystal.Konopelski19@yahoo.com
3LondonStracke64Camila_Treutel@yahoo.com
4RafaelMann63Angelina_Carter26@gmail.com
5AbbeyTorphy35Elyse_Bauch@hotmail.com
6PatienceLarson65Eula69@gmail.com
7LanceStehr56Fabiola_Dicki97@gmail.com
8ConorHeaney47Montana50@yahoo.com
9KirstenBotsford51Yolanda_Shanahan38@yahoo.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0DorthyHettinger28Sidney57@hotmail.com
1ThadKuvalis30Dewayne.Keebler@gmail.com
2DonavonStark61Ivan32@yahoo.com
3ParkerFrami49Casimer43@yahoo.com
4IdaProsacco50Lawrence97@yahoo.com
5EstelKihn33Deion60@yahoo.com
6ElwinLeuschke46Jenna_Botsford38@yahoo.com
7DarrinDooley60Helen_Rippin21@gmail.com
8KobeMurray36Josefa57@yahoo.com
9HeatherWatsica40Myrl_Rice@hotmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0MavisDicki25Quinton.Altenwerth@yahoo.com
1JermainCrooks28Ari.Mann88@yahoo.com
2VivianneRutherford26Stefan10@gmail.com
3OrieCollier26Erling_Hodkiewicz72@yahoo.com
4WilfredFadel64Blair16@gmail.com
5RevaMante33Martina_Carroll88@hotmail.com
6KaleyKoch47Ines_Becker99@hotmail.com
7MazieStokes54Gayle77@yahoo.com
8ThomasDare55Alyce44@yahoo.com
9KaitlynO'Hara27Destinee65@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0LayneGislason58Norene_Kautzer7@yahoo.com
1JohnathonDaugherty18Pansy_Nienow@yahoo.com
2AnnettaParker24Grover.Marks@hotmail.com
3JillianEmmerich56Gilda.McKenzie@hotmail.com
4DeeParisian21Deshawn.Terry@gmail.com
5AmberRobel22Boyd_Leffler44@gmail.com
6GustVeum41Keyshawn.Jast@yahoo.com
7BraxtonBernhard22Veda10@gmail.com
8HipolitoCarter63Blanca_Muller33@hotmail.com
9AureliaHowe20Violette_Greenholt30@hotmail.com

Control Row Selection

idfirstNamelastNameageemail
0RalphLubowitz42Katlyn.Braun12@hotmail.com
1NormanKohler57Dawson42@hotmail.com
2GreenKuhlman21Macey38@hotmail.com
3UrbanWillms34Bradford_Treutel97@yahoo.com
4RubenRomaguera33Justina.Pollich@yahoo.com
5MargaretePowlowski37Lonzo50@gmail.com
6LavonneBotsford-Hand33Iliana_Wunsch95@gmail.com
7TurnerBoyle44Garnett.Funk@yahoo.com
8IrvinWilliamson49Herminio_Haag-Ferry@gmail.com
9TheresiaLangosh30Damaris_Sauer30@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0JayceeMetz59Aliyah17@gmail.com
1EdwardLynch35Dovie65@hotmail.com
2IgnatiusGoodwin21Madalyn56@yahoo.com
3VanPollich46Dedrick.Kautzer9@gmail.com
4JodiBraun64Cortney.Gerlach@hotmail.com
5WarrenBlick22Frida.OConner@yahoo.com
6ElmiraLittel52Arnold38@hotmail.com
7JanyRunolfsson48Jason.Powlowski@hotmail.com
8KennedyFeest53Tamara.McGlynn@hotmail.com
9WaylonLittel43Cordia_Daugherty99@yahoo.com

Set Default Filter

To set the default filter, set defaultColumnFilters to an array of objects with the id and value of the column to filter.

idfirstNamelastNameageemail
1OrlandGoodwin20Jessy.Johns48@gmail.com
5SybleRowe55Bradley.Brown53@gmail.com
6LilianeWatsica29Eino.Dach@gmail.com

Control Filter

idfirstNamelastNameageemail
0JaronSpencer38Lesley.Conn14@yahoo.com
1VivianeNitzsche-Moore50Guy_Schneider57@hotmail.com
2KayliCronin62Rozella_Ferry@gmail.com
3PeggyKemmer46Nigel91@gmail.com
4KatelynCronin35Stone91@hotmail.com
5NehaDonnelly34Doug_Wehner54@hotmail.com
6JovanyProsacco41Tim.Huel@yahoo.com
7GianniHoppe43Rossie49@yahoo.com
8AmbroseBraun29Kaylah.Schroeder-McDermott91@gmail.com
9KirstenWill60Jerrold_Schroeder@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0TamaraFranecki21Dulce32@yahoo.com
1ArvillaDickinson58Candelario10@yahoo.com
2DavionOrtiz27Elias12@yahoo.com
3NoahArmstrong24Kathlyn.Shields97@gmail.com
4BrigitteHermiston55Agustin_Marvin60@yahoo.com
5JeanneWard22Sammy.Stanton33@yahoo.com
6RockySchowalter30Dejah_Dickens78@yahoo.com
7LucianoSpinka41Hollis18@yahoo.com
8BrockBailey55Clarence88@yahoo.com
9TamiaO'Connell-Huels43Reina_Mayer@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
0RodrickRobel31Bell.Bernier83@gmail.com
1TarynMonahan38Dangelo.Kiehn34@yahoo.com
2OliveRoberts19Carlee79@gmail.com
3ShaniyaPaucek27Katarina_Herman11@hotmail.com
4ClairePfannerstill34Quincy_Reinger85@yahoo.com
5MaximilliaGusikowski48Karlee_Kirlin42@yahoo.com
6BurdetteAbshire-Schroeder19Ward_Schumm61@gmail.com
7ReinholdHerzog19Jameson_Harris@gmail.com
8ShanieNienow53Burdette34@yahoo.com
9MilanVandervort31Blaise_Rolfson@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

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