Table

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

IDFirst nameLast nameAgeEmail
0VirgilHansen40Phyllis.Kuhic@yahoo.com
1CliffordHeathcote35Keeley47@gmail.com
2ArnaldoOlson63Eleanore8@yahoo.com
3QuinnAbbott40Cory53@yahoo.com
4DylanZboncak23Jacinthe16@gmail.com
5MalindaStracke18Maeve_Oberbrunner48@gmail.com
6JamarcusLubowitz33Terrill.Fisher@yahoo.com
7OlenGreen64Jerald_Johnston@hotmail.com
8SelenaZulauf49Margot_Morissette25@hotmail.com
9ElvieMoen45Antwan16@gmail.com

Usage

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

Change Variant

IDFirst nameLast nameAgeEmail
0DesmondSchamberger59Guido56@yahoo.com
1TinaO'Kon40Audie.Trantow32@hotmail.com
2ReginaLesch-Zulauf24Everette_Marvin85@yahoo.com
3IgnacioLind29Vaughn.Yundt23@yahoo.com
4PaxtonJenkins40Rebeca29@gmail.com
5GiovanniWisozk26Althea78@gmail.com
6ElmoCorwin44Fritz.Labadie92@gmail.com
7AugustUpton40Athena_Johns34@hotmail.com
8DuaneNader-Balistreri58Debbie78@yahoo.com
9SallieO'Hara33Eudora.Schimmel-Dickinson@gmail.com
IDFirst nameLast nameAgeEmail
0DesmondSchamberger59Guido56@yahoo.com
1TinaO'Kon40Audie.Trantow32@hotmail.com
2ReginaLesch-Zulauf24Everette_Marvin85@yahoo.com
3IgnacioLind29Vaughn.Yundt23@yahoo.com
4PaxtonJenkins40Rebeca29@gmail.com
5GiovanniWisozk26Althea78@gmail.com
6ElmoCorwin44Fritz.Labadie92@gmail.com
7AugustUpton40Athena_Johns34@hotmail.com
8DuaneNader-Balistreri58Debbie78@yahoo.com
9SallieO'Hara33Eudora.Schimmel-Dickinson@gmail.com

Change Size

IDFirst nameLast nameAgeEmail
0NicoleSchulist49Shemar_Spencer92@yahoo.com
1SincereSchowalter50Asha_Marvin86@yahoo.com
2JessyConnelly30Shanny15@hotmail.com
3FeliciaOndricka60Albertha.Jacobson5@gmail.com
4LelaBins63Sydnie.Windler27@hotmail.com
5ArchibaldFunk48Katheryn28@hotmail.com
6VanceKrajcik52Edyth_Williamson-Bradtke27@yahoo.com
7IzaiahHodkiewicz20Lucio59@gmail.com
8SherrySenger35Jacklyn_Skiles@hotmail.com
9KayleighBrown36Reina.Smith88@hotmail.com
IDFirst nameLast nameAgeEmail
0NicoleSchulist49Shemar_Spencer92@yahoo.com
1SincereSchowalter50Asha_Marvin86@yahoo.com
2JessyConnelly30Shanny15@hotmail.com
3FeliciaOndricka60Albertha.Jacobson5@gmail.com
4LelaBins63Sydnie.Windler27@hotmail.com
5ArchibaldFunk48Katheryn28@hotmail.com
6VanceKrajcik52Edyth_Williamson-Bradtke27@yahoo.com
7IzaiahHodkiewicz20Lucio59@gmail.com
8SherrySenger35Jacklyn_Skiles@hotmail.com
9KayleighBrown36Reina.Smith88@hotmail.com
IDFirst nameLast nameAgeEmail
0NicoleSchulist49Shemar_Spencer92@yahoo.com
1SincereSchowalter50Asha_Marvin86@yahoo.com
2JessyConnelly30Shanny15@hotmail.com
3FeliciaOndricka60Albertha.Jacobson5@gmail.com
4LelaBins63Sydnie.Windler27@hotmail.com
5ArchibaldFunk48Katheryn28@hotmail.com
6VanceKrajcik52Edyth_Williamson-Bradtke27@yahoo.com
7IzaiahHodkiewicz20Lucio59@gmail.com
8SherrySenger35Jacklyn_Skiles@hotmail.com
9KayleighBrown36Reina.Smith88@hotmail.com

