Table

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

idfirstNamelastNameageemail
0DanielleShanahan41Jacques_Hermiston50@yahoo.com
1EverettHeller25Clarence_Keeling@yahoo.com
2ErniePredovic32Mandy_Robel5@gmail.com
3DannyTromp32Coy.Schoen@hotmail.com
4BeckyPaucek21Walton_Kirlin20@hotmail.com
5DanykaWyman38Dolores.Towne31@gmail.com
6AndrewBauch22Domingo45@gmail.com
7AlonzoConsidine29Lowell.Fay56@hotmail.com
8TraceySimonis19Kylee55@hotmail.com
9BrandyQuigley32Imelda56@hotmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0BonitaKuhlman53Rossie.Larson@hotmail.com
1ElveraHartmann20Enos91@gmail.com
2BoydRowe28Teri.Parker92@yahoo.com
3MadieTurner51Kale.Greenholt9@yahoo.com
4EmmaWyman43Myrtice.Kertzmann60@yahoo.com
5JudsonBergstrom52King.Welch-Nolan7@hotmail.com
6ElouiseFlatley-Stiedemann43Dean.Stroman@yahoo.com
7ClarenceSchaefer65Edmund69@gmail.com
8SkylaKoss59Christy.Grady40@hotmail.com
9JewellJacobson61Cary_Crooks22@yahoo.com
idfirstNamelastNameageemail
0BonitaKuhlman53Rossie.Larson@hotmail.com
1ElveraHartmann20Enos91@gmail.com
2BoydRowe28Teri.Parker92@yahoo.com
3MadieTurner51Kale.Greenholt9@yahoo.com
4EmmaWyman43Myrtice.Kertzmann60@yahoo.com
5JudsonBergstrom52King.Welch-Nolan7@hotmail.com
6ElouiseFlatley-Stiedemann43Dean.Stroman@yahoo.com
7ClarenceSchaefer65Edmund69@gmail.com
8SkylaKoss59Christy.Grady40@hotmail.com
9JewellJacobson61Cary_Crooks22@yahoo.com

Change Size

