Table

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

idfirstNamelastNameageemail
0GlenBernhard58Agnes_Hartmann@gmail.com
1CathyEmard28Nora_Goldner24@yahoo.com
2DonnaChamplin29Leticia_Conroy72@yahoo.com
3GeraldineToy22Armando_Bernier86@gmail.com
4SarahBednar37Godfrey.Herman55@gmail.com
5HaroldKrajcik59Jermey66@yahoo.com
6KaraMoen59Kathryn2@yahoo.com
7MarlonSchultz43Alayna.Blick@yahoo.com
8DeanHansen58Kristopher59@hotmail.com
9CaesarArmstrong46Karen32@gmail.com

Usage

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

Change Variant

idfirstNamelastNameageemail
0JamelFeeney35Virginia73@yahoo.com
1ToreyLueilwitz26Elijah_Lehner@gmail.com
2ChristelleParker23Jeremiah30@gmail.com
3HannahGrimes43Amya52@hotmail.com
4CoryErdman21Cindy.Turcotte@yahoo.com
5LaurenceReynolds49Katrina.Walter81@hotmail.com
6CarrieMonahan28Karianne_Lind-Halvorson@gmail.com
7TonyEmmerich31Francis_Fadel45@yahoo.com
8EmeraldCronin39Amya74@gmail.com
9TyshawnTreutel44Angelina_Prohaska36@yahoo.com
idfirstNamelastNameageemail
0JamelFeeney35Virginia73@yahoo.com
1ToreyLueilwitz26Elijah_Lehner@gmail.com
2ChristelleParker23Jeremiah30@gmail.com
3HannahGrimes43Amya52@hotmail.com
4CoryErdman21Cindy.Turcotte@yahoo.com
5LaurenceReynolds49Katrina.Walter81@hotmail.com
6CarrieMonahan28Karianne_Lind-Halvorson@gmail.com
7TonyEmmerich31Francis_Fadel45@yahoo.com
8EmeraldCronin39Amya74@gmail.com
9TyshawnTreutel44Angelina_Prohaska36@yahoo.com

Change Size

idfirstNamelastNameageemail
0ElvieVon33Dean96@hotmail.com
1MonicaRice41Hector_Schinner93@hotmail.com
2KatrinaLowe62Mitchell62@hotmail.com
3WatsonWindler25Sammy_Cole54@gmail.com
4WmRogahn30Lindsay_Sawayn@gmail.com
5JaylanAbshire45Bernhard41@yahoo.com
6LillianRunolfsdottir-Kihn26Cecil.Ryan@yahoo.com
7LaurenceLarson36Wilburn.Williamson77@hotmail.com
8NarcisoWitting47Ashley11@gmail.com
9TiannaSchiller26Angelica_Greenfelder@yahoo.com
idfirstNamelastNameageemail
0ElvieVon33Dean96@hotmail.com
1MonicaRice41Hector_Schinner93@hotmail.com
2KatrinaLowe62Mitchell62@hotmail.com
3WatsonWindler25Sammy_Cole54@gmail.com
4WmRogahn30Lindsay_Sawayn@gmail.com
5JaylanAbshire45Bernhard41@yahoo.com
6LillianRunolfsdottir-Kihn26Cecil.Ryan@yahoo.com
7LaurenceLarson36Wilburn.Williamson77@hotmail.com
8NarcisoWitting47Ashley11@gmail.com
9TiannaSchiller26Angelica_Greenfelder@yahoo.com
idfirstNamelastNameageemail
0ElvieVon33Dean96@hotmail.com
1MonicaRice41Hector_Schinner93@hotmail.com
2KatrinaLowe62Mitchell62@hotmail.com
3WatsonWindler25Sammy_Cole54@gmail.com
4WmRogahn30Lindsay_Sawayn@gmail.com
5JaylanAbshire45Bernhard41@yahoo.com
6LillianRunolfsdottir-Kihn26Cecil.Ryan@yahoo.com
7LaurenceLarson36Wilburn.Williamson77@hotmail.com
8NarcisoWitting47Ashley11@gmail.com
9TiannaSchiller26Angelica_Greenfelder@yahoo.com

Change Color Scheme

