Table

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

idfirstNamelastNameageemail
0KurtDonnelly-Skiles40Elvera_Friesen83@hotmail.com
1DominicWindler35Samantha_Spinka@gmail.com
2MorrisDare24Cora_Bergnaum@gmail.com
3KennethParker-Bechtelar56Lela.Murphy67@gmail.com
4AdrielGoyette22Harvey.Batz41@yahoo.com
5NoemieStark45Ted_Nitzsche48@gmail.com
6ZackeryBradtke42Kendrick_Littel29@gmail.com
7CaryReichel20Marina_Metz49@hotmail.com
8ErikaDietrich59Cali72@yahoo.com
9DellRowe41Lilly.Marvin87@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0PansySchiller38Colin_Maggio83@hotmail.com
1FloHauck47Camille3@gmail.com
2MorrisJohns43Johnny33@yahoo.com
3RodneyTromp43Jaida_Kozey@hotmail.com
4SophiaSchultz53Luke86@yahoo.com
5MonaSchumm63Bertha_Schuppe@hotmail.com
6RolandZulauf56May80@gmail.com
7TeriCrooks30Byron_Cruickshank5@yahoo.com
8OkeyRosenbaum26Ginger55@yahoo.com
9RussGerhold61Audreanne.Brekke@yahoo.com
idfirstNamelastNameageemail
0PansySchiller38Colin_Maggio83@hotmail.com
1FloHauck47Camille3@gmail.com
2MorrisJohns43Johnny33@yahoo.com
3RodneyTromp43Jaida_Kozey@hotmail.com
4SophiaSchultz53Luke86@yahoo.com
5MonaSchumm63Bertha_Schuppe@hotmail.com
6RolandZulauf56May80@gmail.com
7TeriCrooks30Byron_Cruickshank5@yahoo.com
8OkeyRosenbaum26Ginger55@yahoo.com
9RussGerhold61Audreanne.Brekke@yahoo.com

Change Size

idfirstNamelastNameageemail
0EarnestMohr33Bradley_Dach43@gmail.com
1CitlalliKiehn63Hilda_Gutkowski@hotmail.com
2MathewKoepp45Erin.Koch75@gmail.com
3FranciscoMoen43Gwendolyn.Kub7@gmail.com
4KayleighSchmidt27Mack45@hotmail.com
5WadeBogan60Johnny.Mayer97@gmail.com
6LoreneCartwright43Marilyn.Prohaska@hotmail.com
7PatRolfson34George.Zieme@gmail.com
8EthelJacobs-Nienow44Misty.Heidenreich10@hotmail.com
9BryantAuer58Sammie.Dach@gmail.com
idfirstNamelastNameageemail
0EarnestMohr33Bradley_Dach43@gmail.com
1CitlalliKiehn63Hilda_Gutkowski@hotmail.com
2MathewKoepp45Erin.Koch75@gmail.com
3FranciscoMoen43Gwendolyn.Kub7@gmail.com
4KayleighSchmidt27Mack45@hotmail.com
5WadeBogan60Johnny.Mayer97@gmail.com
6LoreneCartwright43Marilyn.Prohaska@hotmail.com
7PatRolfson34George.Zieme@gmail.com
8EthelJacobs-Nienow44Misty.Heidenreich10@hotmail.com
9BryantAuer58Sammie.Dach@gmail.com
idfirstNamelastNameageemail
0EarnestMohr33Bradley_Dach43@gmail.com
1CitlalliKiehn63Hilda_Gutkowski@hotmail.com
2MathewKoepp45Erin.Koch75@gmail.com
3FranciscoMoen43Gwendolyn.Kub7@gmail.com
4KayleighSchmidt27Mack45@hotmail.com
5WadeBogan60Johnny.Mayer97@gmail.com
6LoreneCartwright43Marilyn.Prohaska@hotmail.com
7PatRolfson34George.Zieme@gmail.com
8EthelJacobs-Nienow44Misty.Heidenreich10@hotmail.com
9BryantAuer58Sammie.Dach@gmail.com

Change Color Scheme