idfirstNamelastNameageemail
0RodrickHegmann26Tami_Beatty39@yahoo.com
1CamronStiedemann34Emmalee.Bailey49@hotmail.com
2WilliamHane51Verdie.Skiles59@yahoo.com
3RosemarieMills28Alexis.Jerde@gmail.com
4WoodrowMurazik23Bernice_Vandervort20@yahoo.com
5TimCollins56Steven_Ratke@yahoo.com
6GersonDoyle41Gwen17@gmail.com
7SylviaWillms23Marcos.Hayes10@gmail.com
8AustinShanahan31Marlon_Simonis@gmail.com
9NaomiSimonis64Marion_OKon@yahoo.com
idfirstNamelastNameageemail
0RodrickHegmann26Tami_Beatty39@yahoo.com
1CamronStiedemann34Emmalee.Bailey49@hotmail.com
2WilliamHane51Verdie.Skiles59@yahoo.com
3RosemarieMills28Alexis.Jerde@gmail.com
4WoodrowMurazik23Bernice_Vandervort20@yahoo.com
5TimCollins56Steven_Ratke@yahoo.com
6GersonDoyle41Gwen17@gmail.com
7SylviaWillms23Marcos.Hayes10@gmail.com
8AustinShanahan31Marlon_Simonis@gmail.com
9NaomiSimonis64Marion_OKon@yahoo.com
idfirstNamelastNameageemail
0RodrickHegmann26Tami_Beatty39@yahoo.com
1CamronStiedemann34Emmalee.Bailey49@hotmail.com
2WilliamHane51Verdie.Skiles59@yahoo.com
3RosemarieMills28Alexis.Jerde@gmail.com
4WoodrowMurazik23Bernice_Vandervort20@yahoo.com
5TimCollins56Steven_Ratke@yahoo.com
6GersonDoyle41Gwen17@gmail.com
7SylviaWillms23Marcos.Hayes10@gmail.com
8AustinShanahan31Marlon_Simonis@gmail.com
9NaomiSimonis64Marion_OKon@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0LupeMorar50Marcos_Mitchell@hotmail.com
1TrystanYundt45Lindsey9@hotmail.com
2LaylaPfeffer46Vilma_Dicki@yahoo.com
3EarnestHoeger28Josefina.Weber67@gmail.com
4CydneyDaugherty-Dickinson23Samuel_Becker69@hotmail.com
5ChristieGusikowski29Carroll56@hotmail.com
6RoselynO'Connell47Deborah.Kautzer@yahoo.com
7RocioAbshire43Dominique.Douglas@hotmail.com
8SpencerBoehm22Bessie.Franecki@gmail.com
9MauriceRodriguez31Chesley_Wilkinson40@gmail.com
idfirstNamelastNameageemail
0LupeMorar50Marcos_Mitchell@hotmail.com
1TrystanYundt45Lindsey9@hotmail.com
2LaylaPfeffer46Vilma_Dicki@yahoo.com
3EarnestHoeger28Josefina.Weber67@gmail.com
4CydneyDaugherty-Dickinson23Samuel_Becker69@hotmail.com
5ChristieGusikowski29Carroll56@hotmail.com
6RoselynO'Connell47Deborah.Kautzer@yahoo.com
7RocioAbshire43Dominique.Douglas@hotmail.com
8SpencerBoehm22Bessie.Franecki@gmail.com
9MauriceRodriguez31Chesley_Wilkinson40@gmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0TrevorConnelly23Constantin_Howell@hotmail.com
1VincentSporer45Allison_Aufderhar79@hotmail.com
2MarkusLuettgen54Prince_Friesen@hotmail.com
3TylerRolfson64Shanie_Hickle@gmail.com
4LoisStroman-Yost26Oliver.Wiegand26@gmail.com
5MarieChristiansen41Marvin35@hotmail.com
6AlmaEbert47Derek.Barrows78@yahoo.com
7VictoriaReichert65Garry_Weber71@gmail.com
8AnabelKunde43Debbie_Willms6@yahoo.com
9MackKerluke31Karen_Kreiger43@hotmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0DomenickHomenick-Moen28Roy9@gmail.com
1JaneMraz21Greta29@hotmail.com
2EdwinCrooks36Jayme_Howell@gmail.com
3LandenMante42Joe77@hotmail.com
4DonnyCartwright56Manley44@yahoo.com
5AnselHagenes27Noah_Purdy@hotmail.com
6SusanWalsh54Itzel93@hotmail.com
7SibylKub24Kerry.Prohaska73@yahoo.com
8LoraBernhard43Jimmy_Carter28@gmail.com
9AlfredBalistreri20Aliya_Gusikowski67@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0NoraFahey59Elda75@gmail.com
1TomBeahan22Nova62@yahoo.com
2HannahHermiston51Virginia.Ratke28@gmail.com
3HollieTorphy31Isidro_Smitham@hotmail.com
4JoHirthe27Janis.Orn97@gmail.com
5LeonardoMohr45Audrey.Hoeger95@gmail.com
6MarcellaKassulke58Jannie_Cassin@yahoo.com
7DemarioDeckow32Dave59@hotmail.com
8CynthiaGoyette56Wade24@hotmail.com
9DarwinBeahan20Lana.Metz62@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0RonaldKlein38Barbara_Ondricka14@yahoo.com
1JohnathanAdams54Shari.Blick@gmail.com
2RodFahey55Dixie.Champlin@yahoo.com
3AgnesTromp54Nathen.Pagac@gmail.com
4EleanoreRussel56Phillip_Wuckert62@yahoo.com
5AmberO'Reilly42Mara58@yahoo.com
6BelindaConnelly24Tim_Mertz75@hotmail.com
7LemuelMoore43Kayla.Streich69@gmail.com
8ShaynaKassulke24Walter_Moen@gmail.com
9GarfieldSchmidt26Shaina.Crooks@hotmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0AshleighHand64Nicola_Bergstrom@gmail.com(884) 674-4690 x5502admininactive11/20/20258/12/2025
1CorrineChamplin46Adrian20@hotmail.com631.940.9813 x541userinactive11/24/202510/16/2025
2DejahJerde23Andre_Kunde99@gmail.com(675) 969-2298 x091userinactive12/28/20251/24/2026
3WilfredWolf47Adriana_Walsh-Cruickshank7@gmail.com1-779-236-2992 x78817useractive7/23/202510/26/2025
4ShanelleBlock59Carol.Borer93@hotmail.com(598) 899-0963 x020useractive7/12/20262/1/2026
5MattKohler64Manuela.Murphy@gmail.com(876) 393-9480 x0045admininactive11/10/20252/21/2026
6AgnesFrami55Betsy.Prohaska43@gmail.com1-212-340-7758admininactive8/29/20259/7/2025
7AprilBlick53Jerad_Fritsch10@hotmail.com(883) 651-2857 x6092adminactive3/5/20268/20/2025
8AlexanderConn48Glenn.Murray@hotmail.com288-315-8490 x76705admininactive3/31/20263/9/2026
9JakaylaKuhn55Kelley_Murphy-OHara62@gmail.com260.958.0761 x648admininactive10/11/20255/13/2026