Change Color Scheme

IDFirst nameLast nameAgeEmail
0NashHills65Herbert_Fisher@yahoo.com
1JefferyHettinger53Wilford84@hotmail.com
2EdithWisoky39Mitchell.Wilkinson65@hotmail.com
3LauryMcGlynn42Leon8@gmail.com
4MaybellStokes40Twila76@hotmail.com
5KatharinaPaucek24Stefanie77@gmail.com
6AmaniDurgan24Alysa.Nitzsche@yahoo.com
7JanieMante59Dolly.Barrows@gmail.com
8AubreeMurphy46Korbin.Johnston@gmail.com
9MurlBrown50Kian77@gmail.com
IDFirst nameLast nameAgeEmail
0NashHills65Herbert_Fisher@yahoo.com
1JefferyHettinger53Wilford84@hotmail.com
2EdithWisoky39Mitchell.Wilkinson65@hotmail.com
3LauryMcGlynn42Leon8@gmail.com
4MaybellStokes40Twila76@hotmail.com
5KatharinaPaucek24Stefanie77@gmail.com
6AmaniDurgan24Alysa.Nitzsche@yahoo.com
7JanieMante59Dolly.Barrows@gmail.com
8AubreeMurphy46Korbin.Johnston@gmail.com
9MurlBrown50Kian77@gmail.com

Add Outer Border

To add an outer border, set withBorder to true.

IDFirst nameLast nameAgeEmail
0RicardoBergnaum38Shirley30@yahoo.com
1ToreySchumm36Augusta_Mayert95@gmail.com
2KaylaNienow35Mia24@gmail.com
3JalenKoss61Kiera76@gmail.com
4SageShields49Diego_Quigley@yahoo.com
5RheaBotsford18Remington_Murazik@gmail.com
6CarmineJohns20Newton_Gusikowski63@yahoo.com
7AugustineVeum48Dewayne62@gmail.com
8LouLangosh33Reagan94@yahoo.com
9DaleSchowalter45Alivia29@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

IDFirst nameLast nameAgeEmail
0DeltaStark21Giovanny91@yahoo.com
1GranvilleJerde30Camylle.Klein@yahoo.com
2CaitlynQuigley28Maximillian59@hotmail.com
3HarleyWelch30Gianni.Rempel@yahoo.com
4CandidoBruen36Buster.Haag53@gmail.com
5KarolannHeaney35Abraham_Larkin@gmail.com
6BreannaSanford36Karlie.Lakin@yahoo.com
7HarleyHowe50Thad.Bogisich@gmail.com
8ArdenMante49Jillian_Weimann@gmail.com
9EveretteKoss52Palma17@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

IDFirst nameLast nameAgeEmail
0AlysonHeathcote31Leola.Roberts@gmail.com
1RicoOsinski22Joy.Doyle@gmail.com
2JuniusMarks52Joel_Batz4@hotmail.com
3MorganDaugherty46Mallie.Jast@gmail.com
4ValentinGoldner49Madalyn_Runolfsson-Ziemann@yahoo.com
5HoseaHoppe47Damien55@hotmail.com
6AlexandraErdman50Katelin.Gleason65@hotmail.com
7MalikaFarrell64Destinee.Ruecker49@gmail.com
8EmieStanton50America_Smitham@gmail.com
9AdellHickle61Leroy.Beatty18@yahoo.com

Striped

To enable striped rows, set striped to true.