idfirstNamelastNameageemail
0WaltonJacobi41Jenna_Volkman@gmail.com
1SamGreenholt29Brendon_Cassin29@gmail.com
2ClaraWeissnat50Ethel9@yahoo.com
3LarryBeahan18Roxanne.Murphy22@yahoo.com
4OraBernhard36Lavon_Schamberger@yahoo.com
5GarnetWuckert33Nelson_Lang-Goodwin@hotmail.com
6DevynJaskolski50Eva_Ledner@gmail.com
7GeorgeOrn63Leona_Hermann96@yahoo.com
8MarshaMorar21Misty_Stanton20@gmail.com
9CynthiaTerry20Elisabeth28@yahoo.com
idfirstNamelastNameageemail
0WaltonJacobi41Jenna_Volkman@gmail.com
1SamGreenholt29Brendon_Cassin29@gmail.com
2ClaraWeissnat50Ethel9@yahoo.com
3LarryBeahan18Roxanne.Murphy22@yahoo.com
4OraBernhard36Lavon_Schamberger@yahoo.com
5GarnetWuckert33Nelson_Lang-Goodwin@hotmail.com
6DevynJaskolski50Eva_Ledner@gmail.com
7GeorgeOrn63Leona_Hermann96@yahoo.com
8MarshaMorar21Misty_Stanton20@gmail.com
9CynthiaTerry20Elisabeth28@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0JordanRomaguera21Daisy.Hane28@gmail.com
1EthelKohler62Katlynn19@hotmail.com
2SavannaWalker49Shyanne32@yahoo.com
3MalachiSchmitt40Veronica.Rolfson-Marquardt4@yahoo.com
4RachelSanford51Ted.Stamm36@yahoo.com
5RooseveltYost58Damon_Johnston61@gmail.com
6EmilioKulas51Wanda26@gmail.com
7RoyStanton24Irving.Grant@hotmail.com
8RitaSchowalter55Greg72@yahoo.com
9HazelRobel25Herminia_Haley@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0MaudKemmer45Nadine10@hotmail.com
1MartinSatterfield23Dan.Heaney49@gmail.com
2JoshuaParisian24Diane_Bailey@gmail.com
3ConstantinLedner36Gene46@yahoo.com
4ReneBode46Sean.Walsh-Gleichner84@hotmail.com
5JackyUpton25Elvera_Veum@gmail.com
6LionelLueilwitz43Angela66@gmail.com
7MarionUllrich-Schimmel31Bradley.Russel@gmail.com
8EusebioKunde20Robyn_Will13@hotmail.com
9GenevieveSatterfield64Candice_Bogisich@gmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0ErnestoRussel57Alejandra.Wiegand75@gmail.com
1DorthaPfeffer46Herman83@gmail.com
2GarnettBogan25Anita_Okuneva-Russel@hotmail.com
3StanleyBergstrom35Easton_Rutherford11@gmail.com
4ElianeKing59Cynthia13@yahoo.com
5AbelEbert48Justin8@yahoo.com
6LourdesErdman54Tim23@gmail.com
7SylviaDaugherty31Judge_Denesik3@hotmail.com
8FranciscoFeil61Henderson.Doyle50@hotmail.com
9RichardKub37Melba_Kovacek-Huel74@yahoo.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0MilanHintz47Krystel10@hotmail.com
1TrentReichel30Carroll.Bruen@gmail.com
2LorenzoHarvey52Orie9@hotmail.com
3JanOrn65Maybelle23@yahoo.com
4OraGraham54Caleigh92@yahoo.com
5KelliKessler57Don80@gmail.com
6PamelaOsinski37Shaylee_Mertz@gmail.com
7ErickaHeller40Gwendolyn_Nicolas87@yahoo.com
8AnitaCorwin26Jo_Bauch8@gmail.com
9VernaQuigley18Sarah86@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0JacquelineWelch59Brody.Hagenes43@hotmail.com279-827-8789 x017userinactive1/11/20264/2/2025
1LeeProhaska34Braden.Christiansen33@gmail.com1-834-563-2486 x190useractive2/13/20265/28/2025
2ScottyDeckow55Alisha.Muller@yahoo.com554.692.6527 x19766useractive12/25/20254/19/2025
3CarmellaRaynor30Claude_Mante78@hotmail.com(975) 924-8349 x777userinactive7/14/202512/12/2025
4JulieHilpert54Reva.Murazik@yahoo.com(287) 761-0371 x62645admininactive8/3/202512/31/2025
5JonathonStreich49Shawna_Blanda25@hotmail.com247-598-8889 x8530adminactive1/21/20267/10/2025
6BraxtonRoberts-Cremin27Russell.Reichel71@yahoo.com443.663.2833useractive4/8/20252/24/2026
7SantiagoVeum23Traci.Ledner@hotmail.com354-424-2802 x0411userinactive2/25/202611/27/2025
8AbeHowell39Leilani.Flatley@hotmail.com(441) 629-9266 x13211userinactive11/17/20253/18/2026
9BennyBode64Orpha_Bogan@gmail.com1-231-995-7878 x25728admininactive6/4/202512/16/2025