Header Groups

iduser
nameageemail
firstNamelastName
0AlbertaKreiger26Archie_Mante@gmail.com
1AlysaPredovic57Mamie11@hotmail.com
2MarianSchaefer30Gianni14@gmail.com
3AlyshaZboncak50Abby_Quitzon28@gmail.com
4AdellaDonnelly19Miller_Frami69@yahoo.com
5LionelKshlerin45Nora51@gmail.com
6SeanVeum43Torey72@gmail.com
7EvelineErnser57Aylin.Kulas@hotmail.com
8WendellJerde65Enos27@gmail.com
9BeulahFritsch55Monserrat_DuBuque72@hotmail.com
iduser
nameageemail
firstNamelastName
0SheilaSauer51Sunny94@gmail.com
1ClementLubowitz34Carolanne_Labadie73@gmail.com
2HymanKovacek32Isabell98@hotmail.com
3KayleighRutherford64Hassie.Pouros@yahoo.com
4AllisonHyatt57Dwight55@yahoo.com
5MekhiLehner-Conn36Bryan.Larkin@gmail.com
6BeverlyKilback51Jimmy91@yahoo.com
7PearlHuel58Shelley_Larkin@hotmail.com
8ArthurHyatt53Connie62@hotmail.com
9KamilleStoltenberg39Lucy11@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0VirginiaRowe55Oda79@hotmail.com
1WhitneyDenesik27Sydni_Wehner76@yahoo.com
2AbbieZieme44Gabriella43@gmail.com
3TonyaLueilwitz18Martine22@yahoo.com
4KadenRoberts34Tammy32@yahoo.com
5CleveHoppe36Daryl.Bednar@hotmail.com
6AlexandraSanford61Rebecca_Bauch@hotmail.com
7SadieWalter52Adam.Roberts57@yahoo.com
8CodyShields19Lindsay70@yahoo.com
9JudyStanton27Demond82@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
0ThadSwift56Tommie.Pfannerstill83@gmail.com
1ElsieGlover60Amber66@hotmail.com
2BettyVeum51Timothy27@gmail.com
3BillieHoeger35Sidney.Lynch@yahoo.com
4SuzanneWolff40Vivien.Koch@yahoo.com
5JennaGrady45Rogelio46@gmail.com
6RosinaBoyle27Randall14@hotmail.com
7KathyBruen45Salvatore95@yahoo.com
8MarthaDaugherty30Rudy_Mitchell@hotmail.com
9BrittanyCole50Stella.Lueilwitz@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0StacyWalter47Aliza75@yahoo.com
1MarcellaDach40Fernando.Nicolas52@yahoo.com
2RosarioRunolfsdottir48Ed64@gmail.com
3TerriQuigley50Thomas22@hotmail.com
4DaishaKohler58Elnora_Stracke51@hotmail.com
5JohnathanHane39Clay18@yahoo.com
6RoryMueller44Lelia_Langworth35@gmail.com
7KevinWuckert64Treva20@hotmail.com
8JenningsHalvorson22Amos_Bailey@hotmail.com
9LeoneReichert43Kyla.Herzog@gmail.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0GarrySchmitt47Pascale76@gmail.com
1KathyO'Keefe31German_Kihn39@yahoo.com
2CalvinMayert24Lottie.Bradtke77@gmail.com
3AndreanneStehr39Clovis45@yahoo.com
4ElijahMcCullough50Justin.Harris@hotmail.com
5ThomasHansen22Gregg45@hotmail.com
6JoesphWiegand21Laura_Fisher@yahoo.com
7MayraHartmann48Rodolfo_Roob61@yahoo.com
8KayleeBecker38Alexis_Morissette@yahoo.com
9MelindaFeil36Ernesto5@gmail.com

