Table

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

IDFirst nameLast nameAgeEmail
0MathildeOrtiz24Zechariah_Cummings@hotmail.com
1GiovannyDurgan54Braulio.Stamm24@hotmail.com
2MarilynRodriguez28Demetris_Herzog@yahoo.com
3DomenickSpinka-Schroeder33Adele_Welch@hotmail.com
4SantosSpinka65Loyce_Herman86@gmail.com
5SheaMedhurst45Francesca0@yahoo.com
6JarredSteuber55Modesta.Swaniawski@hotmail.com
7BarryCartwright36Bradford_Konopelski@hotmail.com
8RickieMacGyver22Humberto_Abernathy-Hansen12@hotmail.com
9KayliReilly-Donnelly37Litzy_Schuster36@gmail.com

Usage

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

Change Variant

IDFirst nameLast nameAgeEmail
0PresleyParisian34Nicholas38@hotmail.com
1LouisaWilkinson40Brody_Rau@hotmail.com
2FreidaKonopelski19Conner48@yahoo.com
3DiegoWyman60Sydnee23@gmail.com
4HoytBergnaum44Winston.Marvin@yahoo.com
5JamesonGrimes42Theresia_Ondricka23@gmail.com
6KalebBrown20Emily.Dickinson@gmail.com
7DereckKreiger49Felicita62@hotmail.com
8QuincyKrajcik46Magnolia61@gmail.com
9AnneAbernathy53Jonathan.Kiehn@gmail.com
IDFirst nameLast nameAgeEmail
0PresleyParisian34Nicholas38@hotmail.com
1LouisaWilkinson40Brody_Rau@hotmail.com
2FreidaKonopelski19Conner48@yahoo.com
3DiegoWyman60Sydnee23@gmail.com
4HoytBergnaum44Winston.Marvin@yahoo.com
5JamesonGrimes42Theresia_Ondricka23@gmail.com
6KalebBrown20Emily.Dickinson@gmail.com
7DereckKreiger49Felicita62@hotmail.com
8QuincyKrajcik46Magnolia61@gmail.com
9AnneAbernathy53Jonathan.Kiehn@gmail.com

Change Size

IDFirst nameLast nameAgeEmail
0WestonBeahan40Mia.Feeney94@hotmail.com
1ChaseSimonis29Mabel61@gmail.com
2DwaynePollich62Lonie99@hotmail.com
3JamaalChamplin28Celestino.Pfeffer@yahoo.com
4RoyceBeatty37Darnell.Walsh@gmail.com
5MarianaRitchie23Gretchen6@gmail.com
6BernadetteMarks27Genesis_Upton70@gmail.com
7ElnoraGoyette45Kenneth92@gmail.com
8AlessiaHowell-Langosh25Luke_Kunze@yahoo.com
9RaleighJacobi28Baby.Muller@hotmail.com
IDFirst nameLast nameAgeEmail
0WestonBeahan40Mia.Feeney94@hotmail.com
1ChaseSimonis29Mabel61@gmail.com
2DwaynePollich62Lonie99@hotmail.com
3JamaalChamplin28Celestino.Pfeffer@yahoo.com
4RoyceBeatty37Darnell.Walsh@gmail.com
5MarianaRitchie23Gretchen6@gmail.com
6BernadetteMarks27Genesis_Upton70@gmail.com
7ElnoraGoyette45Kenneth92@gmail.com
8AlessiaHowell-Langosh25Luke_Kunze@yahoo.com
9RaleighJacobi28Baby.Muller@hotmail.com
IDFirst nameLast nameAgeEmail
0WestonBeahan40Mia.Feeney94@hotmail.com
1ChaseSimonis29Mabel61@gmail.com
2DwaynePollich62Lonie99@hotmail.com
3JamaalChamplin28Celestino.Pfeffer@yahoo.com
4RoyceBeatty37Darnell.Walsh@gmail.com
5MarianaRitchie23Gretchen6@gmail.com
6BernadetteMarks27Genesis_Upton70@gmail.com
7ElnoraGoyette45Kenneth92@gmail.com
8AlessiaHowell-Langosh25Luke_Kunze@yahoo.com
9RaleighJacobi28Baby.Muller@hotmail.com