Header Groups

iduser
nameageemail
firstNamelastName
0AnnabellDickinson34Deanna69@hotmail.com
1ErikaLittle31Jonathan.Harvey@gmail.com
2DoraZemlak40Javonte18@gmail.com
3ElijahHackett26Verna.Cummerata@hotmail.com
4ViolaGrimes54Elsie75@gmail.com
5JeffreySchroeder32Rosemary13@gmail.com
6TashaOlson38Claudie.Gottlieb95@gmail.com
7BrentGlover54Billie61@gmail.com
8UnaGorczany26Geneva.Champlin62@gmail.com
9BrendaHahn63Laurianne23@yahoo.com
iduser
nameageemail
firstNamelastName
0LeviJohns29Olive59@yahoo.com
1NeilMcClure35Billy_Lowe@yahoo.com
2HollyWyman58Beatrice49@gmail.com
3AlvenaLehner50Maria_Wehner69@gmail.com
4ReidWolff53Catherine.Streich@hotmail.com
5GloriaFrami33Heidi.Nolan@hotmail.com
6CraigStroman18Kyla_Bartell@gmail.com
7JohnErnser65Laurence_Boyle78@hotmail.com
8VickieLangworth59Terri.Doyle3@yahoo.com
9OthoBorer20Kelsi.Goodwin@hotmail.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0MaryseO'Kon31Virginia_Kessler4@gmail.com
1AnnabelHermiston31Nina_Tremblay-Kautzer@yahoo.com
2JeramyMarquardt55Lisa32@gmail.com
3ElvieChristiansen54Rahul_Stark30@gmail.com
4HelmerLubowitz44Orlando81@hotmail.com
5RaymondOrtiz21Ivan85@yahoo.com
6ScottKuphal18Cameron.Rohan84@yahoo.com
7ViolaMarks26Shirley_Ziemann@gmail.com
8RyanHoppe52Jazmyn42@yahoo.com
9RitaSchowalter58Luella.Heidenreich@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
0KarianneReynolds61Kristy.Zboncak88@gmail.com
1GretchenLakin-Weimann27Vivian_Stehr-Runolfsson@hotmail.com
2TamaraRau61Brendon_Cronin78@hotmail.com
3PauletteWest41Fredrick68@yahoo.com
4BrandiErnser62Delia_Hickle@yahoo.com
5GeraldineBayer27Freida69@yahoo.com
6LaverneHeathcote51Samuel_Marvin@yahoo.com
7CurtKshlerin37Evelyn.Champlin@hotmail.com
8GlendaWindler29Talia.McDermott99@gmail.com
9DaveLittle38Margie_Quigley49@gmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0KaraBorer57Mamie.Krajcik52@gmail.com
1AngelStehr20Savanna_Oberbrunner@gmail.com
2BillieDare55Moses.Bernier77@gmail.com
3GlennJohnson34Derick39@yahoo.com
4AidenKeeling28Barton_Pfannerstill22@gmail.com
5WilfredCrona61Terri.Thiel@gmail.com
6DejaOkuneva18Jerald.Maggio@hotmail.com
7EvelynStoltenberg46Dax.Lind87@gmail.com
8ShawnGleichner-Reynolds27Josephine.Wilderman90@yahoo.com
9InezThompson62Edward_Senger@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0LindsaySchaefer34Blanche_Hahn@yahoo.com
1NormanKuhlman18Sheldon63@yahoo.com
2ConnieMarks19Gennaro.Senger37@hotmail.com
3RafaelHand39Sonja.Smitham@gmail.com
4ElmerSchuppe63Eve_Gutkowski@gmail.com
5JaleelAnkunding-Grady46Simon_Wilkinson61@gmail.com
6MosesMcKenzie27Dario_Rogahn19@yahoo.com
7DeloresSawayn42Dean28@yahoo.com
8TorreyHessel61Jalyn.Heidenreich39@yahoo.com
9JamelMetz65Theodora_Mitchell28@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
3DaveUllrich64Breanna.Sanford@gmail.com
0LilaQuigley61Pasquale65@hotmail.com
6KimberlyHansen57Lue_Stracke60@hotmail.com
4ReubenBruen53Pattie94@gmail.com
5ThomasBrakus46Valentina_Stroman@yahoo.com
7ClydeO'Reilly-Hessel44Jerrold.Luettgen14@gmail.com
1PrudenceHeathcote42Lindsay.Feeney@hotmail.com
2MikaylaTrantow34Christian73@hotmail.com
8LorraineKris28Hassie27@gmail.com
9MaximusWilderman28Jeannette_Fadel@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0AshleyRau33Brody41@hotmail.com
1AdrianaMohr32Justin66@gmail.com
2NealLabadie35Dallas93@gmail.com
3IsabelWitting20Karen92@hotmail.com
4NormanTowne22Baby_Nader-Pagac@yahoo.com
5JosephineWiza49Pat_Powlowski@hotmail.com
6GenevieveOkuneva38Adrien.Koch55@yahoo.com
7MaximeMosciski61Mack86@gmail.com
8FloraRau18Joseph.Kuvalis@hotmail.com
9CaseyWuckert58Sonja4@yahoo.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0BenjaminMacejkovic60Alyssa.Osinski@hotmail.com
1AdolfoMarks51Marjorie_McDermott46@yahoo.com
2CiceroNitzsche64Adolfo97@gmail.com
3KrystalConnelly64Marina97@hotmail.com
4GeorgeDouglas60Lula_Wisozk@gmail.com
5MarielleBalistreri47Forrest.Brown45@hotmail.com
6LaviniaUllrich-Littel32Gabriel.Sanford2@yahoo.com
7HarveyTowne-Yost21Fred_Bechtelar@gmail.com
8MargarettaOrn28Raquel.Kris20@hotmail.com
9AprilRolfson33Hanna76@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0AlmaWolf42Darrel_Pfannerstill@hotmail.com
1JudithKihn38Troy86@yahoo.com
2GregoryPurdy56Mandy_Altenwerth@yahoo.com
3MarshaKing58Latoya22@yahoo.com
4ZionHarris61Martina_Powlowski64@yahoo.com
5JacquelineHowell35Evelyn.Bernier@yahoo.com
6CarissaKris44Margarita.Erdman84@gmail.com
7TraceyGleichner26Alton54@yahoo.com
8BaileyKunze27Ernesto_Gleason33@gmail.com
9AbelBeer51Rosemarie.Flatley39@hotmail.com