Set Default Sorting

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

idfirstNamelastNameageemail
1WymanMacGyver59Lindsey5@gmail.com
0JuanitaMuller51Edmund21@yahoo.com
6KaciLarson-Marquardt48Jonathon30@hotmail.com
4ShawnGoodwin46Paul72@gmail.com
5LuzHackett44Anna.Abernathy@yahoo.com
2ClaudieMcGlynn36Luz_Prohaska@gmail.com
3IsacKilback34Kellie_OReilly@yahoo.com
7JaylinHudson24Karli.Moore@hotmail.com
9DennisMcKenzie23Israel.Hackett@hotmail.com
8MatthewBoyer18Mattie.Homenick61@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0DorcasJakubowski54Doyle_Torphy@yahoo.com
1EleonoreBerge36Efren_King18@yahoo.com
2ZoilaKub65Marjory99@hotmail.com
3KristyKessler33Stuart_Osinski@hotmail.com
4JamirLehner56Terrell_Ruecker@yahoo.com
5TimNader50Adrain61@gmail.com
6TanyaDickens28Karianne87@gmail.com
7DarlaHoppe35Cassie_Veum2@yahoo.com
8LenaRath45Moses_Hessel@yahoo.com
9WilmaAufderhar53Monica_Baumbach89@gmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0DianneLueilwitz64Mary.Deckow26@gmail.com
1LafayetteOrn60Frank35@hotmail.com
2GarettWyman55Jacqueline.Ferry44@hotmail.com
3BobbyFadel38Lynette_Crist50@hotmail.com
4NellaLabadie46Donnell_Trantow25@yahoo.com
5DaleJohnson38Verna62@gmail.com
6OrenRomaguera39Jay_King@hotmail.com
7EstelleCole39Selena_Jerde14@yahoo.com
8EvanO'Hara41Efren35@hotmail.com
9GroverKeeling41Lorena.Kemmer@gmail.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0CharlotteParisian51Lafayette.Altenwerth86@gmail.com
1EsperanzaConn60Margret_Abbott45@gmail.com
2NonaLynch50Alicia_Torphy39@hotmail.com
3EnriqueSporer36Viviane84@hotmail.com
4MildredBorer60Otis.Ernser@hotmail.com
5SarahBlanda55Kenneth_Jakubowski@hotmail.com
6LouieSimonis64Doreen_Tillman@gmail.com
7SilasWehner31Randall_Hoppe@hotmail.com
8SandyWard30Julian_Turcotte@gmail.com
9CaesarVonRueden23Sheldon.Quigley@yahoo.com

Manual Sorting

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