IDFirst nameLast nameAgeEmail
0MorrisGreenfelder58Johanna.Haley@gmail.com
1EllenOkuneva40Monte.Hoppe@yahoo.com
2ElodyWeimann61Josiah75@gmail.com
3JessyLebsack46Thurman39@yahoo.com
4LexiHerman48Mabelle57@gmail.com
5NapoleonHirthe52Brenna_DAmore@hotmail.com
6PasqualeTromp45Hugh_Turcotte58@yahoo.com
7TheodoraCarroll-Wuckert51John_Swaniawski@yahoo.com
8VanessaKuhic45Delilah87@gmail.com
9VitaSchumm63Mathew.Kirlin@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

IDFirst nameLast nameAgeEmailPhoneRoleStatusCreated atUpdated at
0AshtonRohan58Stephanie_Veum57@yahoo.com834-654-8901UserInactive3/24/20267/4/2026
1HermanBosco-Adams60Alvera.Heller@hotmail.com(734) 457-3778 x92268AdminActive7/26/20264/2/2026
2MarielaFeil51Vergie_Hahn21@hotmail.com348.712.3594 x34301AdminInactive9/6/20263/26/2026
3DustyLegros38Taurean.Shields60@gmail.com1-872-563-3685 x4323AdminInactive4/29/202611/5/2026
4FrankBraun49Neha_Reichert38@hotmail.com551-373-5784 x71922AdminActive12/18/202511/25/2025
5WillaSchaden58Everette.Zemlak34@hotmail.com595.890.1217UserInactive2/5/20261/11/2026
6EdwinaBatz51Ivy.Collins16@yahoo.com812-542-6096AdminActive7/5/20269/10/2026
7MaryamKeebler38Javon_Dietrich@hotmail.com(734) 618-1733 x6798UserInactive4/22/20267/6/2026
8OralJacobson52Kennith_Hauck75@yahoo.com1-340-383-7684 x11568UserInactive6/19/20264/27/2026
9WilliamKeeling31Elyssa.OKon55@hotmail.com1-553-631-9276UserActive9/18/202611/25/2025

Header Groups

IDUser
NameAgeEmail
First nameLast name
0RaymundoMonahan25Josue.Brekke@hotmail.com
1ElyseDaniel61Estella.Casper97@hotmail.com
2BetsyHuels65Collin18@gmail.com
3ShannaOberbrunner27Kelley_Blanda62@yahoo.com
4ChaunceyPadberg50Amie.Bradtke62@gmail.com
5LaishaSchowalter26Viviane.Reichert7@gmail.com
6EldridgeBerge65Halle31@hotmail.com
7CharleyHickle-Greenholt53Julian_Doyle61@gmail.com
8KennethYost35Chelsie0@yahoo.com
9KelliFerry43Monique_Keebler@hotmail.com
IDUser
NameAgeEmail
First nameLast name
0OmerO'Hara42Gordon_Parker61@hotmail.com
1RutheSkiles24Phil.Graham55@yahoo.com
2AntwanUpton56Ethelyn_Strosin@gmail.com
3HipolitoStamm40Dena.Grady@hotmail.com
4SalvatoreFeil61Iliana.Becker@hotmail.com
5ClarenceLarson24Cristian.Kuhn56@hotmail.com
6VerlaKutch34Riley_Stark@hotmail.com
7DarylReilly31Letha.Morissette@yahoo.com
8DallinUllrich29Elisa29@hotmail.com
9MillerWillms28Barrett_Raynor@hotmail.com
IDFirst nameLast nameAgeEmail
Name
User

Disable Keyboard Navigation

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