Manual Sorting

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

idfirstNamelastNameageemail
0DaphneeHodkiewicz-Kihn36Bobby.McClure65@hotmail.com
1BrianLeuschke29Gina.Corwin60@gmail.com
2ArmandoRunte47Brian.Ward87@hotmail.com
3JeanCummerata61Henry65@hotmail.com
4ReyesMaggio65Antonia.Durgan65@gmail.com
5EttiePadberg24Valerie_Hansen83@hotmail.com
6FaithPurdy31Trevor79@gmail.com
7MaryannLind55Twila_Bailey51@hotmail.com
8LudwigVeum58Lura65@yahoo.com
9LaurynDavis22Clovis76@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
0LynnGlover35Wendy94@gmail.com
1AryannaBecker-Glover52Serena_Brown42@yahoo.com
2GeorgiaGrant23Emma_Murphy96@gmail.com
3CliffordBalistreri43Christelle_Reichert61@yahoo.com
4JavierBernier53Arlo.Stroman28@yahoo.com
5OrrinMills47Idell.Ledner91@gmail.com
6WernerAnkunding23Camille_Donnelly12@hotmail.com
7RoyWaelchi55Drew.Rodriguez17@gmail.com
8SaraiEmard23Taylor.Bechtelar@yahoo.com
9ReggieDibbert48Dale.Cummings@gmail.com

