Table

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

idfirstNamelastNameageemail
0MarcosGutmann18Green58@yahoo.com
1RandalSchoen64Ford80@yahoo.com
2StephanieCremin32Grant.Larkin78@hotmail.com
3AubreeConnelly20Amir_Toy63@hotmail.com
4DashawnWeissnat52Judson12@gmail.com
5IvanChristiansen47Helga.Lesch43@gmail.com
6AndyBauch49Opal96@hotmail.com
7AlejandrinCole41Dion43@yahoo.com
8JeanieShanahan64Perry40@gmail.com
9AntoinetteSporer40Andre.Kshlerin@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0ArlieKovacek43Carmine42@yahoo.com
1AlanMacGyver20Tiara86@hotmail.com
2BernadetteZieme21Esther_Greenholt58@hotmail.com
3CeliaGoldner64Gladys_Williamson32@yahoo.com
4RylanDonnelly20Daisy_Hoeger90@gmail.com
5AnnamaeWaelchi23Julio65@yahoo.com
6SeanKunze47Keshawn.Mayer@gmail.com
7ClevelandJohnston44August78@hotmail.com
8PhillipStreich-Schoen45Herbert_Franey@gmail.com
9LornaGleason27Junius.Pacocha@yahoo.com
idfirstNamelastNameageemail
0ArlieKovacek43Carmine42@yahoo.com
1AlanMacGyver20Tiara86@hotmail.com
2BernadetteZieme21Esther_Greenholt58@hotmail.com
3CeliaGoldner64Gladys_Williamson32@yahoo.com
4RylanDonnelly20Daisy_Hoeger90@gmail.com
5AnnamaeWaelchi23Julio65@yahoo.com
6SeanKunze47Keshawn.Mayer@gmail.com
7ClevelandJohnston44August78@hotmail.com
8PhillipStreich-Schoen45Herbert_Franey@gmail.com
9LornaGleason27Junius.Pacocha@yahoo.com

Change Size

