UI Library

DataGrid

0 rows · 0 columns
No content to preview
Prop Type Default Value Notes
columnLabelsstring[]?—
Replaces column letters with display labels; the eye applies the list.
editablebooleantrue
Enables in-place cell editing and structure edits.
hideHeaderTogglebooleanfalse
Hides the toolbar header toggle.
initialColumnWidthsstring[]?—
Initial widths as px numbers or percent strings; the eye applies the list.
maxColumnsnumber?—
Locks the column count (e.g. key/value grids).
showHeadersbooleantrue
Treats the first row as a header (bindable).
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Cell text, padding, and the grid’s own row-handle, label-row, and column geometry scale with the toolbar chrome; numbers are icon-scale pixels.
storageKeystring?—
Persists resized widths under this localStorage key.
storagePrefixstring?—
App-owned localStorage prefix for the persisted widths; the package prefix stays the read fallback.
valuestring[][]?—
Cells as rows of strings; the first row is the header when showHeaders is on. The eye applies the data (the grid renders empty while off).
onChange(rows: string[][]) => void——Called with the whole grid after every edit.