Change Color Scheme

IDFirst nameLast nameAgeEmail
0MarciaCrooks37Adolph87@yahoo.com
1AlbinOndricka20Elbert_Klocko@gmail.com
2CleoraBarrows59Howell6@hotmail.com
3TrevionLangworth32Hollis70@yahoo.com
4LaneHessel33Paolo.Grant8@yahoo.com
5HertaLeuschke44Alf_Kautzer@hotmail.com
6MaximillianWolf59Julian_Rogahn25@yahoo.com
7HumbertoHintz19Paris_Fadel89@yahoo.com
8SydneeMertz42Loyal.Champlin@yahoo.com
9ConradJacobson40Clara93@yahoo.com
IDFirst nameLast nameAgeEmail
0MarciaCrooks37Adolph87@yahoo.com
1AlbinOndricka20Elbert_Klocko@gmail.com
2CleoraBarrows59Howell6@hotmail.com
3TrevionLangworth32Hollis70@yahoo.com
4LaneHessel33Paolo.Grant8@yahoo.com
5HertaLeuschke44Alf_Kautzer@hotmail.com
6MaximillianWolf59Julian_Rogahn25@yahoo.com
7HumbertoHintz19Paris_Fadel89@yahoo.com
8SydneeMertz42Loyal.Champlin@yahoo.com
9ConradJacobson40Clara93@yahoo.com

Add Outer Border

To add an outer border, set withBorder to true.

IDFirst nameLast nameAgeEmail
0FrancescaHand34Jaquelin26@gmail.com
1DulcePadberg-Willms30Jaylin_Kulas@hotmail.com
2NathenZieme37Elenora_Jacobi16@yahoo.com
3GillianJohns28Ashleigh.Little24@hotmail.com
4VitaMcCullough53Marjorie99@hotmail.com
5ConstanceMcDermott58Anais.VonRueden@hotmail.com
6DiannaLynch43Cydney61@gmail.com
7LysanneBerge-Koch35Marilyne47@gmail.com
8BarneyAufderhar33Zechariah35@gmail.com
9TreFranecki51Domenick52@hotmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

IDFirst nameLast nameAgeEmail
0AudieSpencer35Lenny41@yahoo.com
1CaesarGreenfelder-Russel19Ray_Trantow@yahoo.com
2EmeraldKoelpin-Nader44Newell.Mann7@gmail.com
3CleveMiller52Carmel80@hotmail.com
4KailynKessler54Jodie33@gmail.com
5LenoraUpton30Alvis_Hauck@yahoo.com
6FerneBuckridge61Keagan_Terry@gmail.com
7AraLittel53Fannie55@gmail.com
8DeshawnWalter54Birdie61@yahoo.com
9AbeBruen53Mireya3@hotmail.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

IDFirst nameLast nameAgeEmail
0ShanaWiegand22Jayden84@yahoo.com
1VanceSchultz48Rowland21@gmail.com
2RoselynBoyer64Mindy47@gmail.com
3AlvaBrakus45Chad_Lakin23@gmail.com
4AngelaChristiansen35Guy83@yahoo.com
5TroyKemmer24Ahmed24@gmail.com
6AnnabelDenesik29Camila1@hotmail.com
7CarmeloSauer54Lempi_Jacobson@gmail.com
8LupeBergnaum31Carmela_Stokes@gmail.com
9TadKoch45Helmer93@hotmail.com

Striped

To enable striped rows, set striped to true.

IDFirst nameLast nameAgeEmail
0HenriettaMurphy65Janet_Halvorson@hotmail.com
1ChetVonRueden62Kayley_Paucek-Mante61@yahoo.com
2ChazSchowalter27Weston73@yahoo.com
3ClareHills47Kayden17@gmail.com
4VernerLeffler19Sheri_Cremin@gmail.com
5FionaSenger28Alexa_Marvin86@hotmail.com
6JasperMonahan56Cindy.Yost-Trantow@gmail.com
7ElroyKuphal63Laurel70@hotmail.com
8KendallFeeney40Jaeden26@gmail.com
9HelmerBeatty23Rodrick.Goldner@yahoo.com

Scroll Area

To enable scroll area, set withScrollArea to true.

