Skip to content
Uxelith
Prov1.0.1Data

Data Grid

A spreadsheet-grade grid that scrolls hundreds of thousands of rows instantly, edits in place, and copies, pastes, sorts, filters and groups the way Excel does.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
5 Nov 2026
Live

Installation

Usage

example.tsx
"use client"

import { DataGrid, type GridColumn } from "@/components/data-grid"

type Order = { id: string; customer: string; status: string; total: number }

const columns: GridColumn<Order>[] = [
  { key: "id", header: "Order", frozen: true },
  { key: "customer", header: "Customer", editable: true },
  { key: "status", header: "Status", type: "select", options: ["Paid", "Pending"], editable: true },
  { key: "total", header: "Total", type: "number", aggregate: "sum", editable: true },
]

const rows: Order[] = [
  { id: "A-1001", customer: "Emily Carter", status: "Paid", total: 120 },
  { id: "A-1002", customer: "James Walker", status: "Pending", total: 80 },
]

export function Orders() {
  return <DataGrid label="Orders" columns={columns} defaultRows={rows} getRowId={(row) => row.id} />
}

Props

PropTypeDefaultDescription
columnsGridColumn[]—Each column: key, header, type (text, number, date, select), editable, frozen, hidden, aggregate, format, render, validate.
rows / defaultRowsT[][]The data, kept by you or by the grid.
onRowsChange(rows, changes) => void—Called after every edit, paste, fill, undo or redo, with exactly what changed.
getRowId(row, index) => stringpositionA stable id for each row.
labelstring—Accessible name.
heightnumber480Height in pixels; rows and columns outside it aren't drawn.
rowHeightnumber36Row height in pixels.
defaultGroupBystring[][]Columns to group by at the start, outermost first.
toolbarbooleantrueSearch, Columns, Group, Undo and Export.
selectablebooleanfalseA checkbox on each row.
onSelectedRowsChange(ids: string[]) => void—Called when the ticked rows change.
emptyMessageReactNode—Shown when nothing matches.

Accessibility

  • Follows the ARIA grid pattern: arrow keys, Home, End, Page Up and Page Down move, and every cell reports its row and column.
  • Enter, F2 or typing edits a cell; Escape cancels; a refused value says why, next to the cell.
  • Shift + arrows selects a range; Ctrl+C, Ctrl+X and Ctrl+V copy, cut and paste; Ctrl+Z and Ctrl+Y undo and redo.
  • Sorting, filtering, grouping, copying and edits are announced to screen readers.
  • On touch, tap selects, tap again edits and a long press starts a range.

Changelog

  1. v1.0.1Latest

    Fix: the page no longer pauses while a big grid gets ready. Columns reach the worker in slices of a few milliseconds, in idle time or first for the sort or search that needs them, so even the first keystroke on a slow phone stays smooth.

  2. v1.0.0

    First release.

More in Data

All 15 in Data
  • DataPro

    Area Chart

    Trends over time: lines draw themselves in, the crosshair glides between points, the area you've scrubbed stays bright, and the tooltip shows the change from the point before.

  • DataFree

    Avatar Stack

    Overlapping avatars that spread on hover, with a name tooltip that swings with the pointer, status dots and a +N list of everyone else. Photos or initials.

  • DataPro

    Bar Chart

    A responsive bar chart, grouped or stacked: bars rise in one after another, the hovered column lights up and the tooltip glides, with keyboard navigation and a hidden data table.