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
cCMqDvflRF$488.00
failed
aubree.bashirian1@gmail.com
L4m9Dvkda2$64.00
failed
brant17@gmail.com
cYVCGTZ2Z5$472.00
success
efrain33@gmail.com
tvhc853hpC$876.00
processing
dave.lockman-erdman@gmail.com
Yqpokwu8Gw$144.00
failed
gina89@gmail.com
Rows per page:
Page 1 of 20

Basic

NameEmailLocationStatusBalance
Dr. Todd Reichel DVMtianna50@gmail.comWest Janae
Inactive
$635.70
Gary Schuppehollis_turner@gmail.comPort Minnieworth
Active
$1,039.06
Brad Cassinstacy_schultz31@gmail.comWest Toni
Inactive
$811.61
Kristen Colliergreen.parker@gmail.comKshlerin-Hayesland
Inactive
$3.95
Daryl Ritchieimmanuel_deckow7@yahoo.comSan Leandro
Active
$671.17
Total$3,161.49

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
1090Fantastic Concrete BaconOutdoors
$285.07
88
4312Modern Marble TowelsOutdoors
$83.56
59
4949Intelligent Gold HatIndustrial
$344.10
100
6946Electronic Ceramic ChickenGrocery
$19.47
69
3529Luxurious Granite GlovesMusic
$495.48
99
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
#T6LUVJuanita Bernier DDSannabell_hammes@gmail.comAdminEngineeringInactive
#YIXJIJaunita Jacobskeith.halvorson@yahoo.comMemberSalesActive
#BC9B9Gregorio Waelchigarrick26@hotmail.comViewerMarketingActive
#JYJC3Leonora Wisozkdarryl_harber6@gmail.comAdminSupportActive
#V6I8BGeovanni Conroyjenna.yost@yahoo.comMemberEngineeringActive
#SFTGLKenneth O'Reilly DDSrosina.kuhn81@yahoo.comViewerSalesInactive
#I-D6YRolando Pfeffer Jr.petra_leannon74@yahoo.comAdminMarketingActive
#YYXAXDebra Moraryvette_sauer9@yahoo.comMemberSupportActive
#KD3NSJalyn Krisosvaldo.spencer@hotmail.comViewerEngineeringActive
#D0UDXMr. Orlando Kesslerselina15@hotmail.comAdminSalesActive
Rows per page:
Page 1 of 10

Expansion

Expandable rows to display additional details using the expansion feature.

Name
Email
Role
Status
Lloyd Balistreri-Strosinervin.tillman@gmail.comViewerInactive
Tasha Prosaccoskylar40@yahoo.comViewerInactive
Corene Kozeydanielle_bins@hotmail.comMemberInactive
Jaron Gibsonamber_corkery@hotmail.comViewerActive
Nicolas Renner-Pouroseleanor.bins@gmail.comViewerInactive
Elvira Lemkestephon_koss46@yahoo.comViewerActive
Kenny Bogisichelvie.corwin-bradtke26@yahoo.comAdminInactive
Todd Greenfelderscott_swaniawski92@yahoo.comAdminInactive
Audrey Hudson DVMdeborah.satterfield42@yahoo.comAdminActive
Bessie Rice-Leannonamy_pollich@yahoo.comMemberActive
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
Gerson Fritschantonia49@hotmail.comSupportInactive
Marco Botsfordstacy.kuvalis@yahoo.comEngineeringInactive
Alda Douglasvanessa.mertz69@hotmail.comMarketingInactive
Duane Brekkeantonia.effertz53@hotmail.comEngineeringActive
Emilio Kerlukeross_hirthe@yahoo.comEngineeringActive
Marcella Steuber PhDenrique_wunsch-daniel80@hotmail.comEngineeringInactive
Ludie Wintheisereileen36@gmail.comSupportInactive
Beaulah Schmittalexander_halvorson@gmail.comMarketingInactive
Kenny Flatleypatsy.becker93@gmail.comSalesInactive
Nestor Mayerbrenden.kshlerin90@hotmail.comEngineeringInactive
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
GATA_4ErynO'Reillyeryn_oreilly96@yahoo.com(376) 444-88088138 Heloise Lakes Apt. 409SupportActive
JRRQMIStaceyBradtkestacey_bradtke88@yahoo.com(570) 603-191222338 Priory Road Suite 330EngineeringActive
ILVODMJasmineRogahnjasmine_rogahn74@gmail.com(439) 857-854533722 Sporer Junction Apt. 176EngineeringActive
FJQRHDLexiOberbrunnerlexi_oberbrunner@yahoo.com(836) 669-85373676 W Front Street Suite 336SupportInactive
SOH8BFGrantBeattygrant.beatty43@hotmail.com(525) 895-26883074 Buck Inlet Apt. 839MarketingInactive
8YVRRNOmerWehneromer.wehner@hotmail.com(917) 998-5304364 Dallas Mall Suite 885EngineeringActive
NGI82TPauletteAuerpaulette.auer66@gmail.com(734) 252-624164039 Lebsack Club Suite 341EngineeringActive
CS9OMDBelindaKihnbelinda.kihn@hotmail.com(329) 688-9173434 Main Street Suite 281EngineeringActive
Rows per page:
Page 1 of 1
Pinned columns
None

Context Menu

Name
Email
Role
Department
Status
Drake Mayerford13@gmail.comViewerSalesActive
Ms. Iris Smithamaditya_brekke74@hotmail.comViewerSalesActive
Garry Beahan Ijennie.damore51@hotmail.comMemberSupportActive
Janie Baumbachdaphney_swift@yahoo.comMemberEngineeringInactive
Alena Johnsola_parisian74@yahoo.comAdminMarketingInactive
Loma Emard-Little Jr.reynold.goodwin-jaskolski24@gmail.comAdminEngineeringInactive
Ms. Friedrich Predovic DVMarvel.schiller@yahoo.comMemberSalesActive
Shane Goldnerbella_larson@gmail.comMemberEngineeringActive
Max Framitracy.ferry@gmail.comMemberEngineeringActive
Alfredo Cruickshanksincere37@yahoo.comMemberMarketingActive
Rows per page:
Page 1 of 2