MIT licensed · shadcn registry

gridcn

An editable data grid for the shadcn ecosystem — range selection, spreadsheet clipboard, and a fill handle, done right.

pnpm dlx shadcn@latest add @gridcn/data-grid

Click-drag to select a range, drag the fill handle to extend a series, Ctrl+C / Ctrl+V for native clipboard round-trips.

Name
Email
Age
Active
Role
Joined
Score
Silent Tiger
user0@example.com
63
Viewer
Jul 5, 2023
4
Quick Lion
user1@example.com
67
Viewer
Apr 3, 2021
89
Swift Wolf
user2@example.com
40
Manager
Oct 27, 2020
80
Eager Lion
user3@example.com
50
User
Oct 8, 2022
51
Eager Tiger
user4@example.com
45
Viewer
Oct 7, 2024
83
Silent Wolf
user5@example.com
24
User
Jun 1, 2020
15
Swift Lion
user6@example.com
34
Viewer
Oct 18, 2022
62
Eager Lion
user7@example.com
21
Manager
Oct 7, 2021
42
Eager Eagle
user8@example.com
25
Editor
Jun 11, 2024
35
Bold Tiger
user9@example.com
19
Editor
Mar 20, 2024
52
Bold Bear
user10@example.com
42
User
Apr 16, 2020
28
Swift Wolf
user11@example.com
47
Manager
Aug 4, 2022
9

The gap gridcn fills

Range selection, spreadsheet clipboard paste, and a fill handle are paid-tier features — Enterprise in AG Grid, Premium in MUI X. gridcn ships them open source (MIT): core plus one-line add-ons.

Range selection

Anchor + rectangular range, ctrl-click multi-range, full row/column channels, keyboard-driven extension.

Spreadsheet clipboard

Native copy/cut/paste with TSV + HTML table formats — pastes to and from Excel, Google Sheets, Apple Numbers, and other spreadsheets.

Fill handle

Drag to tile a selection, with series inference — arithmetic runs, zero-padded numbers, "Item 1" → "Item 2".

The gap, quantified

Where the same features sit in the grids you are probably comparing — free tier, paid tier, or your own code.

CapabilitygridcnAG GridMUI XTanStack Table
Range selectionFreeEnterprisePremiumHeadless
Excel / Sheets clipboard round-tripFreeEnterprisePremiumHeadless
Fill handleAdd-onEnterprisePremium (v9)
Undo & redoAdd-onCommunity (v36)PremiumHeadless
npx shadcn addOne lineExamples only

Tiers as of 09/2026 (AG Grid v36, MUI X v9, TanStack Table v9). Vendors change tiers — verify before relying on this: AG Grid pricing, MUI X licensing, TanStack Table.

Modular by design

The core engine is selection, keyboard, editing, cell types, clipboard, and validation. The twelve add-ons — fill handle, undo/redo, presence, pinned rows, and more — are separate registry items you install only if you want them.