Control Sorting

idfirstNamelastNameageemail
0TaraPredovic23Walter64@hotmail.com
1LudieTorphy28Kellie_Lemke31@hotmail.com
2LayneRatke57Josefina.Hegmann-Crist0@yahoo.com
3WillieHudson20Lloyd_Feeney42@hotmail.com
4JadaHermann31Michelle.Wilkinson@yahoo.com
5MaryannAnderson55Johnathan_Spencer85@hotmail.com
6JakaylaMosciski55Effie_Ankunding61@yahoo.com
7MirandaSchuppe28Maureen3@hotmail.com
8MinaEmmerich56Shayne97@gmail.com
9MittieStiedemann53Edmond.Medhurst@hotmail.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
0OliviaAbbott-Gutkowski65Louis34@gmail.com
1DannyNicolas30Henri91@yahoo.com
2KentBashirian38Aubrey34@hotmail.com
3SilviaO'Connell23Andy38@gmail.com
4JeremiahBahringer19Rosetta_Abernathy13@yahoo.com
5ConcepcionCassin62Eunice78@gmail.com
6KristopherSenger40August.Treutel71@yahoo.com
7IraHalvorson29Jarod.Cronin@hotmail.com
8KrystalRitchie27Clifton.Bailey@gmail.com
9CaseyJaskolski60Ora86@gmail.com
10AmariRolfson27Sonia.Emmerich-Kuvalis@gmail.com
11LorenaHills28Margie.Maggio41@hotmail.com
12AlanFahey58Viola72@hotmail.com
13HildaGreenholt53Arvel.OKeefe-Koelpin@yahoo.com
14SadieBashirian60Reginald.Heathcote@yahoo.com
15BlancaDare50Jodi83@hotmail.com
16EdgarDouglas25Macey55@yahoo.com
17BennyTurner60Misty.Purdy24@yahoo.com
18DesireeCole59Stella.Lehner93@yahoo.com
19MableReynolds-Jenkins42Preston.Goodwin@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
10AlfredoRunte61Elizabeth_Cruickshank@yahoo.com
11WilmaMcKenzie48Nathan.Shanahan86@yahoo.com
12DamionThiel23Lena_Conn@yahoo.com
13BulahStokes30Michelle.Wiegand53@yahoo.com
14SamsonHettinger44Katelynn_Jenkins23@hotmail.com
15RosannaYundt51Martin_Crooks@yahoo.com
16JuanitaBlick40Carlos52@hotmail.com
17LoreneMraz23Eryn_Bruen97@gmail.com
18GordonBailey22Alvin_Nitzsche10@hotmail.com
19AmelieGislason48Amber.Franey@gmail.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0LuciaPfannerstill40Oliver_Labadie@yahoo.com
1WainoErnser57Duane.Gislason@yahoo.com
2ReneSchuppe29Kevin0@gmail.com
3DianneBernhard50Salvador_Davis9@yahoo.com
4TobyBeier26Nora_OKeefe@hotmail.com
5JoannOsinski61Mac_Klocko@yahoo.com
6BrandyChristiansen27Debra_Goldner@gmail.com
7RosaDuBuque44Kendra69@gmail.com
8MylesMarquardt59Leroy_Schneider@gmail.com
9TobySchroeder48Brigitte_Marks@hotmail.com
10BoMertz42Gilberto91@hotmail.com
11RickFrami48Freddie.Aufderhar53@gmail.com
12RobertaGutkowski34Camille62@yahoo.com
13MarioRogahn57Nicole.Ankunding55@yahoo.com
14CeasarPadberg45Vita_Hegmann@yahoo.com
15KristinKemmer51Devante30@hotmail.com
16AlbertoO'Connell36Johnathan_Collins@hotmail.com
17ArleneDaugherty50Dewey.Rowe2@yahoo.com
18CorineSimonis35Guiseppe_Hermann@gmail.com
19AdalbertoTurner23Antonetta_Bayer@gmail.com

