Skip to content
caliper ui pro docs

Virtual table

A table that renders only the visible rows, so thousands stay fast.

Pro
ORD-100000
Lukas Tanaka
Failed
2026-03-11
$48.00
ORD-100001
Maya Chen
Failed
2026-04-16
$475.12
ORD-100002
Lena Tanaka
Refunded
2026-05-13
$303.42
ORD-100003
Lukas Solberg
Paid
2026-05-19
$71.99
ORD-100004
Ingrid Haddad
Failed
2026-09-02
$59.96
ORD-100005
Ravi Patel
Pending
2026-05-14
$68.80
ORD-100006
Sofia Ferreira
Pending
2026-06-27
$109.29
ORD-100007
Omar Ferreira
Paid
2026-05-31
$502.16
ORD-100008
Sofia Mensah
Paid
2026-04-22
$220.22
ORD-100009
Kofi Haddad
Paid
2026-06-22
$10.33
ORD-100010
Priya Patel
Pending
2026-07-22
$599.46
ORD-100011
Ingrid Tanaka
Refunded
2026-04-19
$228.39
ORD-100012
Sofia Ferreira
Failed
2026-08-19
$61.69
ORD-100013
Omar Haddad
Paid
2026-10-06
$228.44
ORD-100014
Noor Fischer
Refunded
2026-08-11
$133.90

Row 1 of 50,000

When to use

  • Large result sets with sorting, search and keyboard navigation.

When not to use

  • There are a few dozen rows; use the data table.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/virtual-table

Adds its 4 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.

API reference

VirtualTable

12 props
PropTypeDefaultDescription
label *string—
rows *readonly T[]—
columns *readonly VirtualColumn<T>[]—
rowKey *(row: T) => string—
search((row: T) => string)—Text to match the search box against. Omit to hide the box.
searchLabelstring"Search"
rowHeightnumber40
heightnumber420
loadingboolean—
errorstring—
onActivate((row: T) => void)—Called on Enter or double click.
classNamestring—

Keyboard

↓
Moves to the next item or value.
↑
Moves to the previous item or value.
PageDown
Moves by a larger step, or to the next page.
PageUp
Moves by a larger step, or to the previous page.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.
Space
Activates the focused control.
Enter
Activates the focused control.

Accessibility

It exposes grid, row, columnheader, gridcell, rowgroup, alert and status semantics, with aria-hidden, aria-label, aria-rowcount, aria-colcount, aria-multiselectable and aria-busy kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/virtual-table.md

The index of every part is at /llms.txt.

More in Dense data