idfirstNamelastNameageemail
0LucindaPacocha40Gladys_Breitenberg11@yahoo.com
1NicoVonRueden52Suzanne35@gmail.com
2ClairBartell44Brice8@yahoo.com
3MarcosHarber49Raymond37@yahoo.com
4RickyBalistreri19Hoyt.Ruecker@hotmail.com
5MyronHeller33Santos.Simonis@gmail.com
6VladimirHeller21Telly40@yahoo.com
7FloridaBayer52Nora.Smitham@gmail.com
8LeticiaOrn60Jose.Ullrich@gmail.com
9BrandiBartoletti42Zackary26@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
0MaryHowe28Laurie.Considine30@hotmail.com
1SelenaLakin43Leland96@hotmail.com
2MarcusKunze60Judy_Ryan80@hotmail.com
3JacklynFraney25Todd.Williamson-Lowe@yahoo.com
4DuaneJenkins50Margaret68@yahoo.com
5EmanuelCole33Thalia_Stroman@yahoo.com
6CordieMann35Trevor_Haag@yahoo.com
7EarlConsidine38Rodolfo_Hane12@yahoo.com
8VidalRussel29Hattie1@hotmail.com
9RebekaRohan51Kaya_Smith64@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0HassanSchmitt51Ryley_Carter@yahoo.com
1RickeyZieme49Jorge_Dickens77@hotmail.com
2IkeO'Reilly55Seth.Zieme18@gmail.com
3MackQuigley22Gabe45@yahoo.com
4WesleyRussel64Kris.Botsford@gmail.com
5ConorKeebler63Rebekah_Thiel@gmail.com
6NealRutherford44Holly_Dooley20@hotmail.com
7LauraWolf-Langosh38Floyd_OConner@yahoo.com
8JuanNikolaus24Kay_Fay75@yahoo.com
9NadineBlock47Clyde.Hegmann89@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
0EloyJaskolski65Priscilla50@gmail.com
1JodiHalvorson55Miguel_Lesch@hotmail.com
2CarliStroman25Cayla_Parker@gmail.com
3MarcellaSchultz48Christian_Kilback22@hotmail.com
4FranciscoSchumm45Ronaldo67@gmail.com
5FeliciaDach58Gwen11@yahoo.com
6MaeOberbrunner-Grant30Jeanne.Reichert@hotmail.com
7MarcusD'Amore58Anna_Franey@hotmail.com
8JarrodGreenholt35Sylvia_Von8@hotmail.com
9DevinGrimes59Ginger_Kuhic@yahoo.com
10AlexandreBarrows45Antoinette.Harvey-Gorczany@yahoo.com
11CindyCarter38Pat_Trantow@gmail.com
12LesterDaniel42Hugo_Dickens@yahoo.com
13DandreWelch49Jimmie41@hotmail.com
14MelynaJerde25Vivien_Stehr-Trantow@yahoo.com
15LancePagac53Teresa.Hackett65@yahoo.com
16NormanBosco47Dean.Conn@hotmail.com
17HaroldWiza26Tracey.Kilback7@yahoo.com
18WadeHessel61Jamaal56@gmail.com
19JessicaJast19Trevion.Konopelski@hotmail.com

Set Default Page Index and Page Size

To set the default page index and page size, set defaultPagination to an object with the pageIndex and pageSize.

idfirstNamelastNameageemail
10GustO'Connell21Mortimer1@hotmail.com
11JeramieBergstrom64Dawn.Stehr40@hotmail.com
12ShaniyaBecker53Rory_Wolff@gmail.com
13TomasZboncak32Emmitt.Wisozk53@hotmail.com
14SylvesterGoyette37Jeanne.OHara@hotmail.com
15ZacharyGreenfelder48Samuel_Block6@hotmail.com
16AlecAbernathy47Kareem.Jacobi36@gmail.com
17StanleyBalistreri55Jayson.Conroy39@yahoo.com
18HayleyTurner55Bradley73@gmail.com
19ClareMcClure47Erin89@yahoo.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0LouisaHickle60Kenny.Skiles39@yahoo.com
1AlonzoSipes45Katheryn.Heller87@hotmail.com
2BryanZieme41Roberta_Kris26@gmail.com
3BennyRomaguera-West22Alisa_Mayer@gmail.com
4SallySkiles57Lorenz16@yahoo.com
5ElenaPfannerstill-Krajcik21Marsha_Blick@yahoo.com
6EliasKreiger56Felicity61@gmail.com
7RonnyChamplin25Berta78@yahoo.com
8MaxineGottlieb21Hassie_Koelpin45@gmail.com
9DesmondMorar30Cyril60@gmail.com
10CorrineDoyle30Jedediah.Bernier@yahoo.com
11RockyRippin42Cleo.Zboncak@gmail.com
12LarryMcDermott36James_Dickinson84@hotmail.com
13AlexzanderDickens57Daisy59@yahoo.com
14DwightLynch30Erica68@hotmail.com
15LyleKoss24Finn87@hotmail.com
16EmeraldWaelchi40Ian.Kreiger82@gmail.com
17GeovanniRaynor54Royce.Conn-Stanton76@yahoo.com
18OletaBailey27Paulette_Kris@yahoo.com
19JovannyHamill63Stephania.Ledner@yahoo.com

Control Pagination