idfirstNamelastNameageemail
0GeorgiannaWilderman38Edna83@gmail.com
1JonathonWiza51Helen_Swift@gmail.com
2MylesSchulist29Alberto97@hotmail.com
3TomasWhite56Larissa.Bayer52@hotmail.com
4MarlinHuel45Kristoffer_Jacobson@yahoo.com
5KiannaNader42Axel.Bogisich@gmail.com
6JefferyMayert32Karine65@yahoo.com
7LynneArmstrong-Kuhlman52Deon_Kerluke33@hotmail.com
8ThomasSchoen26Garland.Osinski@yahoo.com
9CarmelaBreitenberg-Renner56Makayla80@gmail.com
idfirstNamelastNameageemail
0GeorgiannaWilderman38Edna83@gmail.com
1JonathonWiza51Helen_Swift@gmail.com
2MylesSchulist29Alberto97@hotmail.com
3TomasWhite56Larissa.Bayer52@hotmail.com
4MarlinHuel45Kristoffer_Jacobson@yahoo.com
5KiannaNader42Axel.Bogisich@gmail.com
6JefferyMayert32Karine65@yahoo.com
7LynneArmstrong-Kuhlman52Deon_Kerluke33@hotmail.com
8ThomasSchoen26Garland.Osinski@yahoo.com
9CarmelaBreitenberg-Renner56Makayla80@gmail.com
idfirstNamelastNameageemail
0GeorgiannaWilderman38Edna83@gmail.com
1JonathonWiza51Helen_Swift@gmail.com
2MylesSchulist29Alberto97@hotmail.com
3TomasWhite56Larissa.Bayer52@hotmail.com
4MarlinHuel45Kristoffer_Jacobson@yahoo.com
5KiannaNader42Axel.Bogisich@gmail.com
6JefferyMayert32Karine65@yahoo.com
7LynneArmstrong-Kuhlman52Deon_Kerluke33@hotmail.com
8ThomasSchoen26Garland.Osinski@yahoo.com
9CarmelaBreitenberg-Renner56Makayla80@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0HayleeFrami36Marianne.Hodkiewicz18@hotmail.com
1JoyceSchmidt52Zula_Casper23@gmail.com
2KelsiKutch48Veda.Turner@gmail.com
3GabeNicolas28Julie99@hotmail.com
4DianeRowe59Marie40@hotmail.com
5MartinKlein64Stan32@hotmail.com
6TamiaKertzmann60Chris_Botsford20@hotmail.com
7NorrisO'Hara40Dianna63@gmail.com
8ManuelUpton-Schuster59Shanelle.Beatty81@gmail.com
9BerneiceLebsack33Karolann.Rath@hotmail.com
idfirstNamelastNameageemail
0HayleeFrami36Marianne.Hodkiewicz18@hotmail.com
1JoyceSchmidt52Zula_Casper23@gmail.com
2KelsiKutch48Veda.Turner@gmail.com
3GabeNicolas28Julie99@hotmail.com
4DianeRowe59Marie40@hotmail.com
5MartinKlein64Stan32@hotmail.com
6TamiaKertzmann60Chris_Botsford20@hotmail.com
7NorrisO'Hara40Dianna63@gmail.com
8ManuelUpton-Schuster59Shanelle.Beatty81@gmail.com
9BerneiceLebsack33Karolann.Rath@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0JodiRoob46Joyce.Auer-Mohr99@gmail.com
1BenSpinka52Kaley_Gerhold@hotmail.com
2WillTowne63Verna.Dibbert79@gmail.com
3NaomiGibson-Leannon28Kara.Stark43@hotmail.com
4NicholeBogan52Nathan41@hotmail.com
5FaustinoRunte61Donnie97@gmail.com
6CeliaMarks18Antwon.Herzog51@yahoo.com
7EduardoRunolfsdottir47Luke.Fadel89@hotmail.com
8WyattSwift21Ginger_Marvin52@hotmail.com
9CarterPowlowski26Arnulfo.Bergnaum@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0PennyWill36Darryl78@yahoo.com
1AmieHayes39Winifred_Larkin@gmail.com
2MelindaSawayn51Dean7@yahoo.com
3JevonPouros19Traci.Predovic33@yahoo.com
4RansomTorp44Sylvia_Gibson@yahoo.com
5HarmonyRogahn19Christelle.OConner@yahoo.com
6JacquelynJohnson56Tanya_Jast12@hotmail.com
7SaulRaynor51Lafayette.Bernhard39@hotmail.com
8EulaKing63Joey_Jaskolski36@yahoo.com
9KathryneWiegand33Sylvester_Olson42@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0EthelynKerluke45Darby61@yahoo.com
1KristineSchiller20Marcus_Volkman98@gmail.com
2KristieGottlieb18Karine_Casper89@gmail.com
3HadleyKunze42Laura.Fay16@gmail.com
4RickyLueilwitz41Laura91@hotmail.com
5SherriGulgowski18Reba.Cruickshank92@yahoo.com
6WendellMaggio51Ana_OConnell@gmail.com
7WarrenWintheiser47Andres.Gutmann60@gmail.com
8PabloHeidenreich18Anahi98@gmail.com
9BrodyJohnson41Melody.Runolfsdottir@gmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0EricaHintz54Betty_Schuppe26@gmail.com
1HomerLarkin22Jamir88@gmail.com
2HarrietLakin49Tiffany.Gleason41@yahoo.com
3TinaDooley18Llewellyn_Spinka@gmail.com
4DominickProsacco19Claude_Conroy-White@gmail.com
5KaleighKirlin60Annette.Schulist@hotmail.com
6AniyaWaelchi56Jake.Sawayn@gmail.com
7MarjorieRunte31Eileen.Shields@hotmail.com
8CeliaLarkin20Carlo.Mosciski@gmail.com
9SoniaRunolfsdottir55Reed35@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0JacksonDuBuque61Curtis.Hayes@yahoo.com756.967.1918 x509admininactive2/19/202612/7/2025
1GlennNicolas27Rodolfo.Kunze10@gmail.com437-602-3866admininactive9/4/202511/15/2025
2DonnaReichel36Ana24@hotmail.com279.349.4018useractive11/9/20254/22/2026
3JimmyOrtiz53Wilford5@gmail.com535.936.2876 x244adminactive5/18/20254/9/2026
4TinaOkuneva26Tiffany.Pollich@gmail.com544.807.2997 x930adminactive9/4/20251/20/2026
5MadgeGrimes51Irma_Runolfsson24@gmail.com977-419-6331userinactive7/22/20252/28/2026
6SalvadorFadel40Jacqueline_Nitzsche98@gmail.com498.622.8295useractive10/15/20258/13/2025
7DaphneeBalistreri50Angela.Hermann12@hotmail.com618-968-3677 x045admininactive12/21/20251/11/2026
8BayleeMarks47Nasir_Tillman49@hotmail.com1-309-647-0824 x494admininactive5/30/20254/27/2026
9AmosShanahan25Florian17@gmail.com811.223.3936 x684adminactive1/21/20261/2/2026