idfirstNamelastNameageemail
0BurdetteStreich46Cameron_Bailey@gmail.com
1PhilipMacGyver60Daron68@gmail.com
2AlbertoThompson63Ignacio.Zemlak63@hotmail.com
3JoelGutmann63Juwan.Mann@hotmail.com
4StevieWisoky62Warren_Will76@yahoo.com
5VitoArmstrong28Bessie50@hotmail.com
6MabelleFarrell39Emmie24@gmail.com
7SpencerHarber45Mercedes37@gmail.com
8ArmandoJohnson23Elisa.Goldner@gmail.com
9NormanFrami28Carlee.Johnston@hotmail.com
idfirstNamelastNameageemail
0BurdetteStreich46Cameron_Bailey@gmail.com
1PhilipMacGyver60Daron68@gmail.com
2AlbertoThompson63Ignacio.Zemlak63@hotmail.com
3JoelGutmann63Juwan.Mann@hotmail.com
4StevieWisoky62Warren_Will76@yahoo.com
5VitoArmstrong28Bessie50@hotmail.com
6MabelleFarrell39Emmie24@gmail.com
7SpencerHarber45Mercedes37@gmail.com
8ArmandoJohnson23Elisa.Goldner@gmail.com
9NormanFrami28Carlee.Johnston@hotmail.com

Add Outer Border

To add an outer border, set withBorder to true.

idfirstNamelastNameageemail
0HesterRowe19Rolando_Wyman@yahoo.com
1EricSchneider39Garland_Lind@hotmail.com
2KorbinTrantow61Marc73@gmail.com
3DominiqueConnelly59David.Sawayn@gmail.com
4NatashaSimonis27Rudolph_Bode90@hotmail.com
5GeraldineSwaniawski61Jim.Wolf@hotmail.com
6RowanHills29Gonzalo.Von@yahoo.com
7HardyKoch60Johnpaul7@gmail.com
8JaydonSchamberger28Katelyn.Hirthe16@hotmail.com
9KallieBalistreri54Madyson_Koch12@gmail.com

Add Column Separators

To add column separators, set withColumnBorders to true.

idfirstNamelastNameageemail
0HarrisonJerde57Aubree.Johns@gmail.com
1KarleeRunte45Bennie_Becker69@hotmail.com
2KarianneKuvalis56Geovanni90@yahoo.com
3SophieHills53Nathaniel_Armstrong@gmail.com
4LynetteFriesen28Gilberto.Lowe@hotmail.com
5GeraldMuller27Rosemarie89@hotmail.com
6RamonGreenholt61Glen.Leffler@yahoo.com
7DoyleLehner48Marcus.Bogan56@hotmail.com
8GlendaReichert53Thelma37@gmail.com
9JudahStroman37Neal_Armstrong96@yahoo.com

Highlight on Row Hover

To highlight rows when hovered, set highlightOnHover to true.

idfirstNamelastNameageemail
0DawnGislason40Phoebe92@hotmail.com
1AngeloBreitenberg45Neil_Satterfield86@yahoo.com
2DominicNicolas60Bradford88@yahoo.com
3DallasKuvalis43Gertrude_Roberts@gmail.com
4LaceyKerluke34Alejandrin21@yahoo.com
5ErikaFraney32Mozelle.Kassulke@hotmail.com
6KristyMarks43Kiley.Walker9@hotmail.com
7DouglasQuigley43Sibyl.Simonis@gmail.com
8CalebBashirian59Kian_Strosin@hotmail.com
9RashadGutmann37Zachariah41@hotmail.com

Striped

To enable striped rows, set striped to true.

idfirstNamelastNameageemail
0SummerLittel26Jaron_Gislason52@gmail.com
1JuliusZulauf46Katharina19@hotmail.com
2JanickHilll26Carla80@yahoo.com
3EnosRuecker26Mabel.OConnell@yahoo.com
4VioletFunk38Johnathon15@gmail.com
5MozellSanford21Laury.Moen56@hotmail.com
6LydiaJones63Edwin1@gmail.com
7JackyLang37Rosalie.Labadie@yahoo.com
8HollieHerman41Retha.Rutherford@gmail.com
9ElfriedaHeidenreich20Boyd_Beatty@gmail.com

Scroll Area

To enable scroll area, set withScrollArea to true.

