A spreadsheet-style grid with editable cells and formulas.
Pro
$pnpm dlx shadcn@latest add @caliper/data-grid
0container fluid→
Q4 2026 operating budget
Finance team · change a month and the totals follow
A1
Row
A
B
C
D
E
F
G
1
Budget line
October
November
December
Quarter
Share %
2
Salaries
84,000
84,000
86,500
254,500
63.28
3
Cloud hosting
12,400
13,150
14,900
40,450
4
Software licences
6,200
6,200
6,900
19,300
5
Marketing
9,500
15,200
11,800
36,500
6
Travel
2,100
3,400
5,200
10,700
7
Office
4,300
4,300
4,300
12,900
8
Contractors
7,800
9,100
6,400
23,300
9
Training
800
1,500
2,200
4,500
10
11
Total
127,100
136,850
138,200
402,150
12
Monthly average
15,887.5
17,106.25
17,275
134,050
13
14
A1Enter edits, arrows move, = starts a formula
Installs components/ui/data-grid.tsxDepends on none beyond ReactMotion none in component source
When to use
Use it for
Users enter and edit tabular numbers directly.
Totals must update as cells change.
Skip it when
Read-only data; use the data table.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/data-grid
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
Import it from your copy of the source. The example behind the preview comes with the source.
columnLabelsreadonly string[]—Replaces the A, B, C headings.
classNamestring—
Accessibility
It exposes grid, gridcell and status semantics, with aria-label, aria-rowcount, aria-colcount, aria-multiselectable, aria-selected and aria-hidden kept in step with state. Changes that matter are announced through a live region.
KeyBehaviour
↓Moves to the next item or value.
↑Moves to the previous item or value.
→Moves to the next item or value.
←Moves to the previous item or value.
PageDownMoves by a larger step, or to the next page.
PageUpMoves by a larger step, or to the previous page.
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.
TabMoves focus through the part's focusable elements.
EnterActivates the focused control.
DeleteRemoves the next character or the selected item.
BackspaceRemoves the previous character or item.
EscapeCloses or cancels, then returns focus to where it came from.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.