IDFirst nameLast nameAgeEmail
0DonatoLuettgen54Royal_Dickens@yahoo.com
1FayeHuels40Shania_Funk94@yahoo.com
2IrisSmith59Lenora.Medhurst@gmail.com
3HallieHuel21Reese.Kautzer60@yahoo.com
4LeannLegros-Mohr29Cordie.Paucek51@gmail.com
5SerenityRunolfsson34Horacio_Swift31@yahoo.com
6ValentinaReynolds61Dusty_Windler40@yahoo.com
7MarkusMertz58Izabella.Kilback35@yahoo.com
8KacieNitzsche58Vladimir_Torp1@gmail.com
9AhmadFlatley32Kennedy_Harvey@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 }.

IDFirst nameLast nameAgeEmail
0RosalynThiel-Mitchell27Madeline_Marks98@hotmail.com
1BrandoJohns21Garrett25@hotmail.com
2SylviaRyan35Nicolette.Strosin87@yahoo.com
3KittyMcGlynn53Toby_Windler11@hotmail.com
4DaphneeMueller52Franz_Feil-Durgan42@yahoo.com
5FloridaStiedemann43Velma.Hackett36@yahoo.com
6DelmerNitzsche21Jimmie.Wolff@yahoo.com
7CatherineUllrich34Henrietta.Steuber14@hotmail.com
8MauricioBaumbach38Freeman25@yahoo.com
9SheilaSporer33Cleve_Leffler-Maggio@hotmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

IDFirst nameLast nameAgeEmail
0TheodoreCorkery20Irwin.Pfannerstill@yahoo.com
1ImogeneMcLaughlin65Fred.Kreiger@yahoo.com
2DamarisSchmitt57Leopoldo.Carter@gmail.com
3LewisFriesen25Annamae.Armstrong45@hotmail.com
4ImaniZboncak49Koby.Carroll@yahoo.com
5CarmineStreich25Christopher9@yahoo.com
6KalebMraz47Victor_Schneider@gmail.com
7GussieJohnson32Maritza.Mueller@hotmail.com
8LaurynGreen40Alexzander28@gmail.com
9BerryBoehm31Alvah_Rohan71@hotmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

IDFirst nameLast nameAgeEmail
0LaneyJerde22Danika56@yahoo.com
1RichardSchimmel49Heath19@yahoo.com
2FrankieLabadie63Dessie.Bruen83@gmail.com
3MozelleOkuneva38Price_Kshlerin@gmail.com
4FlossieGorczany57Lilian_Harris8@yahoo.com
5MelbaLeuschke36Angelita_Cassin29@hotmail.com
6OthaToy45Cierra.Balistreri@gmail.com
7MarisolWilkinson45Jordane_OConnell@gmail.com
8KenyattaFritsch61Darnell53@hotmail.com
9ClaudieSimonis31Enrico65@yahoo.com

Set Default Sorting

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

IDFirst nameLast nameAgeEmail
4LillianaGlover54Nicolette.Lindgren@yahoo.com
1AugustO'Conner53Tristin_Hodkiewicz0@yahoo.com
0JuliusCarroll35Raquel72@hotmail.com
7RubyeLowe33Meaghan_Stracke96@yahoo.com
5FranzHilll31Sid_Collier15@gmail.com
9FeliciaFadel29Aiyana49@yahoo.com
2SusannaToy28Hilton.Lindgren@gmail.com
6DonaldCronin28Willy_Wehner@yahoo.com
8EladioBeier23Viola_Monahan8@hotmail.com
3OdieReichert22Darrick_Olson@gmail.com

Disable Sorting

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

IDFirst nameLast nameAgeEmail
0LowellHerzog19Jayce.Yundt@yahoo.com
1RonnyGulgowski-Hand65Emelie_Carroll17@hotmail.com
2MonserratHickle57Linnie.Mohr@yahoo.com
3JudyStroman35Caleigh_Keebler82@yahoo.com
4ThaliaNader20Macey.Adams64@yahoo.com
5CarsonAltenwerth35Naomie_Labadie-Nicolas@gmail.com
6LeanneSmith-O'Kon30Lauren.Tromp-Pfannerstill@hotmail.com
7RupertShanahan24Adolfo_Morissette12@gmail.com
8MargretLuettgen55Debbie64@gmail.com
9TheresiaDickens52Maryann.Toy-Armstrong@gmail.com