idfirstNamelastNameageemailphonerolestatuscreatedAtupdatedAt
0RosemarieUpton37Easter.Bogisich@hotmail.com(369) 383-9375 x99812userinactive5/4/20261/22/2026
1VickyGrimes42Claude_Gislason@hotmail.com1-264-671-8657 x386admininactive4/19/20267/2/2026
2MelbaOkuneva23Abdul.Kautzer@hotmail.com344-555-5924 x5681useractive9/1/20254/28/2026
3GeraldinePowlowski59Brandy.Hermann51@hotmail.com1-576-538-2126admininactive9/20/20258/15/2025
4RoselynBeer38Lupe.Wilderman37@hotmail.com529-892-2650admininactive3/28/20265/1/2026
5PaulCruickshank38Mohammad_Kling@gmail.com1-756-957-1431 x6190admininactive6/4/202610/23/2025
6AngeloMcGlynn54Whitney.Zemlak@yahoo.com1-592-929-5258 x324useractive11/26/20252/18/2026
7AmyLockman27Candice_Hane@yahoo.com(639) 274-6460 x079userinactive11/23/20258/30/2025
8GradyRodriguez57Juan_Luettgen48@gmail.com1-307-950-9346 x48455useractive3/25/20265/4/2026
9NoemiBins24Terri_Kihn31@yahoo.com616-894-5010 x4027userinactive3/5/20267/18/2026

Header Groups

iduser
nameageemail
firstNamelastName
0GwenBartoletti58Kyleigh.Collier81@hotmail.com
1ToneySanford64Hyman.Larson@gmail.com
2CherylMante47Danyka_Krajcik@gmail.com
3PatriciaFraney28Clarabelle_Douglas21@hotmail.com
4TomSanford55Preston.Carroll@hotmail.com
5RoyGoyette43Gail.Okuneva@yahoo.com
6JacquelineQuitzon54Santina70@gmail.com
7SherylLang35Jewell_Koch@gmail.com
8RichardHyatt53Maurice81@hotmail.com
9EulaCrooks45Lee_Casper29@yahoo.com
iduser
nameageemail
firstNamelastName
0NorrisReichel43Kamren_Shanahan49@hotmail.com
1EinarKing19Skylar96@hotmail.com
2JacyntheAbbott33Glenn.Wisoky99@gmail.com
3KaceyGutkowski35Johnathan_Keebler85@hotmail.com
4LelandReilly41Lincoln.Mante@yahoo.com
5ReannaRempel-Strosin18Colt32@yahoo.com
6MikeHeller60Providenci_Cartwright@hotmail.com
7FredrickKshlerin48Moises.Von@yahoo.com
8DelmerParisian27Aidan_Watsica80@hotmail.com
9ClydeYundt35Kathleen.Weimann45@yahoo.com
idfirstNamelastNameageemail
name
user

Disable Keyboard Navigation

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

idfirstNamelastNameageemail
0LillieFarrell23Gunnar_Bahringer-Schmidt@yahoo.com
1KarsonJacobs50Jaylon32@hotmail.com
2ToniGulgowski45Sunny_DuBuque7@hotmail.com
3EraWalker34Augusta_Leffler63@gmail.com
4LeraHeller53Ariel_Yundt43@yahoo.com
5AlecRippin42Kiana_Luettgen61@hotmail.com
6JulioWintheiser28Max82@yahoo.com
7JessieThompson27Bette21@gmail.com
8ClintSmitham27Bell_Windler@gmail.com
9MerleHeaney27Ed.Olson44@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
0JavierProhaska21Jack18@hotmail.com
1BenFarrell52Sadye_Effertz@gmail.com
2BereniceParker61Cecilia_Durgan16@yahoo.com
3PaulaYundt35Rosendo_Tremblay90@yahoo.com
4JazlynKertzmann26Margret_Stiedemann39@hotmail.com
5JeffreySchumm47Karla40@gmail.com
6PedroSatterfield63Catharine.Russel10@yahoo.com
7OvaTorphy-Schamberger26Callie.Wintheiser@hotmail.com
8OkeyZieme19Angela_Dickens-Yundt20@hotmail.com
9WmLittel24Edmond7@yahoo.com

Handle Row Click Event

To handle the row click event, use onRowClick.

idfirstNamelastNameageemail
0NoraConnelly36Betsy_Schowalter@gmail.com
1JoanRatke30Lorine28@gmail.com
2LincolnChamplin41Donnie_Bergnaum59@gmail.com
3MaxineDaniel22Graciela_McGlynn@gmail.com
4KaylaGrant-Gorczany58Faustino_Mertz92@gmail.com
5KevinMurazik38Christy99@hotmail.com
6KadenOrtiz63Soledad_Fritsch@hotmail.com
7ChrisRyan32Magdalena_Prohaska@gmail.com
8RettaJakubowski32Vergie60@yahoo.com
9NellieWill23Kenneth_Weber54@yahoo.com