IDFirst nameLast nameAgeEmailPhoneRoleStatusCreated atUpdated at
0VickiMarquardt40Deshaun25@hotmail.com(501) 885-4345 x06656UserActive7/17/20267/4/2026
1RodgerHeller40Lola.Stroman-Bauch@gmail.com1-767-216-1498AdminInactive9/15/202612/6/2025
2DorisDurgan42Reagan92@hotmail.com611.591.2370 x79256UserInactive9/29/202611/27/2025
3AndreaRolfson55Giuseppe14@yahoo.com1-520-752-8946 x309AdminActive8/14/20264/3/2026
4ElliotVolkman64Zechariah21@hotmail.com(766) 831-2900 x36758UserInactive1/9/202611/14/2025
5MonroeGrady41Kasey.Muller@hotmail.com653-420-4204 x1949AdminActive7/20/20265/20/2026
6LylaZemlak26Sherwood.Kuvalis60@hotmail.com793.758.2493 x769UserInactive6/30/20269/6/2026
7EverardoBahringer52Electa31@yahoo.com219-609-4952UserActive7/6/20268/31/2026
8KayliMayer38Chanelle_Rogahn@hotmail.com(209) 700-3443 x990UserActive7/8/20261/23/2026
9GuadalupeNader43Jay71@gmail.com(359) 611-5958 x824UserInactive2/16/20261/11/2026

Header Groups

IDUser
NameAgeEmail
First nameLast name
0NathanielNikolaus46Jan_Hintz4@yahoo.com
1ChayaGoodwin46Elta_Stracke@hotmail.com
2AdeleKoch28Dereck53@yahoo.com
3RonZboncak53Jamarcus.Greenholt81@gmail.com
4LoriRodriguez25Zachery_Pfannerstill@yahoo.com
5LaceyJohnston-Cremin31Alba.Jones98@yahoo.com
6JosiahMayer50Beatrice.Huel@yahoo.com
7CecileGottlieb44Gabriel84@gmail.com
8ShanonBradtke23Louie47@hotmail.com
9JoesphLehner33Herman.Mitchell@yahoo.com
IDUser
NameAgeEmail
First nameLast name
0DeweyConnelly40Ahmed75@gmail.com
1BartThompson40Fredy.Murray@hotmail.com
2CarolePadberg41Ada.Kertzmann@yahoo.com
3LonnyRatke36April_Kirlin80@gmail.com
4LavernFraney34Derick_Nolan@gmail.com
5PaulineGislason40Noel.Hickle39@yahoo.com
6ArielWalsh55Maeve.Trantow-Pouros@gmail.com
7CiceroOrtiz23Kelton.Hammes@yahoo.com
8ToniParisian34Clara86@hotmail.com
9ArdithBeer25Belle.Durgan@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
0SabrinaBalistreri33Alva_Abshire@gmail.com
1MariamPollich54Donny_Hilpert@yahoo.com
2FloLarson57Dorris29@hotmail.com
3FelipaPurdy19Angel.Balistreri@yahoo.com
4PearlieBalistreri38Willy_Kuhlman@yahoo.com
5ElnoraAbshire-Bashirian65Delbert.Kris50@yahoo.com
6ChristopFraney64Freeda.Spinka0@gmail.com
7AdolfoJacobson29Austin.Christiansen17@gmail.com
8GracielaGislason63Dean42@yahoo.com
9TheresaBogan59Aaron74@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
0SimeonHessel37Royal.Dietrich21@gmail.com
1BransonHartmann51Antone_Pouros@yahoo.com
2ManuelCruickshank59Sheryl.Hammes@yahoo.com
3FloMayert62Jennings.Mertz@hotmail.com
4HassanConsidine42Junius.Rau@yahoo.com
5AydenCarter55Irene.Wisozk5@yahoo.com
6DestanyPredovic24Deven_Jacobs48@yahoo.com
7MariahKutch-Wiegand65Daphney66@yahoo.com
8LillianaSchmidt26Norval.Kirlin@gmail.com
9JennieConroy28Ollie.Ritchie36@hotmail.com

Handle Row Click Event

To handle the row click event, use onRowClick.

