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
hE2snH7ZWJ$865.00
processing
cathrine31@yahoo.com
deYRCYYDt6$224.00
pending
stephen.gerlach@yahoo.com
MSOlMvcG7Z$810.00
success
caroline81@hotmail.com
6Bcz7gt3Zh$773.00
pending
sherri_borer2@hotmail.com
TmEHpsNkji$687.00
pending
fleta_farrell@gmail.com
Rows per page:
Page 1 of 20

Basic

NameEmailLocationStatusBalance
Mitchel Beckerwoodrow_morissette69@hotmail.comWuckert-Gusikowskistead
Inactive
$657.36
Eliane Weimannwiley.jacobs93@hotmail.comNew Belle
Active
$950.64
Miss Vicky Raynorbessie.rodriguez@gmail.comLake Emmaleebury
Inactive
$898.47
Greta Hilpert DDSaddie.runte-weimann@gmail.comSouth Kaelynshire
Active
$1,169.42
Tracey Aufderharsilvia_metz@gmail.comSouth Antwon
Inactive
$73.40
Total$3,749.29

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
5873Luxurious Gold BaconElectronics
$104.86
31
5504Bespoke Wooden BikeHealth
$96.77
83
8929Fresh Steel MouseGrocery
$261.48
23
2998Fantastic Bronze SausagesGames
$164.58
32
9548Recycled Bronze FishHome
$183.53
51
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
#LD5EYPink Turnereaster1@hotmail.comAdminEngineeringInactive
#MG0KTMiss Esther Gleichnerfrankie.jones79@yahoo.comMemberSalesActive
#ENHWALucy Harrisralph.kilback7@yahoo.comViewerMarketingActive
#VH3CBBessie Mooreorville_kassulke@gmail.comAdminSupportActive
#RAT1LEzra Ondrickaelena_mckenzie@hotmail.comMemberEngineeringActive
#I_FOGEverardo Bernhard-Bergstromdomenic_ferry-leuschke29@gmail.comViewerSalesInactive
#YFSJLDr. Amelia Kassulkeeddie.kihn57@yahoo.comAdminMarketingActive
#24_0UBrendan Bartoletti-Osinskirocky.hayes21@hotmail.comMemberSupportActive
#JIKC3Becky Waelchisabrina.schoen34@gmail.comViewerEngineeringActive
#EPN7UElouise Gulgowskicarolyn.bayer32@gmail.comAdminSalesActive
Rows per page:
Page 1 of 10

Expansion

Expandable rows to display additional details using the expansion feature.

Name
Email
Role
Status
Kristin Kutch DVMgustavo58@gmail.comAdminActive
Patti Considinekaitlin39@hotmail.comAdminInactive
Marcia Naderrosamond_bayer@hotmail.comViewerActive
Kenneth Adamsbethel70@hotmail.comAdminInactive
Destini Brown IIImelyna78@hotmail.comAdminActive
Katherine Rogahngabe_quigley73@yahoo.comMemberInactive
Mr. Harold Jastpayton56@gmail.comViewerInactive
Brock Volkmanmossie.barrows34@gmail.comMemberActive
Juana Doyleirma.christiansen96@gmail.comMemberInactive
Emma Armstrongamie18@gmail.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
Louis Koelpin Sr.colin.mills@yahoo.comSalesActive
Tricia Kertzmannruth.schmidt29@yahoo.comEngineeringActive
Kennedi Vonkamren.jacobi21@yahoo.comSupportInactive
Dr. Robert Morissetteglen.pacocha55@hotmail.comSupportInactive
Mollie Krishazel_schultz41@yahoo.comMarketingInactive
Verna Brakuslucinda84@yahoo.comSalesActive
Richard Abbottbernadine.kohler@yahoo.comMarketingInactive
Winston Mayertterrell_funk@yahoo.comSalesActive
Walter Hickleismael97@gmail.comSupportInactive
Emilio O'Keefe PhDora.wolf@gmail.comSalesInactive
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
ADNCNOMonroeCarrollmonroe.carroll@hotmail.com(389) 955-18409290 Kristie Village Suite 249SalesActive
R2FCMFLuciaEmmerichlucia_emmerich0@hotmail.com(416) 750-5454254 Upton Mall Apt. 616SalesInactive
KCDNUBJanessaOkuneva-Simonisjanessa.okuneva-simonis0@hotmail.com(244) 334-396093544 South Avenue Apt. 156SalesActive
LWB0GQMarvinSkilesmarvin_skiles@hotmail.com(485) 826-804890907 Jefferson Street Apt. 393SalesInactive
CUGGI5RogelioGreenholtrogelio.greenholt54@yahoo.com(677) 428-024335802 Mills Views Suite 644EngineeringActive
2PMRLDGertrudeTorpgertrude.torp47@hotmail.com(751) 814-205139005 The Beeches Apt. 966SalesActive
NSXT_QJohannBartolettijohann.bartoletti20@hotmail.com(217) 943-11412603 Kelli Hill Apt. 900EngineeringActive
RY3NZJVickiMoorevicki_moore14@yahoo.com(841) 616-3757222 Bridge Road Apt. 669EngineeringInactive
Rows per page:
Page 1 of 1
Pinned columns
None

Context Menu

Name
Email
Role
Department
Status
Judson Wilkinson Sr.cynthia_gusikowski38@hotmail.comViewerEngineeringActive
Cooper Ward Ibailee_kiehn@gmail.comAdminSupportActive
Elmo McKenziegrady_rosenbaum19@hotmail.comViewerEngineeringInactive
Ken Blick MDkallie48@gmail.comViewerEngineeringInactive
Louisa Vandervortwilfred23@hotmail.comMemberMarketingActive
Douglas Kochdarin_baumbach@hotmail.comMemberSupportActive
Dr. Max Thompsonbeatrice.towne@hotmail.comMemberMarketingActive
Cornelius Fisher-Kesslernatalia_hyatt52@yahoo.comMemberEngineeringActive
Waldo Rogahnian_emard@yahoo.comAdminEngineeringActive
Myron Torp-Rathhenriette.adams-lowe@hotmail.comAdminSupportInactive
Rows per page:
Page 1 of 2