Handle Row Double Click Event

To handle the row double click event, use onRowDoubleClick.

idfirstNamelastNameageemail
0SteveFeest35Malcolm88@gmail.com
1DannyEffertz19Granville.Hermiston12@hotmail.com
2VernerJast48Carlos4@gmail.com
3EverardoMcKenzie62Juston.Bartell@gmail.com
4EvelynBecker24Kathryn69@yahoo.com
5ColtonMedhurst23Jeannette21@gmail.com
6NadineGibson35Geraldine42@gmail.com
7WilburnSchamberger45Patricia.Casper@hotmail.com
8JoeyHagenes30Drew92@hotmail.com
9RobinWintheiser55Timmy32@yahoo.com

Set Default Sorting

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

idfirstNamelastNameageemail
8GenevieveFarrell54Melba.Hackett@yahoo.com
2AraceliHermann53Zita66@gmail.com
6HarryTorphy51Peggy_Graham@yahoo.com
7LydiaMoore43Marion.Ziemann26@gmail.com
4KennaOberbrunner39Nat.Weimann37@hotmail.com
5MargieZulauf35Mike21@hotmail.com
9AnnetteLegros35Christine_Kris56@gmail.com
3PriscillaRatke34Tyrese97@hotmail.com
1EzekielMaggio-Moore25Carrie_Denesik@yahoo.com
0TommyTerry22Rex.Jones42@hotmail.com

Disable Sorting

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

idfirstNamelastNameageemail
0KenSteuber56Creola.Steuber34@gmail.com
1EulaBogisich41Eliezer_Farrell44@yahoo.com
2NovaFisher40Fred95@yahoo.com
3HughMoen31Alda7@hotmail.com
4SamanthaErnser22Simeon.Armstrong@hotmail.com
5CarltonKozey50Wallace89@yahoo.com
6LeoBauch28Rosemarie_Gottlieb@gmail.com
7TyroneKassulke55Karla.Johns@hotmail.com
8WestleyLarkin20Loraine94@yahoo.com
9MeggieWeimann27Bernice_Kris43@hotmail.com

Disable Multi Sorting

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

idfirstNamelastNameageemail
0JennieMaggio25Alvis.Rohan@gmail.com
1LeraTurcotte53Prudence.Schiller-Kohler60@gmail.com
2MaxineOkuneva28Edwin16@hotmail.com
3EstefaniaKozey59Maynard_Fisher30@gmail.com
4JacintheLeuschke60Mozell27@yahoo.com
5KoreyMayert39Eugenia95@hotmail.com
6EverettPurdy64Leslie.Sporer@hotmail.com
7EmmittDaugherty55Leticia_Franey@yahoo.com
8PiercePaucek29Elza_Kiehn@hotmail.com
9EvanLang22Adrienne77@yahoo.com

Set Maximum Sortable Columns

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

idfirstNamelastNameageemail
0CassieMacGyver50Haskell_Dibbert46@gmail.com
1JessyFrami20Meagan.Heaney@yahoo.com
2KayMarquardt54Malcolm67@yahoo.com
3DelmerRaynor36Ruthe_Quigley-Halvorson@gmail.com
4VerdaHartmann52Amie.Hartmann23@yahoo.com
5GeraldineO'Hara39Geneva.Heidenreich@hotmail.com
6CandidaReinger19Ayden_Huels1@hotmail.com
7ThurmanSchroeder30Terrell.Hettinger@gmail.com
8MyaBorer57Stewart.Purdy-Doyle74@gmail.com
9TheodoreSporer45Weston_Nitzsche-Paucek39@yahoo.com

Manual Sorting

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

idfirstNamelastNameageemail
0ColleenFeeney41Randolph.Stamm@gmail.com
1EugeniaWillms19Daron5@gmail.com
2GrayceHeaney23Irene.Bailey@gmail.com
3BennettKonopelski39Kiley_Abernathy@yahoo.com
4MiracleEmard19Rickey_Bosco54@hotmail.com
5JackVon56Abraham.Kemmer74@yahoo.com
6ReneGleichner53Angelica.Schmitt@gmail.com
7SalmaJaskolski52Blake.Conn@hotmail.com
8GonzaloKoss37Rashawn57@gmail.com
9CamylleO'Keefe45Richie_Kunze@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.

