Components

Tanstack Table

A powerful datatable for your app built with TanStack Table.

Source code

Click to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.

Installation

Usage

Regular

ID
Amount
Status
Email
YiITkf46UA$928.00
success
brigitte_konopelski45@hotmail.com
5fkZqQmMJu$920.00
success
serenity33@gmail.com
BaETD6WZK6$713.00
failed
cynthia_kuhic95@gmail.com
k9xPEW6Uj5$355.00
pending
wilma.erdman@gmail.com
7DUIk888JW$564.00
processing
tommy.gottlieb@hotmail.com
Rows per page:
Page 1 of 20

Basic

NameEmailLocationStatusBalance
Edmond Kuhndianne.nikolaus30@yahoo.comOrnfurt
Inactive
$173.20
Luis Strackeestrella_rippin85@hotmail.comSouth Stephencester
Inactive
$242.03
Karianne Koch Sr.lorena31@gmail.comCruickshankcester
Inactive
$712.66
Sophia Carterlonnie.witting@hotmail.comSchambergerbury
Active
$414.89
Helena Johnsonrose_powlowski-moen@yahoo.comTwilaview
Inactive
$825.46
Total$2,368.24

Basic data table made with TanStack Table

Filters

Keyword
Intents
Volume
CPC
Traffic
Link
react components
I
N
2.5K2.588https://www.originui.com
buy react templates
C
T
1.9K4.7565https://www.originui.com/templates
react ui library
I
C
3.2K3.25112https://www.originui.com/docs
tailwind components download
T
8901.9545https://www.originui.com/download
react dashboard template free
C
T
4.1K5.5156https://www.originui.com/templates/dashboard
how to use react components
I
1.2K1.2542https://www.originui.com/tutorials
react ui kit premium
C
T
7606.828https://www.originui.com/pricing
react component documentation
I
N
9501.835https://www.originui.com/docs/components

Data table with filters made with TanStack Table

Simple (Auto-Generated Columns)

Shows zero-config usage with automatic column generation from data keys.

Id
Date
Status
Email
Amount
46002024-03-11T15:30:00paidjames.anderson@example.com594
45992024-03-11T10:10:00failedmia.white@example.com276
45982024-03-11T08:50:00refundedwilliam.brown@example.com315
45972024-03-10T19:45:00paidemma.davis@example.com529
45962024-03-10T15:55:00paidethan.harris@example.com639
Rows per page:
Page 1 of 1

Custom Columns

Custom column definitions with formatted cells and styled badges.

#
Date
Status
Email
Amount
#4600Mar 11, 15:30Paidjames.anderson@example.com
$594.00
#4599Mar 11, 10:10Failedmia.white@example.com
$276.00
#4598Mar 11, 08:50Refundedwilliam.brown@example.com
$315.00
#4597Mar 10, 19:45Paidemma.davis@example.com
$529.00
#4596Mar 10, 15:55Paidethan.harris@example.com
$639.00
Rows per page:
Page 1 of 1

With Slots

Using slots to customize cell rendering with avatars and dropdowns.

User
Email
Role

Lindsay Walton

@lindsayw

lindsay.walton@example.comMember

Courtney Henry

@courtneyh

courtney.henry@example.comAdmin

Tom Cook

@tomc

tom.cook@example.comMember

Whitney Francis

@whitneyf

whitney.francis@example.comAdmin
Rows per page:
Page 1 of 1

Table footer with column totals using aggregation functions.

#
Description
Qty
Amount
1Web Design
3
$1,200.00
2Development
5
$2,400.00
3Consulting
2
$800.00
4Support
4
$600.00
Total
14
$5,000.00
Rows per page:
Page 1 of 1

Clean table without footer controls for simple layouts.

Name
Email
Status
John Doejohn@example.comActive
Jane Smithjane@example.comActive
Bob Johnsonbob@example.comInactive

Loading State

Table with loading indicator - includes custom loader slot support.

ID
Product
Category
Price
Stock
9008Rustic Metal SaladMovies
$15.89
1
2466Unbranded Cotton BikeElectronics
$189.61
45
5080Soft Plastic ComputerIndustrial
$83.75
55
8823Practical Granite MouseIndustrial
$484.51
40
3114Licensed Rubber BaconGames
$498.75
45
Rows per page:
Page 1 of 3

Server-Side Pagination

Manual pagination with server-side data fetching and search. Enable manual-pagination prop and listen to the @update:pagination event.