Disable Multi Sorting

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

IDFirst nameLast nameAgeEmail
0SheaBartoletti62Letitia7@yahoo.com
1LetitiaShanahan46Donavon_Bogan@hotmail.com
2CaitlynKonopelski61Jace.Nikolaus15@gmail.com
3AngeloMertz18Pierre_Schuster15@yahoo.com
4ClarissaLehner60Darla.Denesik@gmail.com
5RocioCollins49Alberta.Osinski30@hotmail.com
6MelisaBerge33Rodrigo97@gmail.com
7RashawnMcCullough61Eldred_Pfeffer@gmail.com
8ChristelleFarrell51Keon12@hotmail.com
9PhillipMedhurst56Stella_Runolfsson@yahoo.com

Set Maximum Sortable Columns

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

IDFirst nameLast nameAgeEmail
0ElwinLarson60Alysha19@gmail.com
1ImogeneBailey22Geraldine_Hammes90@hotmail.com
2WilmerFay42Wendell44@hotmail.com
3AnaLueilwitz40Aubree32@gmail.com
4NedKeeling60Caesar.Hermann@gmail.com
5LianaRowe32Samir1@gmail.com
6AryannaKovacek39Ari_Armstrong7@hotmail.com
7CarmeloKonopelski32Octavia_OConner@yahoo.com
8MalindaBayer35Abdul95@hotmail.com
9TyshawnMraz33Arvel.Kerluke@yahoo.com

Manual Sorting

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

IDFirst nameLast nameAgeEmail
0TabithaKshlerin18Kailee_Shanahan@yahoo.com
1BrodyRolfson18Reymundo_Paucek87@gmail.com
2MossieKozey51Enrique.Lowe60@hotmail.com
3JermeyHills51Arlene84@hotmail.com
4LinnieKemmer48Karina.Homenick@hotmail.com
5ElyseJacobson54Courtney.Feeney@gmail.com
6GingerKrajcik34Ali.Parisian@gmail.com
7KarenBergnaum51Shakira11@hotmail.com
8LorenHalvorson53Malachi96@gmail.com
9GlennBartoletti31Frieda_Senger44@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.

IDFirst nameLast nameAgeEmail
0MateoDicki45Nayeli_Dibbert55@gmail.com
1MackenzieJones43Madalyn39@gmail.com
2FranciscaWeissnat21Hilton78@gmail.com
3TristinAdams56Ariel_Blanda69@yahoo.com
4AdrainSchulist20Ubaldo_Reichel73@gmail.com
5MabelGorczany49Elna_Boyer78@hotmail.com
6NatHagenes25Nova.Greenholt-Bartell@gmail.com
7EdaRoberts21Joesph.Schmeler@yahoo.com
8CrystelPfannerstill22Marley.Schaefer33@hotmail.com
9KamronRippin23Fern51@hotmail.com

Control Sorting

IDFirst nameLast nameAgeEmail
0JulietKessler39Betty.Turcotte@yahoo.com
1LisandroKing57Thora.Davis@gmail.com
2CarterFrami28Rolando52@gmail.com
3LeonelZboncak34Lou_Lueilwitz97@hotmail.com
4JustynBotsford63Rupert_Hilpert@hotmail.com
5EllenKlein-Thompson21Richmond_Goodwin@gmail.com
6ElyseErdman57Jensen.Pagac35@hotmail.com
7BurniceFisher62Raphael91@gmail.com
8WendyWest42Blanca_Hand@hotmail.com
9NellieFerry20Verna_Hand@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.