idfirstNamelastNameageemail
0LorraineWelch64Gerda64@yahoo.com
1CandidoPaucek40Sidney.Bernier@hotmail.com
2RaymundoBuckridge50Emily.Armstrong94@hotmail.com
3BradleyJacobs26Verla4@hotmail.com
4LynneHaley45Mattie52@yahoo.com
5EmmettWillms47Liliana_Muller46@gmail.com
6ArloOkuneva19Kip54@yahoo.com
7AlisonMcLaughlin61Ocie_Kulas9@yahoo.com
8FreemanPfeffer37Winifred_Trantow@yahoo.com
9RafaelSchowalter53Jabari13@hotmail.com

Control Sorting

idfirstNamelastNameageemail
0JoaquinDavis42Hillard.Hahn@gmail.com
1HelmerKeebler30Jeannie97@yahoo.com
2DonaldRolfson38Vella_Gusikowski@hotmail.com
3NatKoepp-Dietrich51Dianna0@yahoo.com
4NelsonDenesik40Jeremy_Dibbert@yahoo.com
5LuciaWeimann19Nettie.Schoen27@gmail.com
6MichaelSatterfield40Adam68@hotmail.com
7KellieReynolds52Hillard.Abernathy@gmail.com
8AntoinetteO'Hara29Kaitlin.West83@gmail.com
9LorenzoHills38Franz_Terry55@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
0KarianeKub37Leo.Mosciski@yahoo.com
1MattieBruen61Christina18@yahoo.com
2JulienCartwright19Angelo.Reichert43@gmail.com
3JeanieHegmann56Heber_Casper@yahoo.com
4SanfordWuckert60Maxine.Mueller@gmail.com
5RomaineNolan48Golda.Christiansen@yahoo.com
6LisaMuller41Vernon4@gmail.com
7MedaHeathcote-Romaguera46Latoya.Jacobson@hotmail.com
8OlgaRaynor23Ciara.Abernathy@hotmail.com
9PatsyMitchell36Liliane.Orn@gmail.com
10FloraSchmeler26Xzavier.Connelly@hotmail.com
11JosephineBernhard59Carlee.Powlowski21@yahoo.com
12ChelseaRoberts-Mosciski49Garry_Breitenberg76@gmail.com
13DaronMcCullough27Carolyne.Boyle@gmail.com
14ElizabethNader44Kraig39@yahoo.com
15JarretFadel25Laurie2@gmail.com
16DominickMcGlynn47Lowell.Stamm@gmail.com
17AubreyHettinger48Desmond94@yahoo.com
18BrendanWuckert20Mamie.Gibson93@gmail.com
19BertThiel58Thomas_Rohan6@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
10KatelynnMueller62Valerie_Hudson-Little@hotmail.com
11SunnyBode47Ned74@hotmail.com
12WendyMcLaughlin48Woodrow_Grady96@yahoo.com
13CalvinGislason50Rod.Schoen@gmail.com
14SergioAbbott18Sadie_Leuschke@hotmail.com
15VeraKuvalis33Claud.Morar@yahoo.com
16KennyReichel64Michelle6@gmail.com
17FlorianBashirian47Veda_Upton@gmail.com
18KimberlyHarvey57Angelo_Trantow@gmail.com
19ClintonWilderman38Haven_Feest@yahoo.com

Use Manual Pagination

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

idfirstNamelastNameageemail
0PatsyReilly60Shari_Doyle@yahoo.com
1DarylWisoky25Tracey_Lubowitz1@hotmail.com
2EliseBeier43Robert90@yahoo.com
3JesusWaters25Odell8@gmail.com
4HughWiza42Regina_Friesen29@hotmail.com
5AliyaO'Keefe59Jarred.Brekke-Ruecker37@hotmail.com
6DaisyMraz53Jalen.Pfeffer43@yahoo.com
7ColumbusThompson44Sandy_Haag39@hotmail.com
8AngelicaBogan43Lionel.Stokes@gmail.com
9DeonHand58Ervin.Grady@gmail.com
10RyanYundt45Pedro_Wiegand95@gmail.com
11ArleneO'Conner52Violet_Smitham@gmail.com
12KorbinJones41Will_Douglas94@hotmail.com
13TrudieTorp53Katlynn4@hotmail.com
14FreemanWatsica55Lacey55@gmail.com
15AngeloStoltenberg45Scott.Auer91@hotmail.com
16CarmenWalker27Bruce_Torp-Ebert@gmail.com
17AntonioArmstrong33Bernadette.Parker@yahoo.com
18IrisStamm21Hugh_Ryan@gmail.com
19LaurieHaley22Kristin.Barrows95@gmail.com