Header Groups

iduser
nameageemail
firstNamelastName
0DorrisWilderman51Jabari.Nolan30@yahoo.com
1AdolfKshlerin38Santos.Lebsack0@gmail.com
2BrendaO'Connell44Tyrell.Schowalter@hotmail.com
3LolaZieme57Vaughn6@gmail.com
4BelindaRippin25Nels12@yahoo.com
5CarolinePurdy55Alec.DuBuque@gmail.com
6ElvaProhaska-Zieme56Patti_Nienow73@hotmail.com
7AlysaDenesik56Melanie83@yahoo.com
8HattieSipes50Camryn.Herzog@gmail.com
9ChesleyBahringer35Jana94@yahoo.com
iduser
nameageemail
firstNamelastName
0EarnestRempel48Geneva_OKeefe25@hotmail.com
1KirkDach43Douglas.Muller@hotmail.com
2DarrinSchinner38Gerda_Schumm@hotmail.com
3NakiaKoss34Sallie_Turner76@hotmail.com
4AlbertGerlach51Elwin_VonRueden35@gmail.com
5JacquelynMoen37Beverly46@gmail.com
6WilberBauch23Saul10@hotmail.com
7AdrienneJacobs20Bradford_OHara@hotmail.com
8RandyOrtiz49Bryan33@hotmail.com
9PenelopeRaynor48Marta.Borer9@gmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0OceaneLubowitz27Fritz.Skiles-Boyer@yahoo.com
1EdithHickle30Sophie59@hotmail.com
2HannaFahey57Rylan90@gmail.com
3AlexanderSchroeder-Lebsack31Joseph40@hotmail.com
4StacyO'Hara20Laron_Johnson@gmail.com
5GeraldineKilback20Beverly40@gmail.com
6DarbyLebsack44Antonia.Hayes0@gmail.com
7LyndaO'Conner39Dylan_Kassulke51@gmail.com
8TommieSchmeler36Doreen_Cormier@hotmail.com
9LowellMayer43Anita_Satterfield@gmail.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
0AgustinKlein44Alex94@gmail.com
1ElianeBartoletti39Connie16@yahoo.com
2NicolasOlson51Ella30@gmail.com
3RosemarieFriesen25Merle73@gmail.com
4MacLakin60Kay_Huel@yahoo.com
5VirgilHudson32Lincoln.Reynolds77@gmail.com
6GarryWilliamson28Sarina_Wilderman@hotmail.com
7PamO'Reilly45Lyla.Zboncak@yahoo.com
8TammyBayer43Roberto_Hilll84@yahoo.com
9AddisonMraz25Emmet.Schroeder@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0EloyBogan29Mike82@gmail.com
1VirgilRussel54Dillon.Pacocha98@hotmail.com
2EnidMayert58Lester.Wehner73@hotmail.com
3AngeloFraney39Roderick_Kutch19@yahoo.com
4BertaShields61Mauricio_Bednar@hotmail.com
5ShelleyHuel-Medhurst54Violet74@gmail.com
6DestanyHane27Julian89@yahoo.com
7JoelRunte65Juston.Barton54@gmail.com
8XanderBeier56Geo_Maggio35@yahoo.com
9AustinMayer38Bertha20@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0LuzLabadie64Geo.Greenfelder@yahoo.com
1CatharineHyatt33Blanca74@gmail.com
2CalvinSchmeler60Monte70@gmail.com
3CharlesCronin25Boyd.Leannon@yahoo.com
4ConnieDare57Ransom_Lang61@hotmail.com
5AubreeKulas23Faith53@hotmail.com
6ElyssaWolf-McLaughlin25Conor.Stiedemann85@hotmail.com
7JohannBeatty31Joann82@yahoo.com
8ChristKonopelski-Cremin41Leland99@yahoo.com
9BransonSchneider34Ellsworth.Grant@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
8WinstonToy59Zoie93@yahoo.com
3MinaSatterfield48Jaren.Marks91@hotmail.com
7EstaLockman48Cole53@hotmail.com
1DixieLangworth43Carson29@hotmail.com
2AlfredBruen43Dolores_Beahan@gmail.com
5AlmaSanford39Micaela13@yahoo.com
6GardnerBayer39Jermain_Raynor@hotmail.com
9LeopoldMcKenzie35Clifford_Schuppe@gmail.com
4AntoinetteMacGyver31Deanna69@hotmail.com
0MaribelTurner23Rylan.Zieme@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0DaveJenkins39Joanna59@hotmail.com
1ConnieEbert46Homer_Breitenberg98@gmail.com
2LaurelRoberts47Dannie_Barrows@yahoo.com
3FlavieCollier61Miranda_Heaney67@gmail.com
4DorisVolkman25Leo.Parker@yahoo.com
5BoydStokes48Deven61@hotmail.com
6KarlRempel57Tristian.OReilly38@gmail.com
7JazmyneKiehn59Warren46@hotmail.com
8QuintenBeier46Ruben_Senger@yahoo.com
9KristineRogahn22Daphney_Ward@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0TomasSchamberger61Mae73@gmail.com
1RosaJacobs51Okey61@gmail.com
2LorineBins46Clementina_Mante62@yahoo.com
3LucilleKassulke62Kariane_Kessler@hotmail.com
4RicardoSauer39Marlene.Hegmann24@hotmail.com
5BrittanyMurazik51Lupe.Stanton44@gmail.com
6EricaStrosin29Franz_Braun2@hotmail.com
7AnnieRussel31Sue22@hotmail.com
8JerrodPfeffer21Darryl.Tremblay41@hotmail.com
9WilfridWill39Bonnie.Jacobson93@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0SidneyStamm21Rebecca.Sipes@gmail.com
1MeredithPaucek21Emmett2@hotmail.com
2AniyahMurray65Mike31@gmail.com
3NicholeMcKenzie40Loren.Adams39@hotmail.com
4MoniqueDenesik-Ferry42Albina_McKenzie82@yahoo.com
5LeoRowe45Robyn_Grimes@hotmail.com
6StellaStark-Legros38Braxton46@hotmail.com
7GeraldineReilly24Braeden.Borer@hotmail.com
8MyrtisReinger49Ettie30@gmail.com
9BroderickBartoletti20Lucile61@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0WilburVon40Amanda57@hotmail.com
1AglaeTremblay49Stacy.MacGyver92@yahoo.com
2MerleBecker24Austin_Friesen0@hotmail.com
3OraAbernathy51Luther_Kulas64@hotmail.com
4VanKris44Antonette58@gmail.com
5BritneyHoeger40Dejuan78@gmail.com
6CassandreSchamberger19Darryl81@hotmail.com
7SamJones35Leigh.Gutkowski@gmail.com
8DarrellMorar57Corene21@yahoo.com
9HattieO'Conner38Sheryl43@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
0ShanelCummerata21Ann_Trantow96@hotmail.com
1UlicesWelch27Guillermo50@gmail.com
2MerrittZboncak-Crona51Madison.Heaney@gmail.com
3AbdielGrant58Lauriane12@hotmail.com
4AnnabelMcDermott-Bosco32Katherine.Wuckert@hotmail.com
5MattieNienow29Matt_Jerde@yahoo.com
6JewellSmitham44Pauline69@gmail.com
7DeliaCartwright38Brain.Dickinson33@gmail.com
8JaydaGutkowski48Giovanna54@gmail.com
9ReubenLind34Lowell94@yahoo.com