Control Pagination

idfirstNamelastNameageemail
0DannyJacobs57Robyn.Kutch@yahoo.com
1MargarettSchoen21May_King@hotmail.com
2SadiePowlowski64Delbert_Robel@hotmail.com
3GailCrona47Jerod.Blick0@yahoo.com
4CeceliaSchoen35Floyd.Towne@gmail.com
5NinaAbernathy45Brandi99@gmail.com
6DorisWeimann42Tara_Hand95@yahoo.com
7WinnifredSawayn58Camille31@yahoo.com
8DavidMayer48Dereck43@gmail.com
9DesireeCassin55Odessa_Langworth@yahoo.com
10SalvatoreHane28Jody.Balistreri@yahoo.com
11ShariBashirian41Everett.Dibbert28@hotmail.com
12BethMoen46Ellis95@hotmail.com
13JustinMurphy50Ronald_Schuppe96@gmail.com
14TanyaCruickshank59Marcus97@yahoo.com
15HeidiMcLaughlin27Karen_Pollich@yahoo.com
16JocelynSchaefer58Dayna27@gmail.com
17GregGorczany32Guillermo_Bayer87@yahoo.com
18ElbertHoppe45Emerson.Murphy25@hotmail.com
19JennyFritsch-Altenwerth48Guadalupe_Oberbrunner14@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0EdnaHalvorson36Muriel_Emmerich86@hotmail.com
1BraedenWeimann43Isabel5@yahoo.com
2KellyKohler31Eileen.Ziemann3@hotmail.com
3LuciaMarvin56Stuart42@hotmail.com
4RossCorwin61Kristi.Greenfelder75@yahoo.com
5SamanthaFarrell26Susan.Murphy41@yahoo.com
6MarianaHickle25Dora_Bauch@yahoo.com
7OralRussel42Pearl.Emmerich@gmail.com
8IsmaelKohler58Henrietta_Lueilwitz@yahoo.com
9StacyCormier45Claudia.Gutkowski47@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
0AltaHilll60Brett69@gmail.com
1MaxEbert54Florine_Kuvalis@yahoo.com
2AlphonsoKohler49Jeanie25@yahoo.com
3BarryWisoky-Ortiz54Krystal90@gmail.com
4KevenGrant61Opal.Schiller@gmail.com
5BridgetHarber42Kelvin.Heidenreich@hotmail.com
6KaceyTreutel21Monroe_Watsica59@hotmail.com
7ClarkQuigley53Muriel_Ruecker70@yahoo.com
8LonniePaucek38Phyllis.Murphy@gmail.com
9NormaLang35Marshall_Skiles@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0EllieMiller20Derek22@hotmail.com
1DeontaeMonahan38Julio39@yahoo.com
2MercedesMurray31Brett.Ankunding3@yahoo.com
3DonnieSchinner46Lee21@gmail.com
4ArvelNikolaus54Turner52@gmail.com
5WinstonCorkery62Donavon_Batz42@yahoo.com
6JeffBednar57Nicholas_Schowalter61@gmail.com
7PattyMertz20Elise.Dibbert21@yahoo.com
8JoannaSchmidt21Stewart5@yahoo.com
9AlexaneZiemann64Percy_Hammes62@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0RandolphTromp46Joseph_Shields@yahoo.com
1EllieBalistreri47Randal_Kunde@hotmail.com
2CharleneMcClure52Jovan_Nienow@gmail.com
3DexterLind26Maximillian_Marvin@yahoo.com
4AmosGleichner30Jalen81@gmail.com
5AlexisGottlieb31Patricia_Toy-Kilback@yahoo.com
6TaraTromp57Julio_Hills71@hotmail.com
7GinaHarber54Weston.Batz97@yahoo.com
8JodySmitham38Andrew.McCullough75@hotmail.com
9MathewPowlowski39Christ26@yahoo.com

Disable Row

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

