Skip to main content

DataTable

DataTable is a data table component for React

📊

Excel-like Experience

Familiar spreadsheet interface with copy/paste, multi-selection, and keyboard navigation. Works just like Excel or Google Sheets.

🚀

Production Ready

Built with TypeScript, React, and TanStack Table. Fully typed, performant, and battle-tested for real-world applications.

🎨

Highly Customizable

29+ event callbacks, dynamic styling, feature flags, and per-column controls. Customize every aspect to fit your needs.

Key Capabilities

âœī¸

Inline Editing

Double-click to edit cells with debounced updates

đŸ–ąī¸

Multi-Selection

Click-drag, Ctrl+Click, Shift+Click for range selection

📋

Copy/Paste

Full clipboard integration with Excel-like behavior

â†Šī¸

Undo/Redo

Complete history tracking with keyboard shortcuts

📊

Column Management

Add, edit, delete, reorder, resize, hide columns

âŒ¨ī¸

Keyboard Navigation

Full keyboard support with arrow keys and shortcuts

Quick Start

import { DataTable } from "@/components/datatable/DataTable"
import { columns } from "@/components/datatable/columns"
import { data } from "@/components/datatable/data"
import { useState } from "react"

function App() {
  const [tableData, setTableData] = useState(data)

  return (
    <DataTable
      columns={columns}
      data={tableData}
      enableColumnResizing={true}
      enableAddField={true}
      onDataChange={setTableData}
    />
  )
}

Explore Documentation

🚀

Getting Started

Installation, setup, and basic usage examples

Get Started →
âš™ī¸

Feature Flags

Control UI elements like pagination and buttons

Learn More →
📊

Column Options

Per-column feature control & database loading

Explore →
🎨

Styling Guide

Cell, row, and header styling options

Style Guide →
🔔

Event Callbacks

29+ optional callbacks for every action

Callbacks →
🔧

API Reference

Complete type definitions and interfaces

API Docs →

🤖 MCP Server

Access all DataTable documentation programmatically through our Model Context Protocol (MCP) server. Perfect for AI assistants, automated documentation tools, and integrations.

🔍

Full-Text Search

Search across all documentation files with relevance scoring

📚

Category Filtering

Filter by guides, API, components, hooks, utilities, or intro

đŸ› ī¸

Tool-Based Access

Use MCP tools to search, list, and retrieve documentation

⚡

Fast Indexing

Instant access to all documentation with smart caching

# Install and build
cd mcp-server
pnpm install
pnpm build

# Run the server
pnpm start

# Or use from root
pnpm mcp:start