Control Sorting

idfirstNamelastNameageemail
0ClementinaConnelly28Norman_Runolfsdottir69@hotmail.com
1ChayaBatz63Kirstin.Walker@gmail.com
2EloiseMuller31Alfredo9@yahoo.com
3JuanaHintz56Everett30@yahoo.com
4DarinHalvorson28Albertha_Harber93@hotmail.com
5TonyMiller21Elias64@gmail.com
6HarrietRoberts58Alvin.Farrell-Johnson18@gmail.com
7AmiraLabadie53Shari.Hodkiewicz52@hotmail.com
8CorineKunze23Brook.Cremin@gmail.com
9MertieGulgowski34Felicita.Cremin@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
0GiaPurdy29Alton66@hotmail.com
1NathanielBaumbach54Montana_Von54@gmail.com
2DanielleMetz59Parker.Parker@yahoo.com
3CyrilBeer20Tami_Lemke38@yahoo.com
4LowellLarson48Gerardo.Ledner@hotmail.com
5LindseyBernier42Markus71@yahoo.com
6FlossieDaugherty45Timothy_Stanton40@hotmail.com
7BethelWitting31Amelia84@gmail.com
8CarmenKertzmann39Marty.Kassulke@yahoo.com
9TraceyFeest18Ray.McCullough12@gmail.com
10RobertaO'Kon57Doreen_Wisozk@yahoo.com
11AbelAltenwerth-Abshire61Gary73@hotmail.com
12MathewSauer28Chaim31@hotmail.com
13PennyHarvey33Ulises39@hotmail.com
14CharlieBechtelar47Yolanda.Purdy@yahoo.com
15DeanCremin19Danyka66@yahoo.com
16ShaniaSawayn32Kelsi_Beer72@yahoo.com
17IsaacLarson57Jerome98@hotmail.com
18EmmettQuitzon31Humberto.Jenkins19@yahoo.com
19LorenzoCummings29Adaline19@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
10WandaPfannerstill43Roberto_Schoen@yahoo.com
11StephanyChamplin32Eula.Dietrich43@yahoo.com
12DovieMurray25Valentin1@yahoo.com
13TraciHerzog45Stewart.Wolff83@yahoo.com
14WilburnKessler59Quincy.Koch82@yahoo.com
15ClarabelleCollier37Murphy_Kling26@yahoo.com
16MikeHilpert63Terence.Maggio22@hotmail.com
17ShaunLangworth64Alberto_Glover@hotmail.com
18ShawnBernier53Dane_Sporer78@gmail.com
19FlorencioWiza20Jacquelyn76@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0TedHettinger55Linda_Bernier28@yahoo.com
1AlejandrinKulas55Ryley31@hotmail.com
2OthoFeest58Reed52@yahoo.com
3RosinaZulauf21Nelson.Conn58@yahoo.com
4MarkusBergstrom39Lorna_Welch98@gmail.com
5GradyWilkinson54Lance_Rohan-Effertz53@gmail.com
6PaulineHermann36Winston.Goldner@yahoo.com
7ShellyMorar53Moriah.Steuber77@yahoo.com
8TateDibbert57Janie2@yahoo.com
9MeredithKirlin64Alejandro_OKeefe37@hotmail.com
10CindyDaniel37Luis.Barrows81@yahoo.com
11IvanMorar28Ryan.Lockman84@yahoo.com
12KennyLedner28Dejuan2@gmail.com
13AngeloMacGyver30Adeline.Champlin0@yahoo.com
14KaylaHomenick40Alexander7@gmail.com
15ChristineTurcotte33Randolph_Mann@yahoo.com
16BettyeCassin54Cleora.Hamill@gmail.com
17ChesleyWaters46Abbigail29@hotmail.com
18JerryGutmann44Scarlett89@hotmail.com
19LyleHills59Trisha_Abshire51@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0AliciaGutmann61Adrianna.Franey-Gutkowski42@yahoo.com
1HerminaJacobson50Traci24@gmail.com
2ClarenceLeffler51Kieran28@hotmail.com
3JasperRau52Chester_Kub91@gmail.com
4GuidoHarvey35Micaela_Reinger@hotmail.com
5LanceEffertz34Arthur_Durgan-Walker79@hotmail.com
6MonroeBeahan23Lexi68@hotmail.com
7MitchellWilkinson-Rice25Yvonne10@yahoo.com
8FranklinKeeling60Loraine_Weissnat25@yahoo.com
9JohnMraz40Jerrell_Hagenes36@yahoo.com
10DawnCrist42Vesta95@yahoo.com
11CeceliaWisozk50Angie_Dicki@hotmail.com
12JoanaWyman-Buckridge28Miriam_Bernhard@gmail.com
13RickGrady61Kelley.Schultz@gmail.com
14DustinMitchell34Ida.Kris91@hotmail.com
15TroyParker25Jerry_Waters@yahoo.com
16AnaKris44Ira_Wolf@gmail.com
17RebeccaMann34Ann_Bogisich98@hotmail.com
18AdrienQuitzon25Lloyd94@yahoo.com
19LavernaQuitzon57Jerod.Wehner59@hotmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0ErnestJones28Jaeden_Torp@gmail.com
1AdellaKuhic48Evan77@gmail.com
2LolaMacGyver57Kayden.Fahey@hotmail.com
3HenryMarks30Viva_Gibson@yahoo.com
4HeavenBlock22Reina.Predovic38@yahoo.com
5EileenKshlerin51Erik_Langosh@gmail.com
6JocelynFahey35Charlotte1@gmail.com
7JeromeSchaden56Johnny_Yundt33@gmail.com
8CaryWeber38Beverly.Dach98@hotmail.com
9ChadGutkowski63Kyler.Hegmann-Wehner58@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
0EmanuelPredovic47Christian.Collins@hotmail.com
1RichardMayert36Kathryn19@gmail.com
2AniyaSkiles62Salvatore_Durgan12@hotmail.com
3DerrickPagac56Darion90@hotmail.com
4VergieHammes51Leland.Mayer@yahoo.com
5FredaMarquardt43Flora32@yahoo.com
6TriciaWindler18Alison.Kuvalis@gmail.com
7DestineeGorczany44Janae.Miller32@hotmail.com
8JoshWyman33Elyssa50@yahoo.com
9LouieShields46Dudley_Brakus@yahoo.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0KaleyO'Hara47Fred_Hamill31@hotmail.com
1WinifredJacobs21Sophia.Daugherty19@hotmail.com
2KirkMcLaughlin60Eliezer.Nicolas@gmail.com
3AdolphusStiedemann52Oda_Nikolaus@gmail.com
4CooperSanford43Russell.Hirthe8@hotmail.com
5TiaraAbernathy37Eriberto.Schimmel@yahoo.com
6AnneFlatley54Euna.Auer25@yahoo.com
7KrystalBeahan38Wendell49@hotmail.com
8KellieBashirian57Darlene22@gmail.com
9KaylinEmard57Rudolph34@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0MarlenThompson65Kailyn60@hotmail.com
1ChristineHaag21Jaunita28@yahoo.com
2HortenseBoehm20Dwayne.Shanahan59@yahoo.com
3IanOrn64Billie.Hagenes15@gmail.com
4TheaKohler49Alanis96@hotmail.com
5BrigitteLesch27Micah_Doyle39@gmail.com
6LorettaHarber55Jayme57@yahoo.com
7AlexandraKoss43Susie_MacGyver-Weimann12@yahoo.com
8MarcArmstrong39Ross.Miller@yahoo.com
9AlphonsoFritsch42Sidney.Lind24@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0DeeJenkins42Reynold_Tillman@hotmail.com
1BennyCollier21Olive.Rolfson@gmail.com
2BobbieBecker36Faye_Wisozk@hotmail.com
3MosheBecker-Cole18Debbie.Carter@gmail.com
4JuanitaMcLaughlin49Carole_Yundt33@hotmail.com
5DawnToy57James_Altenwerth96@hotmail.com
6JennieLehner-Beahan22Silvia33@hotmail.com
7DeshawnBrakus22Floyd_Rempel-Strosin96@hotmail.com
8MarioMcCullough21Larissa6@hotmail.com
9ZulaBergstrom51Kelley_Spinka46@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0TatumSmitham25Tasha48@gmail.com
1SandrineFritsch38Luigi.Grady69@yahoo.com
2JulianWilkinson27Benjamin.Kassulke@yahoo.com
3OletaLockman65Angela.Herman@hotmail.com
4JeanAnkunding53Hal.Greenfelder98@hotmail.com
5EstelSteuber29Greyson.Tremblay46@gmail.com
6MaeganReilly56Jolie24@gmail.com
7MaybellKozey27Noble_Swift@hotmail.com
8LoriCorkery41Ora_Blanda77@yahoo.com
9GenevaCrona61Hermann_Tremblay65@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0ViolaJaskolski46Vernice.Von@hotmail.com
1AprilDibbert20Ryan.Hilpert57@yahoo.com
2GilesFritsch61Kaya.Cole-Cormier67@gmail.com
3ElijahHowe56Shelley.Kovacek@hotmail.com
4EliasSkiles39Lyla_Abshire@hotmail.com
5LindseySwaniawski57Domenico.Schmidt@hotmail.com
6NinaStroman-McCullough35Ivory77@gmail.com
7IleneHyatt56Rosalyn81@gmail.com
8JoannDuBuque38Myrtle74@hotmail.com
9ChelseaPredovic54Shelley_Nitzsche@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
3KendraShanahan19Gussie13@gmail.com
4DawnBernier60Gordon.Mueller1@gmail.com
8TadYost41Emmett_Bashirian-Goyette75@gmail.com