Control Pagination

idfirstNamelastNameageemail
0MarvinNader20Henderson61@gmail.com
1TwilaKuhlman46Kamren89@gmail.com
2KevinAdams53Judy.Schmidt57@yahoo.com
3AriDonnelly21Madyson47@hotmail.com
4IrvinBednar62Scot59@gmail.com
5GraceRowe37Dagmar46@hotmail.com
6BertrandGoyette41Alyson89@hotmail.com
7AxelMayer59Vince_Windler@yahoo.com
8GretchenHills30Nicholas.Mueller84@yahoo.com
9MillerMayer43Brooks.Graham@gmail.com
10MackenzieStokes65Terrance_Sawayn3@gmail.com
11GeovanniSporer54Debra.Buckridge@gmail.com
12ReneeOberbrunner33Newton_Quitzon85@hotmail.com
13NikitaZiemann50Claud_Hand2@gmail.com
14CarissaBoyle26Tommy68@yahoo.com
15StacyConsidine59Clay_Baumbach60@gmail.com
16TiaConroy47Alden.Williamson@yahoo.com
17BenTrantow48Curt78@yahoo.com
18GregMante50Herbert10@hotmail.com
19JesseMertz41Howard86@gmail.com

Enable Row Selection

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

idfirstNamelastNameageemail
0PatsyShields46Aimee.Keeling81@gmail.com
1SandyStroman37Bryan.Aufderhar@hotmail.com
2EarlOlson26Fritz_Kirlin36@gmail.com
3TrystanFeil46Shyanne58@hotmail.com
4TomDoyle64Delbert35@yahoo.com
5TheresiaEmmerich18Candelario83@hotmail.com
6AbdielMcDermott43Harold48@yahoo.com
7LiamNader44Katelyn_Terry69@hotmail.com
8QueenRoberts35Kristy_Fay@yahoo.com
9HeatherMurray19Luz.Robel76@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
0StuartEbert54Sheldon55@yahoo.com
1RudyBoyle24Arlene_Nicolas@yahoo.com
2RoderickKreiger20Mckayla0@gmail.com
3SandraAufderhar-Lowe39Adela49@gmail.com
4KellieHerzog23Shemar99@gmail.com
5HermanWatsica55Lamar95@yahoo.com
6FreddieCollier36Marian.Barton@hotmail.com
7FedericoAnkunding21Lindsey.Muller28@hotmail.com
8JodieBatz59Eddie.Miller@hotmail.com
9BradCarroll35Lysanne_Rogahn67@hotmail.com

Enable Row Selection on Click

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

idfirstNamelastNameageemail
0SheldonHegmann-Nolan28Corey.Marvin@hotmail.com
1AlbinWeissnat56Tad.Jerde@gmail.com
2AliciaFay-Rolfson29Fredrick_Bernhard56@hotmail.com
3IleneConn54Stella_Marquardt@gmail.com
4MarianaLangosh60Julio.Towne@hotmail.com
5GabrielGibson18Donald.Will45@hotmail.com
6CaliOsinski56Everett_Kiehn@yahoo.com
7BonnieBraun30Natalie_Lowe@gmail.com
8HarrisonKulas-Greenholt39Lennie_Medhurst53@gmail.com
9CamrynLemke60Gust_Koelpin@gmail.com

Hide Checkbox

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

idfirstNamelastNameageemail
0DedricLindgren57Ellen.Boyle@gmail.com
1WesleyJaskolski31Gertrude_Homenick@hotmail.com
2JanaeJenkins54Kaela95@gmail.com
3JacquelineRogahn41Janice_Will29@yahoo.com
4LeviStark59Haley44@hotmail.com
5ErinConnelly44Nedra.Renner65@yahoo.com
6MaxRice32Kristen79@yahoo.com
7FayeGulgowski26Monique5@gmail.com
8EmilioSpinka38Edmond2@hotmail.com
9JustenBeier65Sammy.Fisher13@gmail.com