IDFirst nameLast nameAgeEmail
0JanessaRunolfsson27Zoie.Murazik64@yahoo.com
1RebeccaZiemann45Jeanette97@hotmail.com
2ConorHansen48Trystan12@gmail.com
3ScotJohnston50Korey.Kunze@gmail.com
4AstridVandervort41Madge_Denesik@hotmail.com
5EdenDuBuque51Nickolas_McClure14@hotmail.com
6GiaBednar35Gertrude.Koelpin6@gmail.com
7GerdaJast48Bernardo.Hessel17@yahoo.com
8AmberO'Reilly50Fern42@gmail.com
9HeloiseErnser21Dovie28@hotmail.com
10ImaSauer42Megane.Beatty92@hotmail.com
11ElinoreYost23Shirley68@gmail.com
12CeciliaRau22Nelda96@yahoo.com
13SamsonOrn43Maeve_Thompson@yahoo.com
14JoanHeller19Marlin53@yahoo.com
15ReginaldStoltenberg50Jeramie58@yahoo.com
16WilberCorkery61Al24@hotmail.com
17OpalWintheiser33Cierra_Weissnat@hotmail.com
18ZackaryReilly42Glenda46@yahoo.com
19GermaineMurray32Marilie.Beier1@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.

IDFirst nameLast nameAgeEmail
10EusebioWalter38Isaiah46@yahoo.com
11NarcisoKautzer60Addison56@hotmail.com
12AdolfoMarquardt29Tiana_Stanton@gmail.com
13LorenDaniel54Mazie15@hotmail.com
14MaidaMohr30Citlalli.Marquardt@hotmail.com
15PattyBuckridge30Johnpaul_Bogan33@gmail.com
16EvaBartoletti45Dawson23@gmail.com
17SidDonnelly22Irene.Borer@hotmail.com
18GregorioBlanda62Bettie.Bradtke@hotmail.com
19PaulineOndricka27Mireya.Greenfelder@gmail.com

Use Manual Pagination

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

IDFirst nameLast nameAgeEmail
0JoannyBayer20Felix_Ankunding-Kovacek@gmail.com
1DurwardSkiles25Liliane.Feeney74@hotmail.com
2NeldaFraney65Alene_Mayert18@gmail.com
3AlexandriaKohler31Pamela77@yahoo.com
4ErnestoKemmer56Jena_Walsh@hotmail.com
5LillyBalistreri54Lilly73@yahoo.com
6ElviraLind48Adelle_Considine@gmail.com
7NikitaSchuster-Beahan35Caden56@yahoo.com
8MaiyaSpinka61Dorothy_Schneider35@yahoo.com
9AdelineLueilwitz53Rebekah.Becker25@hotmail.com
10CliffordRomaguera33Chester_Glover97@hotmail.com
11JaydaWolf32Muriel.Wiegand@yahoo.com
12MicaelaHamill28Michel.Franey7@hotmail.com
13SaulLueilwitz30Ozella_Pacocha@gmail.com
14SanfordKoss53Shakira69@yahoo.com
15LouieFahey50Arno_Kessler45@yahoo.com
16AbeGutkowski61Arvel_Wilkinson44@hotmail.com
17AldaFriesen26Landen.Treutel@hotmail.com
18JewellChristiansen20Cyril.Tillman97@gmail.com
19NatProsacco61Miranda.Christiansen@yahoo.com

Control Pagination

IDFirst nameLast nameAgeEmail
0AmericaMraz43Elliot86@yahoo.com
1EmiliaFadel25John.Block@hotmail.com
2HillardLebsack24Nelle_Nicolas82@yahoo.com
3DanielleLarkin57Josh_Halvorson1@gmail.com
4RonaldoHoeger-MacGyver25Kathlyn_Boehm@hotmail.com
5RooseveltRoob50Russell78@hotmail.com
6EttieMcGlynn57Karine_Larson39@gmail.com
7JamarcusRogahn48Catalina.Ernser95@yahoo.com
8DaltonLarkin49Lynette43@yahoo.com
9DrewRice49Raymond18@hotmail.com
10AureliaZulauf35Emily_Jones@yahoo.com
11MonteHeaney47Uriel.Mitchell37@yahoo.com
12SamsonHarvey-Leffler52Pietro87@hotmail.com
13CasimirSchaden43Ford_Jast74@hotmail.com
14DonnieProsacco58Athena.Weber@hotmail.com
15FreemanDicki28Tyrique90@yahoo.com
16PorterBrekke55Sergio_Swaniawski@yahoo.com
17DannyMonahan51Marilou_Hoppe@gmail.com
18TristonLuettgen19Barry_Kozey@yahoo.com
19JeffreySpinka38Jeannette94@hotmail.com