IDFirst nameLast nameAgeEmail
0HobartPfeffer50Rodrick.Douglas25@yahoo.com
1AkeemStracke50Telly_Sanford93@gmail.com
2IdaRussel31Curtis_Brown55@gmail.com
3HaskellKub26Lina.Bechtelar@hotmail.com
4AlvertaKlocko45Diamond41@gmail.com
5EmmittWeimann26Althea33@yahoo.com
6JanyKozey43Oren.Bayer@yahoo.com
7DomenicoBashirian24Murray_Nitzsche44@gmail.com
8ZoeBednar60Garth_Padberg8@yahoo.com
9GuillermoJakubowski27Janiya_Volkman@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

IDFirst nameLast nameAgeEmail
0AnnamarieLehner60Estelle_Ernser@hotmail.com
1KailynGulgowski36Braulio_Russel@hotmail.com
2WaldoDuBuque62Dock29@yahoo.com
3TinaKoepp41Rupert.Heaney95@yahoo.com
4AntonioPurdy56Louie.Quigley@gmail.com
5TreBoehm57Camden_Purdy-Romaguera5@gmail.com
6RudolphBednar37Keaton_Conn@yahoo.com
7ReinholdPurdy22Jamie53@gmail.com
8IvahOlson64Krystina51@yahoo.com
9KylaZboncak32Myrtle84@hotmail.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
0CaitlynSchuster64Oceane76@yahoo.com
3RosinaDooley64Cloyd.Gibson@hotmail.com
8JulianneNitzsche53Marlee.Watsica29@gmail.com
9JohanKemmer53Arianna.Zulauf94@hotmail.com
1MarleneJohnson43Chris_Walter83@gmail.com
4WillieMedhurst39Brandi39@hotmail.com
6IrvinWalter37Raegan_Adams60@hotmail.com
5MatildaMedhurst33Maida_Bergnaum55@hotmail.com
7ZitaHuels32Liliane72@hotmail.com
2KeyshawnKlein27Lavern_Labadie32@hotmail.com

Disable Sorting

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

IDFirst nameLast nameAgeEmail
0TreyHeidenreich42Lilyan.Farrell96@gmail.com
1SydnieSipes37Mathias_Hirthe59@gmail.com
2SherwoodGrady57Macy_Schaefer@yahoo.com
3OrrinKuvalis43Arnold.Johnson@gmail.com
4TanyaPadberg63Walter3@gmail.com
5AbigaleHaag38Jordan.Hintz-Prosacco84@yahoo.com
6AlexandreJacobi21Maureen_Quigley@yahoo.com
7CooperSchultz36Delilah94@hotmail.com
8DanteDach38Kirsten.Kuhic@yahoo.com
9CasandraDenesik51Freeda_Moore@yahoo.com

Disable Multi Sorting

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

IDFirst nameLast nameAgeEmail
0FlavioJaskolski52Kieran85@yahoo.com
1YasminLemke30Constantin.Welch48@gmail.com
2ZoieStiedemann34Savannah18@gmail.com
3AliviaHayes22Lora75@gmail.com
4DexterAufderhar26Lizzie.Cole@yahoo.com
5PauletteWeissnat43Agnes_Balistreri80@hotmail.com
6TreyReichert18Derek.Cummings@hotmail.com
7KristaKuphal60Chandler.Funk@hotmail.com
8MateoVonRueden20Vallie30@yahoo.com
9AdonisMuller23Genesis_Gutkowski@hotmail.com

Set Maximum Sortable Columns

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

IDFirst nameLast nameAgeEmail
0MarcoKunde-Gottlieb60Nya87@hotmail.com
1GilbertHegmann40Nakia_OConnell35@gmail.com
2AthenaKessler29Katarina21@yahoo.com
3NiaSmitham30Aubrey_Lehner71@hotmail.com
4GianniRomaguera24Alexis43@hotmail.com
5CaryMiller32Sidney.Ankunding@gmail.com
6CordellMcCullough65Ramona82@gmail.com
7JaylanBecker52Jacey_McCullough4@gmail.com
8SavionPfannerstill36Vanessa7@gmail.com
9MortimerBlanda39Russell_Gislason@hotmail.com

Manual Sorting

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

