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 | |
|---|---|---|---|---|
| cROvyYbwhH | $942.00 | pending | dax.hickle@yahoo.com | |
| CtzZ0wvgVr | $573.00 | failed | bridget69@yahoo.com | |
| jQjLFiVxwk | $837.00 | pending | paxton.funk81@gmail.com | |
| 56rI6aMs10 | $168.00 | failed | lottie85@yahoo.com | |
| eh8UEZrRMn | $707.00 | failed | hardy4@yahoo.com |
Basic
| Name | Location | Status | Balance | ||
|---|---|---|---|---|---|
| Dr. Bryant Orn II | lonnie79@gmail.com | East Burdette | Inactive | $835.52 | |
| Bertram West-Ullrich | shemar.conroy@hotmail.com | Lake Kristen | Inactive | $1,181.78 | |
| Jerald Effertz | lizeth4@gmail.com | Ratkeville | Inactive | $491.97 | |
| Jessica Feeney | eli.hintz97@gmail.com | Jaceystad | Active | $593.68 | |
| Desiree Gerlach III | elijah62@yahoo.com | Haagburgh | Active | $990.35 | |
| Total | $4,093.30 | ||||
Basic data table made with TanStack Table
Filters
Keyword | Intents | Volume | CPC | Traffic | Link | |
|---|---|---|---|---|---|---|
| react components | I N | 2.5K | 2.5 | 88 | https://www.originui.com | |
| buy react templates | C T | 1.9K | 4.75 | 65 | https://www.originui.com/templates | |
| react ui library | I C | 3.2K | 3.25 | 112 | https://www.originui.com/docs | |
| tailwind components download | T | 890 | 1.95 | 45 | https://www.originui.com/download | |
| react dashboard template free | C T | 4.1K | 5.5 | 156 | https://www.originui.com/templates/dashboard | |
| how to use react components | I | 1.2K | 1.25 | 42 | https://www.originui.com/tutorials | |
| react ui kit premium | C T | 760 | 6.8 | 28 | https://www.originui.com/pricing | |
| react component documentation | I N | 950 | 1.8 | 35 | https://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 |
|---|---|---|---|---|
| 4600 | 2024-03-11T15:30:00 | paid | james.anderson@example.com | 594 |
| 4599 | 2024-03-11T10:10:00 | failed | mia.white@example.com | 276 |
| 4598 | 2024-03-11T08:50:00 | refunded | william.brown@example.com | 315 |
| 4597 | 2024-03-10T19:45:00 | paid | emma.davis@example.com | 529 |
| 4596 | 2024-03-10T15:55:00 | paid | ethan.harris@example.com | 639 |
Custom Columns
Custom column definitions with formatted cells and styled badges.
# | Date | Status | Email | Amount |
|---|---|---|---|---|
| #4600 | Mar 11, 15:30 | Paid | james.anderson@example.com | $594.00 |
| #4599 | Mar 11, 10:10 | Failed | mia.white@example.com | $276.00 |
| #4598 | Mar 11, 08:50 | Refunded | william.brown@example.com | $315.00 |
| #4597 | Mar 10, 19:45 | Paid | emma.davis@example.com | $529.00 |
| #4596 | Mar 10, 15:55 | Paid | ethan.harris@example.com | $639.00 |
With Slots
Using slots to customize cell rendering with avatars and dropdowns.
User | Email | Role | |
|---|---|---|---|
Lindsay Walton @lindsayw | lindsay.walton@example.com | Member | |
Courtney Henry @courtneyh | courtney.henry@example.com | Admin | |
Tom Cook @tomc | tom.cook@example.com | Member | |
Whitney Francis @whitneyf | whitney.francis@example.com | Admin |
With Footer
Table footer with column totals using aggregation functions.
# | Description | Qty | Amount |
|---|---|---|---|
| 1 | Web Design | 3 | $1,200.00 |
| 2 | Development | 5 | $2,400.00 |
| 3 | Consulting | 2 | $800.00 |
| 4 | Support | 4 | $600.00 |
Total | 14 | $5,000.00 |
Minimal (No Footer)
Clean table without footer controls for simple layouts.
Name | Email | Status |
|---|---|---|
| John Doe | john@example.com | Active |
| Jane Smith | jane@example.com | Active |
| Bob Johnson | bob@example.com | Inactive |
Loading State
Table with loading indicator - includes custom loader slot support.
ID | Product | Category | Price | Stock |
|---|---|---|---|---|
| 2594 | Intelligent Wooden Table | Clothing | $115.96 | 80 |
| 4601 | Modern Cotton Shirt | Music | $285.61 | 12 |
| 7654 | Handcrafted Marble Sausages | Tools | $174.84 | 57 |
| 2181 | Frozen Aluminum Car | Games | $284.46 | 14 |
| 3087 | Modern Ceramic Pizza | Kids | $251.01 | 52 |
Server-Side Pagination
Manual pagination with server-side data fetching and search. Enable manual-pagination prop and listen to the @update:pagination event.
ID | Name | Email | Role | Department | Status |
|---|---|---|---|---|---|
| #WANYZ | Mr. Ed Schuster | jess69@gmail.com | Admin | Engineering | Inactive |
| #IE_CO | Deshawn Fay | jovanny.ortiz@hotmail.com | Member | Sales | Active |
| #JU1MA | Harrison Rau | providenci81@gmail.com | Viewer | Marketing | Active |
| #PRXOI | Annamarie Witting | kiarra_gibson3@gmail.com | Admin | Support | Active |
| #CNFVQ | Brisa Ritchie DDS | jacynthe_runte61@hotmail.com | Member | Engineering | Active |
| #P2YRF | Charlotte Schumm | wyman75@hotmail.com | Viewer | Sales | Inactive |
| #ZPECN | Clark Dickinson II | cleo.goodwin62@gmail.com | Admin | Marketing | Active |
| #VEGY2 | Brisa Klocko | maximillian_schneider63@gmail.com | Member | Support | Active |
| #NAEED | Ashtyn Bernier | vergie.kihn@yahoo.com | Viewer | Engineering | Active |
| #G7VSH | Rose Thompson | orville_homenick@hotmail.com | Admin | Sales | Active |
Expansion
Expandable rows to display additional details using the expansion feature.
Name | Email | Role | Status | |
|---|---|---|---|---|
| Nicole Hermiston | kenyatta.rath-nicolas@hotmail.com | Member | Inactive | |
| Percy Herman I | lulu.dietrich@gmail.com | Admin | Active | |
| Jensen Green II | bernita_stiedemann@yahoo.com | Member | Inactive | |
| Thad Rau Jr. | christophe_douglas77@yahoo.com | Member | Active | |
| Sigurd Harris | lance26@gmail.com | Viewer | Active | |
| Brock Moen | margarita43@gmail.com | Admin | Inactive | |
| Seamus Walsh | jannie6@yahoo.com | Member | Active | |
| Ms. Dakota Kutch | bianka35@hotmail.com | Admin | Inactive | |
| Manuel Christiansen | lynn25@gmail.com | Member | Active | |
| Sibyl Kemmer | alfred.morissette72@hotmail.com | Member | Inactive |
Row Pinning
Pin rows to the top or bottom. The table emits update:rowPinning and row-pin so parents can sync state.
| Pin | Name | Email | Department | Status |
|---|---|---|---|---|
| Peggy Bartoletti | janessa_langosh23@yahoo.com | Sales | Active | |
| Bret Schmeler DVM | nestor98@yahoo.com | Engineering | Active | |
| Don Sawayn | gerardo_champlin@hotmail.com | Marketing | Inactive | |
| Rita Borer | alejandro.tillman@gmail.com | Support | Active | |
| Aiden Jacobson DDS | myrl.smitham@yahoo.com | Support | Active | |
| Dr. Cade Toy V | berry_wunsch@yahoo.com | Support | Active | |
| Aliza Toy | cindy.turner17@hotmail.com | Support | Inactive | |
| Tomas Parisian | emery47@yahoo.com | Support | Active | |
| Cloyd Dach | solon.pagac@gmail.com | Marketing | Active | |
| Una Mills | novella_lueilwitz95@yahoo.com | Engineering | Active |
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.
ID | First Name | Last Name | Email | Phone | Address | Department | Status |
|---|---|---|---|---|---|---|---|
| IAQL-Y | Dayne | Smitham | dayne_smitham41@yahoo.com | (929) 351-1407 | 7443 N 1st Street Apt. 276 | Support | Inactive |
| 1TDBMD | Santos | Morar | santos.morar33@yahoo.com | (641) 459-6499 | 98057 W 12th Street Suite 489 | Marketing | Inactive |
| PQLBE5 | Jacklyn | Collins | jacklyn.collins47@hotmail.com | (667) 666-1880 | 2628 Broadway Apt. 911 | Support | Inactive |
| 20KB_V | Santina | Weimann | santina_weimann@gmail.com | (378) 702-9981 | 102 South Street Apt. 213 | Support | Inactive |
| IUA32C | Emmanuelle | Nolan-Wilkinson | emmanuelle.nolan-wilkinson18@gmail.com | (411) 722-0529 | 50836 Pacocha Hill Suite 212 | Support | Inactive |
| QXUHDJ | Morton | Kertzmann | morton.kertzmann@gmail.com | (705) 901-3437 | 65340 High Road Apt. 502 | Support | Active |
| SKDZCJ | Devin | Keeling-Kreiger | devin.keeling-kreiger@hotmail.com | (217) 647-3566 | 324 Schowalter Cliffs Suite 102 | Marketing | Inactive |
| HUGXQY | Deja | Considine | deja_considine@hotmail.com | (628) 523-9587 | 43833 West Avenue Suite 151 | Sales | Inactive |
Context Menu
Name | Email | Role | Department | Status |
|---|---|---|---|---|
| Priscilla Gutkowski | carmel.ritchie@hotmail.com | Viewer | Support | Active |
| Cleve Bogan | nola56@yahoo.com | Viewer | Marketing | Inactive |
| Oliver Keebler | estell_block45@hotmail.com | Member | Sales | Inactive |
| Jessie Murphy | broderick_johnston@gmail.com | Viewer | Marketing | Active |
| Tommie Kunde II | raegan.windler36@hotmail.com | Viewer | Support | Inactive |
| Percy Reichel | jensen80@yahoo.com | Member | Engineering | Inactive |
| Amie Satterfield | gretchen_kassulke42@gmail.com | Admin | Support | Active |
| Savion Shields | elias17@hotmail.com | Member | Engineering | Active |
| Trey Bergnaum | valentine87@yahoo.com | Member | Support | Inactive |
| Lou Kreiger | katrine.luettgen9@gmail.com | Viewer | Sales | Active |