Data Table

Free + Pro

Powerful data table component with basic and advanced features. Free version includes sorting, filtering, and pagination. Pro version adds export, row selection, bulk actions, and more.

Unlock Advanced Data Table Features

Get access to powerful pro features that enhance your data table component with advanced capabilities, premium styling options, and optimized performance.

  • Advanced filtering & search
  • Export to CSV, JSON, Excel
  • Row selection & bulk actions

Pro Features

Unlock advanced capabilities with the Pro version

Advanced Data Handling

Handle large datasets with client and server-side (manual) pagination, memoized rows, and optimized re-rendering for smooth performance

Smart Filtering & Search

Quick filters, faceted filters with counts, enum auto-detection, and custom filter value accessors for complex data

Flexible Sorting

Three-state column sorting (ascending, descending, none) with a custom sort handler and controllable sorting state

Column Management

Column visibility controls to show or hide any column on demand, with per-column filter metadata

Export Functionality

Export table data to CSV, JSON, and Excel (XLSX) formats with optional custom export handlers

Row Expansion

Expandable rows with nested tables, detail views, and custom expansion content

Installation

Install via CLI

npx @moontra/moonui-cli add data-table

Usage

Basic Usage

Pro Required
Name
Email
Role
John Doejohn.doe@example.comAdmin
Jane Smithjane.smith@example.comEditor
Bob Johnsonbob.johnson@example.comUser
3 row(s)
Page 1 of 1

Pro Usage

PRO
Pro Required
0 rows selected
Name
Email
Role
Department
John Doe
john.doe@example.com
Admin
Engineering
Jane Smith
jane.smith@example.com
Editor
Marketing
Bob Johnson
bob.johnson@example.com
User
Sales
Alice Brown
alice.brown@example.com
Viewer
HR
Charlie Wilson
charlie.wilson@example.com
Editor
Engineering

Rows per page

Page 1 of 1

Examples

Basic Table

Simple data table with sorting and pagination

Name
Email
Status
John Doejohn@example.comActive
Jane Smithjane@example.comPending
Bob Johnsonbob@example.comInactive
3 row(s)
Page 1 of 1

With Search

Data table with global search functionality

Product
Price
Stock
Laptop$99915
Mouse$2550
Keyboard$7530
Monitor$35010
Headphones$12025
5 row(s)
Page 1 of 1
PRO
Pro Examples

Advanced Features

PRO

Data table with export, row selection, and advanced filtering

Pro Required
Name
Email
Role
Department
John Doejohn.doe@example.comAdminEngineering
Jane Smithjane.smith@example.comEditorMarketing
Bob Johnsonbob.johnson@example.comUserSales

Rows per page

Page 1 of 1

Sorting and Filtering

PRO

Table with sorting and filtering features

Pro Required
Role
Department
John Doe
Admin
Engineering
Jane Smith
Editor
Marketing
Bob Johnson
User
Sales
Alice Brown
Viewer
HR
Charlie Wilson
Editor
Engineering

Rows per page

Page 1 of 1

Row Selection with Callbacks

PRO

Table with multi-row selection, onRowSelect callback, and bulk actions

Pro Required
0 rows selected
Name
Email
Role
Department
John Doe
john.doe@example.com
Admin
Engineering
Jane Smith
jane.smith@example.com
Editor
Marketing
Bob Johnson
bob.johnson@example.com
User
Sales
Alice Brown
alice.brown@example.com
Viewer
HR
Charlie Wilson
charlie.wilson@example.com
Editor
Engineering

Rows per page

Page 1 of 1

Pagination

PRO

Large dataset with pagination feature

Pro Required
Name
Email
Role
Department
Salary
John Doe
john.doe@example.com
Admin
Engineering
$85,000
Jane Smith
jane.smith@example.com
Editor
Marketing
$65,000
Bob Johnson
bob.johnson@example.com
User
Sales
$55,000

Rows per page

Page 1 of 4

Advanced Features

PRO

Table with export functionality (CSV, Excel, PDF) and all features

Pro Required
Project Name
Status
Progress
Due Date
Project AlphaCompleted
2024-01-15
Project BetaIn Progress
2024-02-01
Project GammaPlanning
2024-03-15
Project DeltaIn Progress
2024-02-20
Project EpsilonCompleted
2024-01-30

Rows per page

Page 1 of 1

Advanced Filtering

PRO

Table with filter drawer/sidebar

Pro Required
Name
Email
Role
Department
Status
Salary
John Doejohn@example.comAdminEngineeringActive
$120,000
Jane Smithjane@example.comUserSalesActive
$85,000
Bob Johnsonbob@example.comEditorMarketingInactive
$75,000
Alice Brownalice@example.comUserHRActive
$70,000
Charlie Davischarlie@example.comAdminEngineeringPending
$110,000

Rows per page

Page 1 of 2

Custom Cells

PRO

Customized cell renderers

Pro Required
Product
Price
Status
MacBook Pro
Laptops
$2499
In Stock
iPhone 15
Phones
$999
In Stock
iPad Air
Tablets
$699
Low Stock
AirPods Pro
Audio
$249
In Stock
Apple Watch
Wearables
$399
Out of Stock

Rows per page

Page 1 of 1

Quick Filters

PRO

Dropdown filters for quick access to common filter options

Pro Required
Status
Payment
Order
Customer
Total
Completed
PaidORD-2024-001Tech Corp$1,064.84
Processing
PaidORD-2024-002Fashion World$438.97
Pending
UnpaidORD-2024-003Food Market$4,744.62
Completed
PaidORD-2024-004Book Cafe$654.99
Cancelled
RefundedORD-2024-005Sport Pro$412.73
Processing
PartialORD-2024-006Digital 360$3,519.92
Failed
UnpaidORD-2024-007Tech Corp$999.98
Completed
PaidORD-2024-008Organik Market$379.85

Rows per page

Page 1 of 1

Faceted Filters

PRO

Advanced filtering with counts and multi-select

Pro Required
Category
Brand
Product
Price
In Stock
ElectronicsAppleiPhone 15$999.00
ElectronicsSamsungGalaxy S24$899.00
ClothingNikeAir Max$150.00
BooksPenguinJavaScript Guide$45.00
FoodOrganic CoGreen Tea$12.00
SportsWilsonTennis Racket$220.00
ElectronicsSonyPlayStation 5$499.00
ClothingAdidasUltraboost$180.00
BooksO'ReillyReact Patterns$55.00
FoodNature's BestHoney$8.00

Rows per page

Page 1 of 1

Row Expansion

PRO

Expandable rows with a controlled expanded set — enableExpandable injects the expander column automatically, renderSubComponent renders the detail panel, and expandedRows/onRowExpandChange keep the state in your hands

Pro Required
Order
Customer
Status
Total
ORD-1001John Doe
Shipped
$249.00
ORD-1002Jane Smith
Processing
$1,299.00
ORD-1003Bob Johnson
Shipped
$89.00
ORD-1004Alice Brown
Pending
$438.00

0 row(s) expanded