Enable Row Selection

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

IDFirst nameLast nameAgeEmail
0BoydUpton-Connelly49Khalil.Wintheiser@yahoo.com
1DorothyJohnston24Malcolm95@gmail.com
2ChristinaSkiles37Mattie50@gmail.com
3JadynPacocha20Adrienne_Konopelski39@gmail.com
4GlendaTorphy39Madeline72@hotmail.com
5OvaMcCullough53Phillip_Osinski20@yahoo.com
6MiriamPollich51Clotilde5@gmail.com
7DiamondGoodwin-Friesen60Alec.Hessel19@yahoo.com
8AnahiSawayn51Keanu94@hotmail.com
9DiannaMayert51Marie.Brown19@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.

IDFirst nameLast nameAgeEmail
0IrwinDaugherty63Chesley.Harris15@gmail.com
1WestleyVonRueden51Hulda_Grimes10@gmail.com
2RoryTorphy28Patrick60@hotmail.com
3MervinSchmidt41Ransom22@hotmail.com
4LisandroSchmitt26Golden_Lehner@yahoo.com
5HassieZieme40Sasha53@gmail.com
6DashawnHammes43Zane.Hickle56@yahoo.com
7OmaD'Amore20Adolph12@gmail.com
8AlexysBoyer23Alexis_Robel29@hotmail.com
9NicolasMurazik30Pearlie_Bayer40@gmail.com

Enable Row Selection on Click

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

IDFirst nameLast nameAgeEmail
0DariusSchumm38Hans.Gutmann@yahoo.com
1TremayneWatsica-Becker42Burdette_Mante97@hotmail.com
2MarquiseLueilwitz40Sherri_Lehner@gmail.com
3ElmerWill37Mekhi88@yahoo.com
4RodrickAbernathy23Kyle7@hotmail.com
5OrlandSteuber29Casey24@hotmail.com
6KelliJenkins41Iva67@hotmail.com
7ClementineHahn-Bernier22Jody.Dietrich@gmail.com
8ElyssaWindler44Dwayne_Shields22@yahoo.com
9FriedrichNienow48Bernice.Connelly@hotmail.com

Hide Checkbox

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

IDFirst nameLast nameAgeEmail
0HesterPaucek28Maci.Brakus@yahoo.com
1DanielleBraun24Webster_Morar97@hotmail.com
2FreddyMosciski62Deja_Bradtke@hotmail.com
3KamrynKuhlman63Lenore_Predovic83@yahoo.com
4MarcusNitzsche-Toy31Jody_Marvin@gmail.com
5MillieCasper49Addie_Lindgren@yahoo.com
6GarettHilll40Queenie32@gmail.com
7JoaquinCorkery62Armani_Feil@gmail.com
8ErikKoelpin43Oscar.Harris@hotmail.com
9LorenzFritsch63Prudence11@hotmail.com

Disable Row

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

IDFirst nameLast nameAgeEmail
0ThaddeusHerman52Jedidiah37@gmail.com
1MerrittRobel29Claire93@hotmail.com
2AdalbertoBalistreri61Kolby_Heaney@gmail.com
3SheaPowlowski36Jeannette_Erdman45@gmail.com
4HaydenWeimann36Telly74@gmail.com
5KevenHuel64Doyle62@hotmail.com
6KennethLeffler55Shanon31@gmail.com
7KadeBeer49Hester.Ernser@gmail.com
8MarisolMurazik47Jill_Smitham@hotmail.com
9ArvelHarris52Audie_Brown49@hotmail.com