IDFirst nameLast nameAgeEmail
0GideonHaag18Lilian84@gmail.com
1LafayetteBednar59Carolyne68@gmail.com
2LorettaHahn44Magdalen.Reichel@yahoo.com
3ChaimStiedemann52Orion37@hotmail.com
4GinaLesch41Kenneth.Raynor49@gmail.com
5ArnaldoChamplin53Nigel.Tromp10@gmail.com
6LunaDare19Yesenia.Boehm16@gmail.com
7LinnieSipes48Pearlie.Robel@yahoo.com
8LawrenceHarris54Jeramy94@hotmail.com
9EvalynSkiles38Nova_McLaughlin@hotmail.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
0OrphaFlatley43Kellen83@hotmail.com
1MiltonMante57Ben.Frami@yahoo.com
2VickyWeimann21Camylle27@yahoo.com
3ClarissaGerlach45Devon83@gmail.com
4ShannaReichel23Tomasa.Corwin29@gmail.com
5MarielleO'Kon44Linnie_Labadie43@gmail.com
6AniyaLedner61Felicia32@yahoo.com
7LydiaWaters60Carolyne97@yahoo.com
8PabloDoyle63Gunnar83@hotmail.com
9HilarioWolff37Rachael.Rodriguez@hotmail.com

Control Sorting

IDFirst nameLast nameAgeEmail
0AustynAnkunding28Valentin.Rogahn87@hotmail.com
1DavonteCormier28Keshawn_Lehner-Torp44@gmail.com
2LyleRoberts45Hassie10@hotmail.com
3VivienRenner35Orpha_Crist-Rempel85@hotmail.com
4DerekKlocko64Kayli_Wilderman@yahoo.com
5JaylanPowlowski21Blair1@gmail.com
6LeolaHammes62Raymond92@gmail.com
7DianaWatsica42Russel.Will@hotmail.com
8DevenKeebler61Adell.Nienow33@hotmail.com
9JovanMcCullough64Alden.Kozey@gmail.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
0DarenFunk43Louise.Farrell6@gmail.com
1PearlineHeller48Zelma_Cruickshank-Bashirian@hotmail.com
2EldaHoppe56Arnold_Nolan@yahoo.com
3EstebanKrajcik50Vito_Kohler3@gmail.com
4AthenaBeer41Garett_Farrell49@hotmail.com
5AnsleyD'Amore61Roma_Wolff78@gmail.com
6CasandraHilpert34Lucie_Kreiger@yahoo.com
7SalmaWeber41Conner76@yahoo.com
8AlizaMoen44Luke.Kunde@yahoo.com
9RashadKoch65Collin_Gislason59@gmail.com
10CorineMueller37Norbert.Wilkinson@hotmail.com
11TrinityCrona65Jameson17@hotmail.com
12BryanaWiza54Cedrick.Kassulke@hotmail.com
13DeondreChristiansen61Kaia.Deckow46@hotmail.com
14AgnesWunsch48Danial35@yahoo.com
15DeondreD'Amore32Moses73@hotmail.com
16JermaineMoore41Ambrose.Mueller87@hotmail.com
17ElectaBeahan54Edwina.Kovacek83@hotmail.com
18LinnieKihn40Stephan82@gmail.com
19EthelConroy58Holden80@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.

IDFirst nameLast nameAgeEmail
10EduardoFerry53Rory_Mitchell@gmail.com
11BrigitteStark40Osvaldo61@hotmail.com
12FletaLittle32Ewell44@yahoo.com
13EladioO'Connell37Kathlyn_Murazik-Breitenberg76@hotmail.com
14JamesonBuckridge27Aubree_Bradtke18@hotmail.com
15RyderSchuppe65Yasmine_Kassulke95@gmail.com
16ErynHeaney54Kristy.Bahringer@yahoo.com
17SusanLarkin43Una80@yahoo.com
18IsadoreSmitham-Haag62Barrett_Kertzmann@gmail.com
19VitoSchowalter41Micaela.Cummings72@gmail.com

Use Manual Pagination

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

