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 massive datasets with virtualization, lazy loading, and optimized 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

Multi-column sorting, custom sort functions, and persistent sort state across sessions

Column Management

Resizable columns, show/hide controls, column reordering, and fixed column support

Export Functionality

Export data to CSV, Excel, PDF, and JSON formats with custom formatting options

Row Expansion

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

Installation

Install via CLI

moonui 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
Name
Email
Role
Department
Salary
Join Date
Status
John Doe
john.doe@example.com
Admin
Engineering
$85,000
1/15/2023
Active
Jane Smith
jane.smith@example.com
Editor
Marketing
$65,000
2/20/2023
Active
Bob Johnson
bob.johnson@example.com
User
Sales
$55,000
3/10/2023
Inactive
Alice Brown
alice.brown@example.com
Viewer
HR
$75,000
4/5/2023
Pending
Charlie Wilson
charlie.wilson@example.com
Editor
Engineering
$60,000
5/12/2023
Active

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
İsim
E-posta
Rol
John Doejohn.doe@example.comAdmin
Jane Smithjane.smith@example.comEditor
Bob Johnsonbob.johnson@example.comUser

Rows per page

Page 1 of 1

Sorting and Filtering

PRO

Table with sorting and filtering features

Pro Required
Rol
Departman
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
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
100%
2024-01-15
Project BetaIn Progress
75%
2024-02-01
Project GammaPlanning
25%
2024-03-15
Project DeltaIn Progress
60%
2024-02-20
Project EpsilonCompleted
100%
2024-01-30

Rows per page

Page 1 of 1

Advanced Filtering

PRO

Table with filter drawer/sidebar

Pro Required
Name
Email
Role
Department
Salary
Join Date
Status
John Doe
john@example.com
Admin
Engineering
$120,000
1/15/2022
Active
Jane Smith
jane@example.com
User
Sales
$85,000
3/20/2022
Active
Bob Johnson
bob@example.com
Editor
Marketing
$75,000
11/10/2021
Inactive
Alice Brown
alice@example.com
User
HR
$70,000
2/1/2023
Active
Charlie Davis
charlie@example.com
Admin
Engineering
$110,000
6/15/2023
Pending
Emma Wilson
emma@example.com
Editor
Marketing
$80,000
8/1/2022
Active
Frank Miller
frank@example.com
User
Sales
$90,000
5/20/2021
Inactive
Grace Lee
grace@example.com
Admin
HR
$105,000
12/1/2022
Active
Henry Zhang
henry@example.com
Editor
Engineering
$95,000
1/10/2023
Active
Ivy Chen
ivy@example.com
User
Marketing
$72,000
9/1/2023
Pending

Rows per page

Page 1 of 1

Custom Cells

PRO

Customized cell renderers

Pro Required
Ürün
Fiyat
Durum
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