Control Row Selection

IDFirst nameLast nameAgeEmail
0RicardoLarson-Gulgowski47Julianne45@hotmail.com
1BillHuels41Shea_Cummerata@gmail.com
2MaddisonCollins38Vernie66@gmail.com
3SonjaParisian51Skylar.Conn@hotmail.com
4CristopherMraz45Amani_Willms@hotmail.com
5LisaHintz32Leopoldo.Adams@hotmail.com
6RodneyHane62Idella.Hane@gmail.com
7ClaytonErnser65Gracie_Bartell34@yahoo.com
8TiaSchiller40Irene60@yahoo.com
9AlessandroStehr37Joann_Thiel47@gmail.com

Use Filter

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

IDFirst nameLast nameAgeEmail
0LeilaniVonRueden45Rhett32@yahoo.com
1MartaWaelchi23Mariam97@yahoo.com
2RicoDibbert53Daniella98@gmail.com
3TobyGottlieb25Dominick40@gmail.com
4EmerySauer29Alexie.Weissnat43@gmail.com
5TylerWiegand62Nichole65@yahoo.com
6OpheliaZulauf35Terrance_Runolfsdottir82@yahoo.com
7AmieHagenes21Benedict.Lebsack@yahoo.com
8FloVandervort21Kelsi.Oberbrunner@hotmail.com
9JaydaConnelly51Johann_Langosh46@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.

IDFirst nameLast nameAgeEmail
3LindseyHoeger44Kathryn.Mayert45@gmail.com
9VestaStreich38Jovanny8@gmail.com

Control Filter

IDFirst nameLast nameAgeEmail
0JavonteWard37Adelle.Sipes@yahoo.com
1NyaKoepp63Brooke.OConner15@gmail.com
2NatalieEmmerich62Lysanne96@yahoo.com
3HughThiel25Ernestine_Satterfield@hotmail.com
4KeanuStrosin27Caleb94@yahoo.com
5GenesisKessler54Javon38@gmail.com
6CeasarLang59Homer50@gmail.com
7GilbertoZulauf34Nico31@hotmail.com
8MarilyneGerhold20Chet.Wolff9@hotmail.com
9AlexandreWaelchi33Nelson_Treutel10@hotmail.com

Enable Column Resizing

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

ID
First name
Last name
Age
Email
0RachelKunze61Krystel79@hotmail.com
1FernandoOsinski27Juston52@hotmail.com
2ErnieFisher31Evans_Sauer29@yahoo.com
3DoraTremblay29Mara_Von77@yahoo.com
4RyanGulgowski45Gerard.Lindgren@gmail.com
5JocelynDach56Noemy.Kunde28@hotmail.com
6NicoletteRobel22Alonzo69@hotmail.com
7FrancesWaelchi55Frieda_Luettgen@yahoo.com
8AlvaHahn50Emily.Cremin@gmail.com
9RoxanneFeest32Tanner.Auer@gmail.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
First name
Last name
Age
Email
0JustenHerman46Vinnie87@hotmail.com
1CarterRussel31Caitlyn_Haag31@yahoo.com
2MadalynHand59Preston.Price79@yahoo.com
3KaleighNitzsche45Katharina31@yahoo.com
4LedaHaley22Ezequiel_Swift@gmail.com
5TyreeCassin41Carl23@hotmail.com
6BarryGibson42Khalil.Morar51@yahoo.com
7AleneCorwin51Lessie_Powlowski70@yahoo.com
8LonieOrtiz39Chet.Medhurst89@yahoo.com
9LeopoldSauer62Francisco.Leuschke@yahoo.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.

Bubble

Bubble is a component that displays conversational content in a message bubble.

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.

Uses Components & Hooks