IDFirst nameLast nameAgeEmail
0YesseniaSchumm62Alison.Cremin@yahoo.com
1EmmieBayer44Giovani_Ankunding@hotmail.com
2BurniceDicki30Ginger.Thiel@gmail.com
3BrownBauch47Dolores41@hotmail.com
4NikitaSkiles34Rogers.White@gmail.com
5CharlesVeum49Dillan_Heaney18@hotmail.com
6BernardoWilkinson23Fay_Klein89@gmail.com
7LanePouros55Haskell_Boyer@gmail.com
8LadariusRempel35Donnell55@yahoo.com
9ShadSchaefer22Ludie_Hagenes83@yahoo.com
10DexterAbernathy-Windler43Wilfred92@yahoo.com
11VidaBeer57Delaney_Stokes30@yahoo.com
12OttoBogan61Carla45@gmail.com
13SalvatoreZulauf39Katlynn23@gmail.com
14MyrtieGislason-Harvey22Monserrat_Dickens54@yahoo.com
15HollisJenkins31Caterina.Langworth@gmail.com
16BenjaminEbert26Shea_Hudson@hotmail.com
17EdnaO'Hara47Newell56@yahoo.com
18DeonteMarvin25Tyrese_Mohr@hotmail.com
19GuadalupePagac59Aiden.Altenwerth@gmail.com

Control Pagination

IDFirst nameLast nameAgeEmail
0ErnestoGutmann28Sydnee57@gmail.com
1TiaraTurcotte23Jenny_Pouros@hotmail.com
2GabrielFarrell63Jodie47@gmail.com
3UnaMohr42Kendrick98@gmail.com
4SueWyman57Adrien_Ernser-Beer33@gmail.com
5JodyLebsack25Barrett_Shields-Hoppe@gmail.com
6ArtMohr64Yasmeen_Blanda52@yahoo.com
7VeraOkuneva51Stewart.Daugherty54@hotmail.com
8QueenieHessel50Savanah.Huels30@yahoo.com
9GlennaYost37Ashton_DuBuque62@hotmail.com
10YoshikoFeeney21Burnice_Senger36@gmail.com
11LillianKunze53Else.Kuvalis@gmail.com
12OrrinMarvin55Freeman93@hotmail.com
13HomerGoldner61Yasmine_Douglas@yahoo.com
14ZenaBeahan48Marielle8@gmail.com
15TobinKshlerin31Lulu24@hotmail.com
16LibbieGleason43Reva50@yahoo.com
17MeghanSchoen49Bettye45@hotmail.com
18CathrynLabadie26Henri95@hotmail.com
19LeonelDaniel59Oswald_Ortiz26@gmail.com

Enable Row Selection

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

IDFirst nameLast nameAgeEmail
0DesireeWiza40Greta3@yahoo.com
1MyronPagac40Adolfo.OConnell@yahoo.com
2DorothyAbshire36Nancy2@yahoo.com
3EmmieGulgowski51Lamont.Wilderman92@gmail.com
4EudoraQuitzon63Ottilie.Mohr@yahoo.com
5ClarkDickens48Quentin_Von35@gmail.com
6EarlineEffertz31Shea_Kassulke54@hotmail.com
7SamantaGlover43Estella_Stiedemann@gmail.com
8RodrickBeier27Eric.Schmitt@gmail.com
9EmmanuelleBeer29Augusta2@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.

IDFirst nameLast nameAgeEmail
0MatthewRodriguez21Newell93@gmail.com
1PriceNikolaus63Jude37@hotmail.com
2LeonieUllrich28Deon_Goldner61@hotmail.com
3RosamondMarvin24Lue_Kovacek82@gmail.com
4SiennaBlick30Jeramie_Cole80@gmail.com
5SabrynaHaag61Sara89@gmail.com
6DewayneSmitham18Enid_Dietrich-Nader70@yahoo.com
7DevonPfannerstill62Katherine83@gmail.com
8SamirVandervort48Darla10@yahoo.com
9MyrticeAbbott34Marlin3@gmail.com

Enable Row Selection on Click

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

IDFirst nameLast nameAgeEmail
0JanieErnser20Karla40@hotmail.com
1PorterJaskolski20Linnie79@gmail.com
2VirgieWuckert30Gussie_Hintz64@gmail.com
3AltaJakubowski60Walton46@yahoo.com
4EmilioKunze40Tasha_Mayert2@yahoo.com
5MariannaLittle32Reba.Stiedemann-Parker81@gmail.com
6OttoSchinner-Larson29Vicente16@yahoo.com
7CleoRogahn62Lionel_Waters@hotmail.com
8WestonLarson22Wesley.Jacobson64@hotmail.com
9HannahHerman39Chaya_Dibbert88@yahoo.com