idfirstNamelastNameageemail
0ShermanBartoletti39Sigmund33@gmail.com
1KeiraSchimmel22Billy3@hotmail.com
2LeonorCorwin31Martha.Schamberger@gmail.com
3BiankaKoss34Johnathan.Kozey1@yahoo.com
4ShirleyWalsh42Richard.Lubowitz@gmail.com
5TurnerBradtke65Meghan.Dickinson69@gmail.com
6CydneyBeatty34Leora.Kulas34@hotmail.com
7ReyBeier35Sylvan31@gmail.com
8HelenTowne37Vivian.Moen37@gmail.com
9SabrynaSchuster39Marcella_Balistreri26@gmail.com
10FordJohnston57Hermann22@yahoo.com
11MatthewJacobs29Willard_Wilkinson10@gmail.com
12JamesHerzog32Ahmed_Steuber31@yahoo.com
13PattiSchmitt32Terrence_Prohaska-Gorczany63@hotmail.com
14FrederiqueMacGyver35Joe_Harris29@yahoo.com
15AnaisKiehn62Abel.Harber12@hotmail.com
16PaulineRaynor50Lew.Lemke@yahoo.com
17ElishaZulauf-Veum46Floyd93@gmail.com
18BettyeSchroeder54Elisha.Oberbrunner52@hotmail.com
19RessieNitzsche60Linda32@yahoo.com

Enable Row Selection

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

idfirstNamelastNameageemail
0RickeyPollich-Schiller49Kristi.Boyer@yahoo.com
1FreddieWolf20Marcelle_Weissnat96@gmail.com
2KristenBartell23Simon.Gorczany46@gmail.com
3BeulahParisian44Deion_Nolan@yahoo.com
4IrvinWyman26Darin.Beer@gmail.com
5ShelleyKilback52Charlotte.Hills@hotmail.com
6KatharinaConnelly43Sonia_Adams-Little@yahoo.com
7NeldaDenesik65Guiseppe_Fadel@yahoo.com
8ElizabethUllrich43Erika12@yahoo.com
9EricBernier54Alanis_Schoen51@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
0SierraDickens23Rufus_Schoen82@hotmail.com
1EugeneLangworth38Bradley.Gutmann14@yahoo.com
2LelahKunde48Cary_Boyer@hotmail.com
3BrandonGlover38Erma60@gmail.com
4BenDaniel50Miguel15@hotmail.com
5ImaWolf55Nash_Wintheiser@yahoo.com
6LadariusDicki54Raheem.Hackett48@hotmail.com
7MarcoLebsack45Luis.DuBuque@hotmail.com
8DaphneFahey29Bradford_Jaskolski@hotmail.com
9DarrellCronin42Tami.Feil60@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0AnneMiller56Elisabeth.Runolfsdottir@gmail.com
1GertrudeGibson44Malika.Mraz83@yahoo.com
2AntoinetteStiedemann42Jimmy.King@gmail.com
3MayDickinson55Elena2@gmail.com
4KatrinaReichert49Donna_Olson1@yahoo.com
5ClaudineStanton63Mervin.Swift93@yahoo.com
6FelixStamm34Annie76@gmail.com
7WilliamThiel56Henriette_Gerhold@gmail.com
8RosemarieSchroeder60Christine.Ebert14@yahoo.com
9SabrinaRoberts49Emie_Trantow@yahoo.com

Hide Checkbox

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

idfirstNamelastNameageemail
0HarrySkiles60Carolanne_Leffler@hotmail.com
1DaytonGleichner32Dena.Schowalter@gmail.com
2DarleneFeeney26Marta_Nikolaus@yahoo.com
3CliffordMedhurst37Latoya_Strosin@yahoo.com
4DarylDooley22Kristie37@hotmail.com
5HeavenWeissnat57Zane68@gmail.com
6AndreKub49Aliza_Kuvalis@hotmail.com
7ElroyFahey39Vidal_Rippin@gmail.com
8BrycenWest44Jack40@hotmail.com
9AlfredMurray55Bradford.Harris@hotmail.com

Disable Row

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