95 total users
ID
Name
Email
Role
Department
Status
#R8BZUHorace Tremblay Ivirginia40@yahoo.comAdminEngineeringInactive
#QXY2_Eunice Cormierdevin44@gmail.comMemberSalesActive
#WV26KMelanie Botsfordjuliana3@yahoo.comViewerMarketingActive
#_VZGCAlex Framidejah85@gmail.comAdminSupportActive
#X6RR0Art Kesslernelson_mante@hotmail.comMemberEngineeringActive
#-E0ZQPhilip Walterkaden_zboncak@hotmail.comViewerSalesInactive
#U8CQHGreyson Shanahanemiliano64@hotmail.comAdminMarketingActive
#BAXE_Peggy Bergstrom DDSmyrtis_wisozk46@gmail.comMemberSupportActive
#NDN60Rodrigo Leuschkelouie_lubowitz79@yahoo.comViewerEngineeringActive
#GENHQZachery Ritchierandall_okeefe64@hotmail.comAdminSalesActive
Rows per page:
Page 1 of 10

Expansion

Expandable rows to display additional details using the expansion feature.

Name
Email
Role
Status
Luigi Rowemaggie18@gmail.comViewerInactive
Roscoe Schroederleonie5@gmail.comAdminActive
Kianna White MDgwendolyn_mante@gmail.comViewerActive
Sherman Murazik-Corkerybrian71@gmail.comMemberInactive
Barney Boehmmyra67@yahoo.comAdminInactive
Kaci Orn Sr.lillian45@yahoo.comAdminInactive
Carlos Hilpertjohnathon82@hotmail.comMemberInactive
Tasha Schamberger IItammy_wilderman42@gmail.comViewerActive
Beulah Lefflersabrina.boehm85@gmail.comAdminActive
Meredith Hane PhDpinkie.kessler53@yahoo.comAdminInactive
Rows per page:
Page 1 of 2

Row Pinning

Pin rows to the top or bottom. The table emits update:rowPinning and row-pin so parents can sync state.

Use the pin menu to choose top, bottom, or unpin.
Pin
Name
Email
Department
Status
Oliver Bartell-Goyettepink.keeling50@gmail.comSalesActive
Ted Okuneva-Krajcikelmo.heaney45@yahoo.comSalesActive
Itzel Lebsackbryant_larkin@hotmail.comMarketingInactive
Mr. Ansel Ondrickatina.flatley@hotmail.comSalesActive
Ms. Violet Harveysam11@hotmail.comSalesActive
Rochelle Welcharnold58@hotmail.comSupportActive
Lynda Homenickloraine_beahan4@hotmail.comSalesActive
Izaiah Douglas Jr.kathryn56@hotmail.comMarketingInactive
Hoyt Torphy DDSeloy.krajcik@yahoo.comMarketingActive
Mr. Kenny Beierearnest74@hotmail.comEngineeringActive
Rows per page:
Page 1 of 2

Column Pinning

Opt-in header pin buttons let you pin columns left or right. Pinned columns are sticky to the table edges; override --ui-table-pinned-bg in CSS if you need a different background. Use enable-column-pinning and show-column-pin-buttons to render the controls, and listen to update:columnPinning / column-pin if you need to sync state.

Pin columns with the header menu: choose left, right, or unpin.
ID
First Name
Last Name
Email
Phone
Address
Department
Status
IJYP-4FeliciaVandervortfelicia_vandervort@yahoo.com(812) 653-924014803 Depot Street Suite 838SupportInactive
ORSSOEDarinBrakusdarin.brakus@gmail.com(394) 567-87667249 Woodside Road Suite 936EngineeringActive
FHSWNNAntoinetteHaneantoinette.hane@yahoo.com(294) 512-208111623 Katarina Dale Suite 511SupportActive
5E4TCPRosemaryBlandarosemary.blanda@hotmail.com(875) 966-91297196 Heron Close Suite 106EngineeringInactive
XONHXPRobertoHaleyroberto_haley@gmail.com(380) 381-73233520 Reynolds Circles Apt. 378SalesInactive
F8WR9FJillFritschjill.fritsch@hotmail.com(241) 675-4014856 S Main Avenue Apt. 531EngineeringActive
JAQ0VIAngusHellerangus_heller@hotmail.com(812) 536-258393935 Brennon Glens Apt. 902EngineeringActive
SJJTMHBayleeFraneybaylee_franey@gmail.com(525) 932-692292224 Laurie Lakes Apt. 117EngineeringActive
Rows per page:
Page 1 of 1
Pinned columns
None

Context Menu

Name
Email
Role
Department
Status
Jay Robelandres.smitham-ryan@hotmail.comViewerEngineeringActive
Gayle Wiegandsabrina.goldner@hotmail.comAdminEngineeringInactive
Asa Boreroren61@hotmail.comAdminEngineeringInactive
Leanna Baileydeanna_conn63@hotmail.comViewerSupportActive
Miss Valerie Ebertcolby.pfannerstill97@gmail.comAdminEngineeringActive
Ellis Brakusfelicita_haley52@gmail.comAdminEngineeringInactive
Malachi Sauerwilson39@hotmail.comMemberSupportInactive
Bonnie Cassin Sr.joanne86@hotmail.comAdminEngineeringActive
Wade Bernierkent38@hotmail.comMemberEngineeringInactive
Gerardo Nadereugene70@hotmail.comMemberMarketingInactive
Rows per page:
Page 1 of 2