Hide Checkbox

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

IDFirst nameLast nameAgeEmail
0MyronSchaden34Jordy45@yahoo.com
1SarinaBernier34Haven_Ward@hotmail.com
2DeonteGreenholt39Porter.Pfeffer79@yahoo.com
3SethRolfson47Zoey_Stroman73@yahoo.com
4NarcisoHilpert56Alexandrea22@hotmail.com
5BorisKuhn42Craig99@yahoo.com
6LuraPaucek27Diane27@hotmail.com
7EmeryProsacco27Miles_Emard91@yahoo.com
8ObieCormier25Tevin.Senger45@gmail.com
9HeidiMacGyver55Jessika_Kertzmann@gmail.com

Disable Row

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

IDFirst nameLast nameAgeEmail
0AimeeSchmitt33Nicklaus_Jakubowski58@yahoo.com
1GideonYost44Assunta_Wuckert78@hotmail.com
2SandrineProsacco29Krystel_Jenkins40@yahoo.com
3ColtonGibson60Yasmeen56@hotmail.com
4MonroeWaters45Felicita_Batz80@yahoo.com
5JanessaFadel19Raoul76@hotmail.com
6JanaeHodkiewicz-Hayes31Cordell_Mann42@gmail.com
7CleoGorczany32Helga95@yahoo.com
8HilmaMurphy43Dangelo.Spinka@gmail.com
9ArnoldoJakubowski-Paucek51Harmony.Cremin-Mayert52@hotmail.com

Control Row Selection

IDFirst nameLast nameAgeEmail
0CassidyBarton37Ruby_Rippin33@hotmail.com
1KatlynBecker40Tricia.Hilll85@hotmail.com
2RobertoMante42Shakira88@gmail.com
3AnneHane49Serenity_Zieme@gmail.com
4RogerWalter45Damaris48@gmail.com
5OliveKeeling27Alberto84@yahoo.com
6ConsueloWolff55Adriana24@hotmail.com
7BillyO'Hara48Skye96@hotmail.com
8DevenStracke28Marisol24@gmail.com
9DevonToy26Ulices_Block56@hotmail.com

Use Filter

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

IDFirst nameLast nameAgeEmail
0DallasBernier60Anita.Cole@hotmail.com
1AliaNikolaus28Cristian.Schaden@gmail.com
2MosesHodkiewicz52Hildegard.Feeney@hotmail.com
3JerrellFahey19Lottie10@gmail.com
4JeremyDoyle64Skylar82@gmail.com
5CaylaAbshire45Deion_Becker35@hotmail.com
6ChloeStrosin20Adele.Klocko93@hotmail.com
7EfrenMonahan54Maximilian14@gmail.com
8QuincyPouros34Isaias_Ryan-Waelchi6@gmail.com
9DorianMedhurst37Hilario_Pacocha@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
3ChadrickSchimmel65Clayton.Christiansen@gmail.com
4EllsworthSchroeder43Kamryn78@gmail.com
8ErmaMarvin34Jonathan9@gmail.com

Control Filter

IDFirst nameLast nameAgeEmail
0HildaSpencer18Sergio.Koch@hotmail.com
1EstherMitchell53Calvin_Schmitt10@yahoo.com
2LaneRunte47Simon_Emard@yahoo.com
3GarthKemmer28Maci.Brakus@gmail.com
4CarissaGoodwin19Toney_Keeling-Gulgowski4@gmail.com
5MyaKirlin20Ervin14@hotmail.com
6CharityHoppe55Ava.Spinka@gmail.com
7ElectaMaggio49Nedra_Wilderman@gmail.com
8SamuelRaynor46Kristie5@gmail.com
9ArlieMosciski56Vilma.Hoppe6@hotmail.com

Enable Column Resizing

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