idfirstNamelastNameageemail
0WilmaLebsack57Damaris38@hotmail.com
1BetsyKshlerin24Nellie_Ebert6@hotmail.com
2LornaBednar22Terrance81@yahoo.com
3AndreGoodwin64Carolanne_Breitenberg68@gmail.com
4HildaDouglas50Leone.Fritsch-Gutmann@gmail.com
5JayLangosh44Emil48@yahoo.com
6RicardoMetz44Calvin86@hotmail.com
7VaughnJenkins-Gorczany62Toby_Steuber@yahoo.com
8EmoryCartwright59Becky.Konopelski3@hotmail.com
9TinaRitchie24Glenda_Bayer40@yahoo.com

Control Row Selection

idfirstNamelastNameageemail
0StefanieZiemann65Tavares.Howell@gmail.com
1MildredSchuster51Lea_Heaney@yahoo.com
2DeloresWolff41Susie17@hotmail.com
3RhiannaO'Reilly38Ignacio.Kessler@gmail.com
4GenesisBins38Jamison29@yahoo.com
5DonnaHayes39Osbaldo.Klocko@hotmail.com
6EstherSkiles48Jean.Dicki8@yahoo.com
7HelenKerluke62Estelle79@yahoo.com
8JustinMitchell37Clemmie34@yahoo.com
9TrevorAltenwerth25Moses.Will59@gmail.com

Use Filter

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

idfirstNamelastNameageemail
0IsidroTreutel61Norval_Zulauf@hotmail.com
1MichelleBlock32Ellis80@yahoo.com
2CassieStrosin42Alton.Murphy@hotmail.com
3RickyHuels21Brenda.Yost@hotmail.com
4MarvinFahey63Perry26@hotmail.com
5RonnieMitchell65Lulu1@yahoo.com
6JohnathonWintheiser18Lynda19@hotmail.com
7EdithHalvorson40Mafalda62@hotmail.com
8MarianDickens48Maria_Bartoletti@hotmail.com
9GilbertoMoore42Sammy54@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
0TrishaCorwin28Elena_Emmerich13@gmail.com
1BobKrajcik25Terrance.Berge46@gmail.com
2JaymeHalvorson45Don_Gutkowski@gmail.com
6CortezWalter41Bryan97@gmail.com
8MonserratGottlieb40Shea0@gmail.com
9DallasMcKenzie-Gutkowski64Soledad_Ward@gmail.com

Control Filter

idfirstNamelastNameageemail
0CallieChamplin26Alejandro_Wilderman20@hotmail.com
1FletaHauck41Elmira_Hoeger@yahoo.com
2DoloresGutmann64Ruben.Herzog88@gmail.com
3BillieHammes58Noel74@hotmail.com
4RebeccaReichel25Gene_Rempel83@yahoo.com
5HendersonMedhurst34Josefina67@hotmail.com
6RobinMarks55Corene_Turner@hotmail.com
7MinnieKohler52Owen93@hotmail.com
8MaribelHand63Elsie.DAmore@yahoo.com
9ElmerSpinka40Clinton.Thompson90@yahoo.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0ElisaKiehn38Napoleon88@gmail.com
1ElwynHermann40Irving.Abbott51@gmail.com
2CharliePfannerstill35Tomas_Wilkinson@gmail.com
3AlexandreO'Conner29Katelyn89@gmail.com
4WilmaKonopelski31Doris.Goodwin@hotmail.com
5GersonMurazik36Timothy_Wisozk@yahoo.com
6GayleWest31Betsy.Donnelly80@hotmail.com
7RubyeFrami33Faye.Cole@yahoo.com
8AmberHoppe52Elmo.Krajcik@hotmail.com
9CarlGislason48Mertie_Lakin@hotmail.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
0EmmaleeHodkiewicz27Jose_Herman67@yahoo.com
1YolandaLowe56Wendy30@yahoo.com
2JimmieCorwin43Abraham39@gmail.com
3MatteoBogan44Anastacio92@yahoo.com
4DarionKoch42Dejuan9@hotmail.com
5SharonBraun24Wayne.Weimann@gmail.com
6JohnMitchell56Milton.VonRueden91@hotmail.com
7GaryMetz39Carolyn_Grady22@yahoo.com
8BridgetNolan59Zora_Runolfsdottir59@gmail.com
9LarrySimonis33Jill11@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