
!License
!Last Commit

!npm

src="https://codesandbox.io/static/img/play-codesandbox.svg"
alt="Open in CodeSandbox"
height="28"
style="vertical-align: middle;"
/>
React Data Grid Lite

A lightweight and customizable React data grid component designed for high performance and ease of use.
The DataGrid component is a highly customizable, feature-rich table built with React, designed to display tabular data and easily integrate into any application. It is intended for use cases where large datasets need to be presented with advanced features such as pagination, sorting, searching, row interactions,
AI-powered search, and more.
With built-in support for OpenAI (or other LLMs via configurable endpoints), the grid can semantically interpret user queries and return intelligent, filtered resultsβideal for enhancing user experience in modern data-driven applications.
$3
β‘
Lightweight β Fast, small bundle
π¦
API-ready β Plug into any JSON API
π οΈ
Smart columns β Auto schema detection
π
Fast search β Filter with custom labels & aliases
π€
AI search β Semantic query support (OpenAI/LLM)
π
Fixed & resizable columns
π±
Responsive β Mobile-friendly layout
π§Ύ
CSV export β One-click data download
βοΈ
Inline editing β Keyboard & touch support
π¨
Custom cells β Render anything
π§©
Merged columns β Combine multiple fields
π
Analytics-ready β Track user actions
π¨
Theming β Easy styling & prebuilt themes
π
Drag & reorder columns
π§©
Align actions β Left/right
π
Column menu β Per-column sort, hide, and edit options
π§°
Toolbar menu β Compact 3-dot menu for export, reset, and more
π
Transpose β Instantly pivot rows into columns for dynamic data views
π§ͺ
Fully tested β Robust unit tests
π
RTL support β Right-to-left layout support
π
Virtualization β Handles 1,000s of rows and columns efficiently
π¦ Installation
``
bash
npm install react-data-grid-lite
`
or
`
bash
yarn add react-data-grid-lite
`
This component has the following peer dependencies that need to be installed as well:
`
json
{
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
}
}
`
π Usage
`
jsx
import React from 'react';
import DataGrid from 'react-data-grid-lite';
const columns = [
{ name: 'id', width:'50px' },
{ name: 'name', alias:'Full Name' },
{ name: 'age' }
];
const rows = [
{ id: 1, name: 'John Doe', age: 28 },
{ id: 2, name: 'Jane Smith', age: 34 }
];
function App() {
return (
);
}
export default App;
`
React Compatibility Table
The react-data-grid-lite` library is compatible with the following versions of React:
|
React Version |
Compatibility |
| ----------------- | ------------------ |
|
React 19+ | β
Fully Compatible |
|
React 18+ | β
Fully Compatible |
|
React 17+ | β
Fully Compatible |
ποΈ Documentation
-
API Reference
π Try It Out!
Feel free to fork the repository and experiment with the grid's behavior for concatenating columns. Let me know if you'd like any further adjustments or clarification! Happy coding! π
π License
This project is licensed under the MIT License - see the
LICENSE file for details.
πββοΈ Available for freelance work!
Reach out via
LinkedIn or check out my projects on
GitHub.