Control Filter

idfirstNamelastNameageemail
0TateLemke50Loy_Wisoky30@yahoo.com
1WalterBernier42Julian.Casper78@gmail.com
2SteveBins29Marilyn.Abshire68@yahoo.com
3ReneeHeaney41Molly.Ziemann@yahoo.com
4KaylieWilderman28Horace54@yahoo.com
5ChadRau65Kirk39@hotmail.com
6FranciscoKertzmann25Dianne_Thompson@hotmail.com
7ChristopRohan56Margarette_OConnell@hotmail.com
8DarienBlanda39Ben.Leuschke70@hotmail.com
9KurtSawayn54Garry.Rath46@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0MadelynnYundt31Bryant_Wiza55@hotmail.com
1WiltonLueilwitz45Estelle1@hotmail.com
2JoseLesch63Lauretta.Schultz@gmail.com
3HubertWeissnat65Christy_Quigley@yahoo.com
4TamaraFeeney40Mathew.Kuhn@gmail.com
5MarieWilderman49Flavie_Stark69@hotmail.com
6DonnaAnkunding35Andrea_Schumm66@yahoo.com
7DebbieOlson59Corey.Wehner@gmail.com
8ThaliaGorczany56Bella.Hoppe@yahoo.com
9TimmyDietrich46Yvonne4@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
firstName
lastName
age
email
0StephanieSenger43Phillip36@hotmail.com
1VeronicaHoeger61Torrey_Yundt@hotmail.com
2SidneySchroeder46Marion.McLaughlin@gmail.com
3ChristopherSanford38Diana_Durgan54@yahoo.com
4MarshallGislason61Myriam_Kuvalis@hotmail.com
5PerryThiel36Katarina_Sauer@yahoo.com
6KalebHuel29Grayson91@hotmail.com
7DarylHessel49Kenna_Schamberger@gmail.com
8AlessandroGreenholt46Ashton34@yahoo.com
9TimKovacek50Emanuel50@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