ID
First name
Last name
Age
Email
0LinneaHintz23Alexandria56@yahoo.com
1RachelWaters31Maximilian.Langworth@yahoo.com
2LindaDenesik37Ewell90@yahoo.com
3CurtWyman21Frederic.Towne64@hotmail.com
4ShermanEmard42Cristal36@hotmail.com
5BrittanyWeimann28Juliet86@gmail.com
6AnnabelleDickens47Sigmund_Carter12@gmail.com
7StoneZemlak47Norman_Rodriguez@hotmail.com
8KeatonWehner39Tasha45@hotmail.com
9ConnorEmard56Priscilla31@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
First name
Last name
Age
Email
0HarleyMills50Luke_Kozey97@yahoo.com
1EssieDavis54Justice89@gmail.com
2JohnnyMarks55Margarette.Gleason@gmail.com
3KamilleOrtiz62Hilda_Conroy96@gmail.com
4StephenBrekke60Eino53@yahoo.com
5MoseLueilwitz-Schamberger22Dexter.Moen@hotmail.com
6DuncanFranecki29Cortez.Heller@hotmail.com
7DorothyChamplin33Mariela_Stroman31@yahoo.com
8JessyKemmer62Piper41@hotmail.com
9EugeniaLarkin54Palma.DAmore@hotmail.com

Props

Accessibility

The Table follows the WAI-ARIA - Table Pattern for accessibility.

Setting an aria-label on the tableProps allows it to be read by screen readers.

const data = useMemo<TableData[]>(() => createTableData(), [])

return (
  <Table
    columns={columns}
    data={data}
    tableProps={{ "aria-label": "User list" }}
  />
)

Keyboard Navigation

KeyDescriptionState
ArrowLeftMoves focus one cell to the left. If focus is on the left-most cell in the row, focus does not move.-
ArrowRightMoves focus one cell to the right. If focus is on the right-most cell in the row, focus does not move.-
ArrowUpMoves focus one cell Up. If focus is on the top cell in the column, focus does not move.-
ArrowDownMoves focus one cell down. If focus is on the bottom cell in the column, focus does not move.-
HomeMoves focus to the first cell in the row that contains focus.-
EndMoves focus to the last cell in the row that contains focus.-
PageUpMoves to the previous page.enablePagination={true}
PageDownMoves to the next page.enablePagination={true}

ARIA Roles and Attributes

ElementRoles and AttributesUsage
table.ui-native-table__rootrole="grid"Indicates that the element is a grid.
aria-rowcountIndicates the total number of rows in the table.
aria-colcountIndicates the total number of columns in the table.
aria-multiselectableSet to "true" if enableRowSelection is set.
thead.ui-native-table__theadrole="rowgroup"Indicates that the element is a rowgroup.
tr.ui-native-table__trrole="row"Indicates that the element is a row.
aria-rowindexIndicates which row the element is in the table.
aria-disabledWhen enableRowSelection is provided as a function, set "true" for rows that return false.
aria-selectedSet to "true" if the row is selected, "false" if not selected.
th.ui-native-table__throle="columnheader"Indicates that the element is a columnheader.
aria-rowindexIndicates which row the element is in the table.
aria-colindexIndicates which column the element is in the table.
aria-sortSet to "ascending" for ascending order, "descending" for descending order, and "none" if no order is specified.
tbody.ui-native-table__tbodyrole="rowgroup"Indicates that the element is a rowgroup.
td.ui-native-table__tdrole="gridcell"Indicates that the element is a gridcell.
aria-colindexIndicates which column the element is in the table.
aria-rowindexIndicates which row the element is in the table.
tfoot.ui-native-table__tfootrole="rowgroup"Indicates that the element is a rowgroup.
label.ui-checkbox__root > inputaria-labelSet to "Select all rows" for the header, and "Select row" for body rows.
th.ui-native-table__th > buttonaria-labelSet to "Sort ascending" for ascending order, "Sort descending" for descending order, and "Clear sorting" when no order is specified.

Similar Components

NativeTable

NativeTable is a component for efficiently organizing and displaying data.

Stat

Stat is used to display numbers or data within a box.

AreaChart

AreaChart is a component for drawing area charts to compare multiple sets of data.

Badge

Badge is a component that emphasizes the status of an item to make it immediately recognizable.

BarChart

BarChart is a component for drawing bar charts to compare multiple sets of data.

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