Disable Row

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

idfirstNamelastNameageemail
0JoanPrice21Cordell.Little42@gmail.com
1BessieKertzmann18Lillian18@hotmail.com
2CharlotteSchmitt24Era69@yahoo.com
3WilbertWitting52Maritza_Hoeger@yahoo.com
4WayneHerman57Tonya.Thiel79@yahoo.com
5VickyAufderhar39Jayme10@hotmail.com
6BrianaMorar33Carl_Haley40@hotmail.com
7ElinorMayert50Roel75@gmail.com
8LenoreKoepp61Danny_Wehner55@yahoo.com
9KimberlyRoberts49Jacey_Schimmel58@gmail.com

Control Row Selection

idfirstNamelastNameageemail
0ChynaSauer33Kristina.Trantow67@hotmail.com
1TaraMueller34Angelica.Lang76@gmail.com
2EldridgeHilpert50Adah.Sauer52@gmail.com
3FedericoBergstrom24Emelie16@yahoo.com
4AnnettaOrtiz31Kayla68@hotmail.com
5CrystalSwift24Eddie_Hoeger@yahoo.com
6MaidaChristiansen49Michele.Lesch@hotmail.com
7EllaHyatt56Oliver34@hotmail.com
8TiaraPrice64Frederick.Lowe6@yahoo.com
9PhillipHaag-Streich37Eddie_Schultz19@hotmail.com

Use Filter

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

idfirstNamelastNameageemail
0MarilouBogisich56Kathryn.Glover@yahoo.com
1BreanaTillman37Neil_Cruickshank@yahoo.com
2SaraBarrows38Myrna_Oberbrunner58@hotmail.com
3RebeccaMarvin20Blanca.Fadel59@gmail.com
4BartholomeOrn62Chelsey17@hotmail.com
5AntonetteOsinski37Delphia_Larson42@yahoo.com
6KennyMcGlynn34Ari_Schumm56@yahoo.com
7DawnWiza21Kylie.Toy@yahoo.com
8SoniaMorar42Noelia64@yahoo.com
9ChanelDuBuque59Elinore_Trantow@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.

idfirstNamelastNameageemail

Control Filter

idfirstNamelastNameageemail
0JuanaWilderman25Hunter.Abernathy@gmail.com
1BethHettinger48Collin_Funk@gmail.com
2MervinGlover50Wilson_Kemmer44@yahoo.com
3KatelynnHammes42Edna_Davis6@hotmail.com
4NathanialCummings19Pam21@hotmail.com
5JasenJohnston31Nakia_Lehner28@yahoo.com
6DebbieHerman61Alma.Davis81@hotmail.com
7SueKessler58Tommy.Lockman@hotmail.com
8DorisSchimmel37Mateo_Rowe12@yahoo.com
9CharlesUllrich49Lilian_Kovacek@hotmail.com

Enable Column Resizing

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

id
firstName
lastName
age
email
0MozelleStiedemann37Della_Romaguera@gmail.com
1MarilyneWisozk47Brody_Ortiz9@gmail.com
2ElviePfannerstill22Broderick10@yahoo.com
3ArmandoOkuneva36Vergie.McClure@yahoo.com
4DawsonEbert33Emelia_Raynor97@hotmail.com
5JenniferTreutel20Celestine_Lynch@hotmail.com
6LoisCorkery63Palma62@gmail.com
7AnnieSwaniawski63Brooklyn_Hartmann57@hotmail.com
8IdaCasper18Fay.Orn@yahoo.com
9SonyaTremblay28Rodger_Trantow-Howell98@yahoo.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
0KristopherHilll20Clifton9@yahoo.com
1WaylonFunk26Janie92@hotmail.com
2AdamVolkman65Aiyana.Schneider@hotmail.com
3PhillipGleichner41Marta_Casper@hotmail.com
4MacLeuschke65Madisyn88@gmail.com
5SantosAuer27Oceane.Jenkins@gmail.com
6NobleOberbrunner26Geoffrey.Roob-Braun13@yahoo.com
7WebsterKuphal31Bertha.Mertz@hotmail.com
8MyronHeidenreich36Amy.Hagenes@hotmail.com
9TeriHintz44Susan_Boehm-Wisozk@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.

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