Table

Display structured data using rows and columns.

Import

import { Table } from "@shivms/ui";

Basic

IDNameRole
1AdityaDeveloper
2RahulDesigner
3PriyaManager

Striped

ProductPrice
Laptop$1200
Mouse$30
Keyboard$90

Hover

EmployeeDepartment
JohnSales
EmmaSupport
DavidHR

Compact

CodeStatus
ORD001Completed
ORD002Pending

Bordered

CityCountry
MumbaiIndia
TokyoJapan
LondonUnited Kingdom

Small

IDProductStock
101Keyboard42
102Mouse85
103Monitor12

Large

NameEmailRole
Adityaaditya@example.comAdmin
Rahulrahul@example.comDeveloper
Priyapriya@example.comDesigner

Rounded

InvoiceCustomerTotal
INV001John$420
INV002Emma$180
INV003David$760

Pill Radius

TaskPriorityStatus
DocumentationHighCompleted
TestingMediumIn Progress
DeploymentLowPending

Table Footer

ProductQuantityPrice
Laptop2$2400
Mouse5$150
Keyboard3$270
Total10$2820

Sticky Header

IDNameDepartment
001AdityaDevelopment
002RahulDesign
003PriyaMarketing
004NehaSupport
005AmitFinance
006KaranHR
007SnehaQA
008VikramOperations
009AnjaliSales
010RohanManagement

Cell Alignment

ProductStockPrice
Laptop12$1200
Monitor8$350
Keyboard25$90

Column Span

IDNameDepartment
1AdityaDevelopment
No additional employee records available.

Row Span

DepartmentEmployee
DevelopmentAditya
Rahul
DesignPriya

Single Selection

NameRole
AdityaDeveloper
RahulDesigner
PriyaManager

Multiple Selection

NameDepartment
JohnSales
EmmaSupport
DavidFinance
SophiaMarketing

Checkbox Selection

ProductStock
Laptop12
Monitor8
Keyboard20

Basic Sorting

NameRoleDepartment
AdityaDeveloperEngineering
RahulDesignerDesign
PriyaManagerOperations

Ascending Sort

ProductPrice
Keyboard$90
Laptop$1200
Monitor$350

Descending Sort

EmployeeSalary
Emma$8,500
John$7,800
David$6,900

Basic Filter

NameRoleDepartment
AdityaDeveloperEngineering
RahulDesignerDesign
PriyaManagerOperations

Status Filter

OrderStatusCustomer
#1001CompletedJohn
#1002PendingEmma
#1003CancelledDavid

Multiple Filters

ProductCategoryStock
LaptopElectronics12
KeyboardAccessories45
MonitorElectronics8

Basic Search

NameRoleDepartment
AdityaDeveloperEngineering
RahulDesignerDesign
PriyaManagerOperations

Search with Placeholder

NameEmailRole
Johnjohn@example.comDeveloper
Emmaemma@example.comDesigner
Daviddavid@example.comManager

Search with Empty State

ProductCategoryPrice
No records found.

Basic Pagination

IDNameDepartment
1AdityaEngineering
2RahulDesign
3PriyaOperations

Page Size

ProductCategoryStock
LaptopElectronics15
MonitorElectronics8
KeyboardAccessories42

Controlled Pagination

OrderCustomerStatus
#1021JohnCompleted
#1022EmmaPending
#1023DavidProcessing

Basic Toolbar

NameRoleDepartment
AdityaDeveloperEngineering
RahulDesignerDesign
PriyaManagerOperations

Search Toolbar

ProductCategoryPrice
LaptopElectronics$1200
MonitorElectronics$350
KeyboardAccessories$90

Bulk Actions

NameStatus
JohnActive
EmmaActive
DavidInactive

Loading

NameRoleDepartment
Loading...

Empty

IDNameStatus
No records found.

Loading with Placeholder

ProductCategoryPrice
Loading...

Custom Empty State

ProductCategoryStock
No records found.

Basic Summary

ProductQuantityAmount
Laptop2$2,400
Monitor4$1,400
Keyboard6$540
Total12$4,340

Average Values

EmployeeTasksHours
Aditya1842
Rahul2139
Priya1545
Average1842

Summary with Multiple Totals

CategoryItemsRevenue
Electronics24$12,500
Accessories53$2,350
Furniture8$4,900
Total85$19,750

Sticky Header with Pagination

IDNameDepartment
001AdityaEngineering
002RahulDesign
003PriyaOperations
004NehaSupport
005KaranFinance

Interactive Data Table

NameRoleDepartment
AdityaDeveloperEngineering
RahulDesignerDesign
PriyaManagerOperations

Dashboard Table

OrderCustomerStatusTotal
#1001JohnCompleted$420
#1002EmmaPending$185
#1003DavidProcessing$760
Total Revenue$1,365

Employee Management

IDNameDepartmentRoleStatus
EMP001AdityaEngineeringDeveloperActive
EMP002RahulDesignDesignerActive
EMP003PriyaOperationsManagerOn Leave

Product Inventory

SKUProductCategoryStockPrice
PRD001LaptopElectronics15$1200
PRD002KeyboardAccessories42$90
PRD003MonitorElectronics8$350
Total Stock65

Orders Dashboard

OrderCustomerStatusDateTotal
#1021JohnCompleted01 Jul 2026$420
#1022EmmaPending30 Jun 2026$185
#1023DavidProcessing29 Jun 2026$760