idfirstNamelastNameageemail
0RosalynStrosin54Luther22@hotmail.com
1HenriettaRunolfsson57Nathan_DuBuque83@hotmail.com
2CullenJohns52Joan21@yahoo.com
3GuillermoCummerata61Samantha.Grimes@gmail.com
4AngieSimonis40Erika45@hotmail.com
5JoannReynolds24Eloise_Homenick@hotmail.com
6NatalieDaniel21Robyn_Bechtelar@gmail.com
7HiltonRyan41Leatha34@yahoo.com
8BraxtonBlanda28Daren28@gmail.com
9DarionJast-Sauer34Dock.Buckridge-Braun@yahoo.com

Control Row Selection

idfirstNamelastNameageemail
0ElmiraCruickshank22Bethany.Mills34@gmail.com
1BernadineLesch20Joe_Lakin@hotmail.com
2AlvahHarber64Theresa.Hansen@gmail.com
3KaraKshlerin21Ima39@hotmail.com
4EmanuelDouglas28Crystal.Dare56@yahoo.com
5KellieHyatt24Rick.Jacobi@yahoo.com
6EstevanGoodwin34Garry_MacGyver27@yahoo.com
7FaithAnkunding43Amelie9@gmail.com
8ToddDare43Kasandra.Brown88@gmail.com
9CleveRohan35Cary.Bechtelar86@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0SabrinaHyatt55Evan_Ratke82@hotmail.com
1MichealAltenwerth32Theron.Lesch@gmail.com
2KailynLarkin31Oliver_McLaughlin90@gmail.com
3CaroleCrona50Llewellyn.Wehner@hotmail.com
4DarwinWuckert42Sheila40@gmail.com
5MollieWard32Howard_Hyatt@yahoo.com
6DarinRomaguera37Gustavo93@yahoo.com
7AubreyConsidine48Rossie11@gmail.com
8NancyArmstrong55Jules.Marvin26@gmail.com
9MaxineHarber65Jalon.Corkery@hotmail.com

Set Default Filter

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

idfirstNamelastNameageemail
1BenjaminWunsch62Anastasia_Boehm@gmail.com
4MaximusBecker24Jacquelyn30@gmail.com
5RobertaQuitzon47Jarrod_Treutel39@gmail.com
9ToneyRutherford-Hartmann57Felipe.Gleason19@gmail.com

Control Filter

idfirstNamelastNameageemail
0HildaFeil40Wm_Aufderhar91@yahoo.com
1KellieLynch58Travis_Dietrich@gmail.com
2AprilLesch30Hans_Yundt43@hotmail.com
3ElenorStanton25Cory_Runolfsson-Lemke@hotmail.com
4DeweySmitham52Willie.Davis4@yahoo.com
5EarleneFay26Cary3@yahoo.com
6MarionBartell35Lela45@yahoo.com
7SamantaKerluke64Mortimer_Barton27@yahoo.com
8MollyGutmann29Deanna.Pacocha@hotmail.com
9NoeliaBeer59Doyle_Monahan-Labadie@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0RachaelMcLaughlin35Sidney51@gmail.com
1HughPacocha38Vicky0@gmail.com
2DawsonGibson27Myrtice.Kessler@hotmail.com
3LynetteBrakus46Amber98@yahoo.com
4AlonzoMonahan64Stephan_Kling@gmail.com
5DomingoCole19Shirley.Lebsack@gmail.com
6LillieFerry62Cara_Stracke-Witting@gmail.com
7EnriqueBoyer34Tony_Altenwerth30@gmail.com
8GloriaSmitham26Dusty74@yahoo.com
9DerrickGoyette39Myron_Zemlak@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
0AmeliaFranecki33Agnes.Roob@hotmail.com
1MaureenFerry19Ruben_Kuhn@hotmail.com
2OraLedner35Ora.Hoeger@hotmail.com
3MarkVandervort39Meghan_Parisian43@hotmail.com
4ClaudiaBergstrom64Lawrence17@yahoo.com
5KathyBeer49Kristine17@hotmail.com
6NicholasDoyle46Kristopher_VonRueden@gmail.com
7TerenceO'Conner-Bernier21Oral55@yahoo.com
8KristyKirlin20Kristine.Tillman@hotmail.com
9RosaliaBartell52Maggie.Gleichner@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

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

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