/handsontable-skills:handsontablefrom handsontable-skills
Provides guidance on Handsontable DataGrid, a JavaScript data grid component with spreadsheet-like UX. Covers configuration, plugins, cell types, theming, and framework wrappers for React, Angular, and Vue 3.
Ships in handsontable-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Handsontable DataGrid is a JavaScript data grid component (not a full spreadsheet application) that brings spreadsheet-like UX to web apps: cell editing, copy/paste, sorting, filtering, formulas, keyboard navigation, context menus, merged cells, frozen rows/columns, conditional formatting, data validation, pagination, and 400+ built-in formulas via HyperFormula.
@handsontable/react-wrapper), Angular (@handsontable/angular-wrapper), Vue 3 (@handsontable/vue3)non-commercial-and-evaluation key (and its second form) is removed and counts as an invalid key; v18.x and earlier still accept it. Per-developer annual license, offline validation (no server connection). v18.1+: a missing or invalid licenseKey blocks the grid with a modal that cannot be closed (v18.0 showed only a notice below the grid). An expired commercial key (perpetual past its maintenance date, or a lapsed subscription) never blocks — a notice appears below the grid and in the console while every feature keeps working. A trial key is different: after its expiration date a message appears, and once the grace period stored in the key also passes, a blocking screen replaces the grid. v19.0+: a key whose license terms ask for it shows a "Powered by Handsontable DataGrid" bar below the grid, and no option turns it off; a trial key follows the same rule. Entitlement license keys are also supported (v18.1+); validation stays offline for every key kind. v19.0+: an entitlement key can name a tier. There is one tier, Professional, and it includes every feature; a key that names no tier, as every key issued before 19.0, also turns on every feature. Plans on the pricing page: Trial (free, 45 days) and Enterprise (commercial). The price depends on the number of end users, so ask Sales for a quote.// licenseKey: 'your-license-key'), as the official docs do. Uncomment it and use your own key; without a key the grid shows a blocking screen.Always check references/docs-map.md (in this skill folder) for the full organized link directory
when you need to point the user to specific documentation or need to look up more info.
This skill is a snapshot tagged to a release. If the user wants live semantic search over the
current docs — newer releases, or anything not covered here — they can add the first-party Docs
MCP server themselves (public, no auth):
claude mcp add --transport http handsontable-docs https://docs-assistant.handsontable.com/mcp.
Mention it only when the user asks about newer or missing content, and do not install it for them.
If the server is already connected, you can use it.
It searches Handsontable DataGrid and HyperFormula guides, API reference, release notes, and GitHub issues.
Guide: https://handsontable.com/docs/javascript-data-grid/docs-mcp-server/
This skill folder also ships topic references with verified, copy-pasteable patterns — read the relevant one before writing code in its area:
references/custom-cells.md — custom renderers, editors, validators, and full custom cell
types (React component editors, useHotEditor, the v17+ factory API, conditional formatting).references/data-workflows.md — saving to a backend, syncing grids, dependent dropdowns,
bulk validation with an error summary, CSV/Excel import, CSV/XLSX/PDF export, undo/redo UI.references/interaction-plugins.md — custom context-menu items, programmatic Filters and
Search APIs, keyboard shortcuts, ColumnSummary, persisting column layout, and the
EmptyDataState / Loading / Dialog plugins.references/type-definitions.md — the public TypeScript type surface (v17 and v18, with the v19.0
changes to the change hooks tagged inline).npm install handsontable @handsontable/react-wrapper
import { HotTable } from '@handsontable/react-wrapper';
import { registerAllModules } from 'handsontable/registry';
import 'handsontable/styles/handsontable.min.css';
import 'handsontable/styles/ht-theme-main.min.css';
registerAllModules();
const MyGrid = () => (
<HotTable
themeName="ht-theme-main"
data={[
['', 'Tesla', 'Volvo', 'Toyota', 'Ford'],
['2019', 10, 11, 12, 13],
['2020', 20, 11, 14, 13],
['2021', 30, 15, 12, 13],
]}
colHeaders={true}
rowHeaders={true}
height="auto"
autoWrapRow={true}
autoWrapCol={true}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
/>
);
export default MyGrid;
Key points:
registerAllModules() registers every built-in plugin. To reduce bundle size, import only what
you need — see Modules guide.height explicitly — "auto", a pixel number, or a CSS string. Unsized grids are unpredictable (see Common Pitfalls).<HotTable>.npm install handsontable
<script src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable/styles/handsontable.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable/styles/ht-theme-main.min.css" />
To pin a specific version, add @19.0.0 after handsontable in the URL (e.g.,
[email protected]/dist/handsontable.full.min.js).
import Handsontable from 'handsontable';
import 'handsontable/styles/handsontable.min.css';
import 'handsontable/styles/ht-theme-main.min.css';
const container = document.getElementById('grid');
new Handsontable(container, {
data: [
['', 'Tesla', 'Volvo', 'Toyota', 'Ford'],
['2019', 10, 11, 12, 13],
['2020', 20, 11, 14, 13],
['2021', 30, 15, 12, 13],
],
colHeaders: true,
rowHeaders: true,
height: 'auto',
themeName: 'ht-theme-main',
autoWrapRow: true,
autoWrapCol: true,
// licenseKey: 'your-license-key', // get a key at https://handsontable.com/pricing/
});
Full JS docs: https://handsontable.com/docs/javascript-data-grid/installation/
npm install handsontable @handsontable/angular-wrapper
The Angular wrapper supports Angular 16–22 as of Handsontable DataGrid v18. If you're on an older Angular version, upgrade Angular first.
Docs: https://handsontable.com/docs/angular-data-grid/installation/
npm install handsontable @handsontable/vue3
Docs: https://handsontable.com/docs/vue-data-grid/installation/
All framework wrappers share the same version number as the core library and expose the same
configuration options. The React examples in this skill translate directly — just use the
framework's component syntax. Note: Vue 2 (@handsontable/vue) is deprecated — use Vue 3.
Handsontable DataGrid v15+ includes a built-in theme system. Three themes ship out of the box: main (default, spreadsheet-like), horizon (clean, analytics-focused), classic (legacy replacement).
Import the base stylesheet plus a theme:
import 'handsontable/styles/handsontable.min.css';
import 'handsontable/styles/ht-theme-main.min.css';
Then set the theme on the grid:
<HotTable themeName="ht-theme-main" /* ... */ />
Dark mode:
themeName="ht-theme-main-dark-auto"themeName="ht-theme-main-dark"Replace main with horizon or classic for other themes.
import { mainTheme, registerTheme } from 'handsontable/themes';
const theme = registerTheme(mainTheme)
.setColorScheme('auto') // 'light' | 'dark' | 'auto'
.setDensityType('comfortable'); // 'compact' | 'default' | 'comfortable'
To override colors or tokens (brand color, font size), call params(). There are no setPrimaryColor() or setFontSize() methods.
theme.params({
colors: { primary: { 500: '#9333ea' } }, // brand color
tokens: { fontSize: '16px' },
});
Then pass it as a prop:
<HotTable theme={theme} /* ... */ />
<!-- Theme CSS (includes light and dark mode support) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable/styles/ht-theme-main.min.css" />
In v17, dark mode is controlled via themeName or the Theme API — there are no separate -dark or
-dark-auto CSS files. Load the base theme CSS above and set the mode at runtime.
v18 removed --ht-wrapper-border-width and --ht-wrapper-border-color, and renamed
--ht-wrapper-border-radius to --ht-border-radius. The removed variables defaulted to 0px and the base
border color, so by default the table renders no wrapper border. Recreate one with a box-shadow:
.ht-theme-main {
--ht-border-radius: 8px; /* renamed from --ht-wrapper-border-radius */
}
/* Restore a visible wrapper border, if needed */
.ht-theme-main .ht-root-wrapper {
box-shadow: 0 0 0 1px #a0aec0; /* replaces --ht-wrapper-border-width / -color */
}
A plain border on .ht-grid-content is not the equivalent — it does not follow --ht-border-radius and is
applied inside the wrapper instead of around it.
For CSS variable customization, the Theme Builder, Figma design system, and 200+ design tokens, see:
All options below are passed as props on <HotTable> (React) or in the config object (vanilla JS).
For the full options reference: https://handsontable.com/docs/react-data-grid/api/options/
// Array of arrays
data={[['A1', 'B1'], ['A2', 'B2']]}
// Array of objects
data={[{ id: 1, name: 'Alice' }, { id: 2, name: 'Bob' }]}
columns={[{ data: 'id' }, { data: 'name' }]}
Docs: https://handsontable.com/docs/react-data-grid/binding-to-data/
colHeaders={['ID', 'Name', 'Price']} // custom labels, or {true} for A, B, C...
rowHeaders={true} // 1, 2, 3... or pass an array
Set via the columns array or cells function. Built-in types:
text (default), numeric, date, time, checkbox, select, dropdown,
autocomplete, password, handsontable (nested grid), multiselect (v17+),
intl-date (v18+), intl-time (v18+), intl-datetime (v18.1+)v18 reimplemented the
dateandtimecell types natively — moment.js and Pikaday were removed, but thedateandtimetype names still work and are interchangeable with the newintl-date/intl-timenames (same implementation). In v18+, all four take object-based format options (Intl.DateTimeFormatshape) and require ISO 8601 source data; the legacy stringdateFormat/timeFormatanddatePickerConfigoptions are ignored with a console warning, andcorrectFormatwas removed. Date/time cells no longer auto-correct input — normalize or correct entered values withvalueParserand/orvalueSetter.datePickerConfighas no replacement; the editor is the browser native date input.v18.1 adds
intl-datetimefor combined date-and-time values: ISO 8601 date-time strings in source data, display via thedateTimeFormatoption (anIntl.DateTimeFormatoptions object — a{ dateStyle, timeStyle }shortcut or a custom shape), a native date-time picker editor, and column sorting, filtering, and Excel export support. Sorting and filtering operate on the underlying ISO values, not the displayed text.
multiselect(v17+) keeps an array in the source data: an array of values, or an array of{ key, value }objects. A plain string cell value is shown as one item, not split at commas. With the Formulas plugin the source data stays an array; only the copy passed to HyperFormula is a comma-separated string.
columns={[
{ data: 'name', type: 'text' },
// Numeric formatting in v18+ uses Intl.NumberFormat options — the old
// `numericFormat.pattern` / `culture` (numbro syntax) were removed.
{
data: 'price',
type: 'numeric',
locale: 'en-US',
numericFormat: { style: 'currency', currency: 'USD', minimumFractionDigits: 2 },
},
{ data: 'active', type: 'checkbox' },
{ data: 'category', type: 'dropdown', source: ['A', 'B', 'C'] },
// v18+ intl-date: ISO 8601 in source data, Intl.DateTimeFormat options for display.
{
data: 'startDate',
type: 'intl-date',
locale: 'en-GB',
dateFormat: { year: 'numeric', month: '2-digit', day: '2-digit' },
},
// v18.1+ intl-datetime: combined date & time, ISO 8601 date-time source data.
{
data: 'updatedAt',
type: 'intl-datetime',
locale: 'en-GB',
dateTimeFormat: { dateStyle: 'medium', timeStyle: 'short' },
},
]}
Full cell types reference: https://handsontable.com/docs/react-data-grid/cell-type/
columnSorting={true} // single-column sort
// or
multiColumnSorting={true} // multi-column sort
filters={true} // enable column filters
dropdownMenu={true} // column header menu with filter UI
v18.1 header-click change: a column-header click sorts on mouse up, and only when the click lands on the header label or its sort indicator — pressing elsewhere in the header cell selects the column without sorting (which makes select-and-drag of a sorted column possible in one gesture).
beforeColumnMove/afterColumnMoveno longer fire on a plain header click — react to header clicks withafterColumnSortorafterOnCellMouseUpinstead. Automated tests that sorted by dispatchingmousedownon the header cell must target the label (.colHeader.sortAction) and dispatchmousedown+mouseupwithout moving the pointer; in real-browser tests, click the label element — the center of the header cell no longer sorts.
fixedRowsTop={1}
fixedRowsBottom={1}
fixedColumnsStart={2}
readOnly={true} // entire grid read-only (or per-cell/column)
contextMenu={true} // right-click menu
mergeCells={[{ row: 0, col: 0, rowspan: 2, colspan: 2 }]}
manualColumnResize={true}
manualRowResize={true}
stretchH="all" // stretch columns to fill width: 'none' | 'last' | 'all'
import { HotTable, HotColumn } from '@handsontable/react-wrapper';
<HotTable
data={data}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
>
<HotColumn title="Name" data="name" />
<HotColumn title="Active" data="active" type="checkbox" />
</HotTable>
Docs: https://handsontable.com/docs/react-data-grid/hot-column/
@handsontable/[email protected]peer-requireshandsontable@^18. On aligned versions, removing a<HotColumn>correctly removes the column — a v17-era phantom-column bug was fixed in 18.0 (#12596).
HyperFormula powers Handsontable DataGrid's Formulas plugin, providing 400+ spreadsheet functions (SUM, AVERAGE, IF, VLOOKUP, etc.). This section covers using HyperFormula inside Handsontable DataGrid only.
npm install hyperformula
v18 change: HyperFormula is no longer bundled with Handsontable DataGrid — it must be installed separately (verified in the
[email protected]npm package:dependencies: {}) and passed to the Formulas plugin as shown below.
<script src="https://cdn.jsdelivr.net/npm/hyperformula/dist/hyperformula.full.min.js"></script>
Pass the HyperFormula class directly — Handsontable DataGrid creates an instance automatically:
import { HyperFormula } from 'hyperformula';
<HotTable
data={[
['10', '20', '=SUM(A1:B1)'],
['30', '40', '=SUM(A2:B2)'],
]}
formulas={{ engine: HyperFormula }}
colHeaders={true}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
/>
Create a HyperFormula instance with the 'internal-use-in-handsontable' license key:
import { HyperFormula } from 'hyperformula';
const hfInstance = HyperFormula.buildEmpty({
licenseKey: 'internal-use-in-handsontable',
});
// Sheet 1
<HotTable
data={data1}
formulas={{ engine: hfInstance, sheetName: 'Sheet1' }}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
/>
// Sheet 2 — shares the same engine, enabling cross-sheet references
<HotTable
data={data2}
formulas={{ engine: hfInstance, sheetName: 'Sheet2' }}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
/>
Cross-sheet formula example: =SUM(Sheet1!A:A)
formulas={{
engine: HyperFormula,
namedExpressions: [
{ name: 'TAX_RATE', expression: 0.21 },
],
}}
Use in cells: =A1 * TAX_RATE
<HotTable
formulas={{ engine: HyperFormula }}
afterFormulasValuesUpdate={(changes) => {
changes.forEach((c) => console.log(c.address, c.newValue));
}}
/>
getSourceData() operates on physical indexes; formulas use visual indexes.Full guide: https://handsontable.com/docs/react-data-grid/formula-calculation/ HyperFormula functions list: https://hyperformula.handsontable.com/docs/guide/built-in-functions.html HyperFormula version compatibility table: https://handsontable.com/docs/react-data-grid/formula-calculation/#hyperformula-version-support
The DataProvider plugin (new in v17.1) wires the grid up to a remote data source so rows are fetched, sorted, and mutated server-side instead of held in memory. Use it for datasets too large to load up front, or when the source of truth lives in a backend.
The dataProvider option is an object with five required keys: a row-id resolver, a paginated fetchRows callback, and three mutation callbacks. For a read-only grid, stub the mutation callbacks with async () => {} — they must still be present.
<HotTable
colHeaders={['ID', 'Name', 'Email']}
pagination={{ pageSize: 25 }}
columnSorting={true}
emptyDataState={true}
height={360}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
dataProvider={{
// Required: how to extract a stable id from each row
rowId: 'id',
// Required: paginated fetch. `sort` and `filters` are null when not active.
// Second arg carries an AbortSignal — pass it to fetch() so the plugin
// can cancel superseded requests when the user pages/sorts quickly.
async fetchRows({ page, pageSize, sort, filters }, { signal }) {
const params = new URLSearchParams({ page, pageSize });
if (sort) {
// sort = { prop: string, order: 'asc' | 'desc' }
params.set('sortBy', sort.prop);
params.set('order', sort.order);
}
if (filters) {
params.set('filters', JSON.stringify(filters));
}
const res = await fetch(`/api/users?${params}`, { signal });
const { rows, totalRows } = await res.json();
return { rows, totalRows };
},
// Required. Stub with async () => {} if your grid is read-only.
// The plugin auto-refetches the current page after each callback resolves.
// See the plugin API ref for the exact payload shapes.
onRowsCreate: async () => {},
onRowsUpdate: async () => {},
onRowsRemove: async () => {},
}}
/>
The plugin fires three hooks you can wire up as <HotTable> props for loading indicators and error surfaces:
beforeDataProviderFetch(params) — fires before each fetch. params.skipLoading is set when the plugin wants to suppress your loading indicator (e.g., during a quick refetch).afterDataProviderFetch(result) — fires after a successful fetch.afterDataProviderFetchError(error) — fires when fetchRows throws or returns a rejected promise.The plugin is built to pair with pagination (paginates server-side), columnSorting (single-column server-side sort), and emptyDataState (loading + empty state UI). Enable all three when you use DataProvider.
v18 introduced a new layout system that renders plugin UI elements into orderable wrapper slots around the grid. The layout option lets you control the order of elements in the top and bottom slots — for example, deciding whether the pagination bar shows above or below the column summary.
<HotTable
pagination={{ pageSize: 25 }}
columnSummary={/* ... */}
layout={{
// Elements you list are placed first in that order; anything else
// renders after them in the default weight order.
bottom: ['pagination', 'summary'],
}}
// licenseKey="your-license-key" // get a key at https://handsontable.com/pricing/
/>
Notes (from the v18 docs):
layout accepts an object with optional top and bottom arrays of element key strings.bottom slot regardless of your ordering.Full options reference: https://handsontable.com/docs/react-data-grid/api/options/#layout
The Notification plugin (new in v17.1) shows non-blocking toast notifications anchored to the grid — useful for confirming saves, surfacing validation errors, or signaling background sync state. Enable with notification: true (singular) and trigger via hot.getPlugin('notification').showMessage(...). See the plugin guide for placement, severity levels, and auto-dismiss timing: https://handsontable.com/docs/react-data-grid/notification/
Handsontable DataGrid hooks are passed as props on <HotTable>:
<HotTable
afterChange={(changes, source) => {
if (source !== 'loadData') {
console.log('Cell changed:', changes);
}
}}
beforeChange={(changes, source) => {
// Return false to cancel the edit
}}
afterSelection={(row, col, row2, col2) => {
console.log('Selected:', row, col, 'to', row2, col2);
}}
/>
There are 100+ hooks available. Full reference: https://handsontable.com/docs/react-data-grid/api/hooks/
Guide: https://handsontable.com/docs/react-data-grid/events-and-hooks/
Use a ref to call Handsontable DataGrid's core methods:
import { useRef } from 'react';
const MyGrid = () => {
const hotRef = useRef(null);
const handleClick = () => {
const hot = hotRef.current?.hotInstance;
if (hot) {
console.log(hot.getData()); // get all data
hot.selectCell(0, 0); // select a cell
}
};
return (
<>
<HotTable ref={hotRef} /* ...options */ />
<button onClick={handleClick}>Get Data</button>
</>
);
};
Core API reference: https://handsontable.com/docs/react-data-grid/api/core/
Types are bundled with the package in every version — never install @types/handsontable (a
deprecated stub). The universal import idiom (works in v17 and v18):
import Handsontable from 'handsontable';
import type { GridSettings, ColumnSettings, CellProperties, CellChange, ChangeSource } from 'handsontable';
Everything derives from GridSettings (the full options interface): ColumnSettings →
CellMeta → CellProperties, and React's HotTableProps spreads GridSettings directly.
v18 rewrote the core in TypeScript (native types, TS 5.1+, stricter CellValue: unknown); v17
and earlier used hand-maintained .d.ts files with the same public names. The
handsontable/common subpath was removed in v18 — import from handsontable instead.
For the curated type reference — settings hierarchy, typed options excerpt, hook signatures,
registry unions, React wrapper types, and v17↔v18 differences — read
references/type-definitions.md in this skill's folder.
Handsontable DataGrid virtualizes rendering automatically — only visible rows and columns are in the DOM, so
grids with 10k–100k+ rows perform well out of the box. For bulk programmatic updates, wrap mutations
in batch() to defer re-rendering until all changes are applied:
hotRef.current.hotInstance.batch(() => {
// set many cells, add rows, etc.
});
For further tuning (disabling auto-size, reducing plugin overhead), see:
Handsontable DataGrid v17 introduced a Recipes section in the docs — ready-made patterns for common use cases (data validation workflows, dynamic column generation, etc.). Check the recipes index before building something from scratch: https://handsontable.com/docs/react-data-grid/recipes/
Four zero-dependency Node.js scripts ship in this skill's folder, under scripts/. Call them by their
full path (node <this skill's folder>/scripts/<name>.mjs) with the user's project root as the working
directory, or pass --project <dir>. They read option names, hook names, cell types and license states
from the installed handsontable package, so their answers match the user's exact version. Prefer
them over judging from memory, and quote their output.
| Script and arguments | Use it when | Exit code |
|---|---|---|
validate-settings.mjs <settings file> (.json, or an .mjs that exports the object) | Checking a settings object: typos with did-you-mean (notifications → notification), removed options and hooks, hooks set per column, unknown cell types, Numbro numericFormat, string dateFormat/timeFormat on 18.x, missing licenseKey | 1 on errors |
license-doctor.mjs --key-file <file> (or the HANDSONTABLE_LICENSE_KEY env var, or --stdin) | "Will this key block the grid?" — prints the state the installed version assigns (missing, invalid, trial_hard_stop, release_expired, …) and whether it blocks; flags pasted whitespace, quotes, typographic dashes, HyperFormula keys, and the non-commercial-and-evaluation key that v19.0 removed. Needs 18.1+ installed; to preview an upgrade, npm i --prefix /tmp/ht-next handsontable@latest and pass --ht-dir /tmp/ht-next/node_modules/handsontable | 1 if it blocks |
migrate-v18.mjs [path] --project <dir> | Upgrading to 18.x: lists every file:line to change with the migration-guide link. --write applies the mechanical fixes (handsontable/common imports, --ht-wrapper-border-radius, wrapperBorderRadius; correctFormat lines only once 18.x is installed). Top-level build/, dist/, out/, coverage/, vendor/ are skipped and listed; unknown flags are rejected | 1 if manual items remain |
migrate-v19.mjs [path] --project <dir> | Upgrading from 18.1 to 19.0: lists every file:line with the migration-guide link, in two groups. "Needs a manual change" is code that stops working or is deprecated (the removed non-commercial-and-evaluation key, removed methods and types, registerPlugin(Loading) without Dialog, icon ::before / ::after selectors, spliceCol() / spliceRow(), the package versions, Browserslist targets below the 19.0 minimum). "Review" is behavior to check (height: 'auto', rowHeights, array or function colWidths, a beforeInit in settings, colToProp() / propToCol(), custom editors, dropdown with strict: false, an sr-SP string outside the language option) and does not set the exit code. --write renames columnHeaders to colHeaders in an export call and, once 19.x is installed, sr-SP to sr-Latn-RS in the language option and languages/sr-SP paths, and srSP to srLatnRS where it is imported from handsontable/i18n | 1 if manual items remain |
All four accept --json. Pass a real license key through --key-file or the env var (e.g. from the
user's .env), not --key, so it stays out of the command line and the transcript. The license doctor
never prints the full key.
migrate-v19.mjs finds code patterns only. Many 19.0 changes show at run time (undo and redo, editors,
wrapper re-renders), so after it runs, also work through "v19.0 Breaking Changes" below and the migration
guide. It does not check code in inline <script> elements of .html files (for example a CDN page), so
review those by hand. A beforeInit in settings is listed under Review, which does not set the exit code,
but if it reads the grid it throws in 19.0 and the grid never finishes building. A project older than 18.x runs migrate-v18.mjs first. v19.0+ also ships its own runtime check,
validateSettings() from handsontable/settingsSchema, which returns { valid, problems } for a settings
object without applying it (guide: https://handsontable.com/docs/react-data-grid/validate-settings/).
licenseKey blocks the grid in v18.1+: the grid is covered by a modal that cannot be closed (v18.0 showed only a notice below the grid). This typically bites environments where the notice used to be ignored — local dev, CI, end-to-end test suites, Storybook and demo builds. Pass a valid key to every instance in every environment: a trial key for evaluation, a commercial key, or the free license for non-commercial projects. In v19.0+ the non-commercial-and-evaluation key no longer counts as valid (v18.x accepts it). licenseKey is read once at initialization — passing a new one through updateSettings() does not re-evaluate it; recreate the instance instead (v19.0+: only the tiers a key names are read again from a key passed through updateSettings(); the license status and its notices still need a new instance). An expired commercial key or lapsed subscription never blocks (notice + console error, features keep working; only an expired trial blocks, once the key's grace period passes). v18.1 also detects expired keys again — in v18.0 that detection silently never ran — so expired-key notices reappear after upgrading.NON_COMMERCIAL_LICENSE (Angular) holds the removed key: from v19.0 the @handsontable/angular-wrapper constant NON_COMMERCIAL_LICENSE is deprecated, because it holds the non-commercial-and-evaluation key, and it will be removed in v20.0. Pass your own key through licenseKey in GridSettings, or through the license field of HOT_GLOBAL_CONFIG.height: always set it explicitly — "auto", a pixel value, or a CSS string. Unsized grids historically collapsed or misbehaved; v18.1 fixed one such case (a grid with width but no height collapsing vertically), but an explicit height keeps sizing predictable across versions. In v19.0+ height: 'auto' no longer clips the grid: it grows to fit its rows and the page or the nearest scrolling ancestor scrolls it, so set a numeric height when the grid should scroll inside its own box.loadData in afterChange: The afterChange hook fires on initial data load with source === 'loadData'. Always check the source to avoid infinite loops when syncing changes back to state.@handsontable/react and @handsontable/angular. Use @handsontable/react-wrapper and @handsontable/angular-wrapper.handsontable.full.min.css was removed in v17. Use handsontable/styles/handsontable.min.css plus a theme file.data is an array of nested objects — use flat objects or arrays of arrays.colHeaders, rowHeaders, context menus, dialogs, or select editors, pass a sanitizer: (html) => … function that returns the sanitized string (e.g., using your own DOMPurify install).date and time cell types were not removed — they were reimplemented natively (moment.js and Pikaday are gone), and intl-date / intl-time are interchangeable names for the same implementations. All four use object-based format options (Intl.DateTimeFormat shape) and require ISO 8601 source data (YYYY-MM-DD for dates; 24-hour HH:mm, HH:mm:ss, or HH:mm:ss.SSS for times). The old string dateFormat/timeFormat and datePickerConfig options are ignored with a console warning; correctFormat was removed. The editor is now a native <input type="date"> / <input type="time">. To restore the old correctFormat behavior (normalize/correct entered values), implement it via valueParser and/or valueSetter. There is no replacement for datePickerConfig.numericFormat.pattern / numericFormat.culture removed in v18: numbro is no longer bundled. Use Intl.NumberFormat options on numericFormat (style, currency, minimumFractionDigits, …) together with a locale on the column config.handsontable/common subpath is gone in v18: import types from handsontable directly (e.g., import type { GridSettings, CellChange } from 'handsontable';).hot.undo() / hot.redo() core methods removed in v17.0: use the UndoRedo plugin instead — hot.getPlugin('undoRedo').undo() / .redo(). (The v18.0 changelog re-lists this removal, but it shipped in v17.0.)localStorage manually if needed. Beware: in v18.0 the related saveManualColumnWidths() / loadManualColumnWidths() / saveManualRowHeights() / loadManualRowHeights() plugin methods exist again, but only as deprecated no-op stubs that log a warning. v19.0 removed the stubs, so calling them throws a TypeError..ht-grid-content, .ht-slot-top, .ht-slot-bottom, .ht-overlay). Selectors like .ht-root-wrapper > .ht-grid > .handsontable will break — target .ht-grid-content > .handsontable instead. Also, the --ht-wrapper-border-radius CSS var was renamed to --ht-border-radius, and --ht-wrapper-border-width / --ht-wrapper-border-color were removed. Their defaults were 0px and the base border color, so v18 renders no wrapper border by default. To restore a visible outline, put a box-shadow on .ht-root-wrapper, scoped to your theme class — .ht-theme-main .ht-root-wrapper { box-shadow: 0 0 0 1px #a0aec0; }. Do not reach for a plain border on .ht-grid-content: it ignores --ht-border-radius and sits inside the new wrapper DOM rather than around it.Handsontable DataGrid docs are versioned. The latest docs live at /docs/react-data-grid/ (which redirects
to the current version). To link to a specific version, use /docs/17.0/react-data-grid/.
When helping a user, check which version they are on — breaking changes between major versions are common. Point them to the relevant migration guide if they're upgrading.
For the full organized directory of documentation links, read references/docs-map.md in this
skill's folder.
A major release with a long migration guide. The first group stops a grid from working, so check it before you upgrade.
Blocks or breaks on upgrade:
non-commercial-and-evaluation key is removed. It, and its second form ht68e-1f2b7-47158-70b05-0842f, read as invalid, so a lock screen covers the grid (v18.1 and older still accept both). Get a trial key, the free license for non-commercial projects, or a commercial key before upgrading. The Angular NON_COMMERCIAL_LICENSE constant still compiles but holds the removed key; it is deprecated and 20.0 removes it. See Common Pitfalls.saveManualColumnWidths(), loadManualColumnWidths(), saveManualRowHeights(), loadManualRowHeights() and Handsontable.helper.sanitize() now throw TypeError: ... is not a function; the columnHeaders export option is ignored with a console warning (use colHeaders); the Settings type of handsontable/plugins/exportFile is now ExportFileSettings, and DataProviderOptions of handsontable/plugins/dataProvider is now DataProviderFetchOptions.Loading needs Dialog. With modules registered one by one, new Handsontable() throws unless registerPlugin(Dialog) sits next to registerPlugin(Loading). The full handsontable package and registerAllModules() register both.beforeInit callback in the settings object now runs (in 18.1 it never ran). The data is not loaded yet, so countRows() and getData() throw there. Move code that reads the grid to afterInit.Behaves differently in every grid:
height: 'auto' no longer clips the grid. The grid grows to fit its rows, the page or the nearest scrolling ancestor scrolls it, and off-screen rows stay virtualized. To keep an inner vertical scrollbar, set a numeric height, or place the grid in a parent with a fixed height and overflow: auto.rowHeights sets an exact row height (it was a minimum). A row can be shorter than the default, and content that doesn't fit is clipped. To keep rows that grow with their content, rename the option to minRowHeights (no longer an alias of rowHeights) or enable autoRowSize.colWidths, rowHeights and minRowHeights use the physical index (they used the visual one), so a size follows its column or row through a move, sort or filter. List sizes in data order and remove code that re-synced them.undo: false nothing is recorded, so the plugin's undo() and redo() do nothing. Call hot.getPlugin('undoRedo').clear() after setup calls that should not be undoable.beforeChange nor afterChange fires. To detect an opened editor, use afterBeginEditing.updateSettings(), so a re-render no longer resets a sort, a filter or the page. Reset state through the plugin, e.g. hot.getPlugin('columnSorting').clearSort().null is removed. updateSettings() with a hook set to null, or a wrapper hook prop set to null / undefined or no longer passed (afterChange={isTracking ? logChange : null}), stops the callback. In 18.1 it kept running.editor: false is honored by typed and checkbox columns. A column type no longer re-enables editing, and a checkbox cell renders disabled. To keep such a column editable, set editor: true on it, at the same configuration level as its type.autocomplete, dropdown and handsontable cells default textEllipsis to true (one line, set false to wrap), auto-sized columns of these types grow by the width of the arrow, and the editor lists of these types and of multiselect are positioned against the viewport, no longer clipped by the grid.modifyColWidth hook or set a column width.Changed APIs:
colToProp() and propToCol() return null for a column that does not exist (they returned the argument). Check the result before using it as an index; for propToCol() use Number.isInteger().afterChange and beforeChangeRender pass AppliedCellChange[]. The row of a change is null when the change waited for its validator and a filter or trimRows took the record out of the visual space meanwhile. Inside the hook, hot.getPhysicalRowOfChange(change) returns the physical row it was written to. In TypeScript, typed settings with a CellChange[] annotation on these hooks no longer compile; annotate with AppliedCellChange.loadData() drops a change that still waits for its validator (the built-in numeric and date validators included). Call loadData() from afterChange, or use updateData(), which keeps the change.setValue() receives the cell value (a number, an object, null), not a string. This reaches editors that extend BaseEditor, editorFactory editors, React useHotEditor / EditorComponent and Angular HotCellEditorComponent. Convert to a string yourself.dropdown column with strict: false validates strictly on every path. To accept values outside the list, use an autocomplete column with strict: false.getCopyableData() returns a string. Read the stored value with getDataAtCell().<i class="ht-icon ht-icon-<name>"> elements, not ::before / ::after pseudo-elements. Target .ht-icon-<name> in CSS and tests, or override the --ht-icon-<name> variable.dataProvider: updateSettings() no longer empties or refetches a server-backed grid. Reload with hot.getPlugin('dataProvider').fetchData().filters object are type-checked, the Vue 3 wrapper type-checks its props, and React HotColumn no longer types hook props (pass hooks to HotTable).handsontable@^19.0.0; React 18+ and Angular 16–22 are unchanged.Deprecated, removed in 20.0: spliceCol() and spliceRow() (use populateFromArray() or alter()), writing past the last column of an object data source, the sr-SP language code (use sr-Latn-RS), the Formulas plugin's registerShortcuts() and unregisterShortcuts() (no-ops since 19.0; remove the calls, nothing replaces them), four MergedCellsCollection methods, getStartMostColumnIndex(), getEndMostColumnIndex(), getTopMostRowIndex() and getBottomMostRowIndex() (remove the calls; there is no replacement), the iconsMap theme helper (use iconStyles()), and the Angular NON_COMMERCIAL_LICENSE constant.
New in 19.0 (no migration needed): a built-in XLSX engine and the ImportFile plugin (see references/data-workflows.md), the FormulaBuilder, SheetsBar, ViewState and AsyncValues plugins, row selection checkboxes (rowSelection), row ids (rowId), fixedColumnsEnd, autoLink, maxLength, emptyValue, renderMode, and validateSettings() from handsontable/settingsSchema. Guides are listed in references/docs-map.md.
This list is a selection. For anything not on it, read the migration guide: https://handsontable.com/docs/react-data-grid/migration-from-18.1-to-19.0/
A minor release: no public API removals (only leftover Pikaday styles were deleted), one behavior change that can block an unconfigured grid, and a large performance batch.
licenseKey now blocks the grid with a modal
that cannot be closed (18.0 only showed a notice below the grid). An expired commercial key or
lapsed subscription never blocks (notice + console error only), but an expired trial blocks
once the key's grace period passes. Entitlement license keys are supported. 18.1 also detects
expired keys again — 18.0's detection silently never ran, so expired-key notices reappear after
upgrading. See Common Pitfalls.intl-datetime cell type: combined date-and-time values — ISO 8601 source data,
dateTimeFormat (Intl.DateTimeFormat options object), native date-time picker, and sorting /
filtering / Excel-export support. See Column types above.selectionHandles option shows draggable handles at each
edge midpoint of a selected range for resizing the selection, and the moveCells option moves a
cell selection to a new location by dragging its border. New hooks that ship with them:
afterOnSelectionEdgeMouseDown, afterOnSelectionHandleMouseDown, beforeMoveCells,
afterMoveCells.collapseAll(),
expandAll(), collapseParent(row), expandParent(row), toggleParent(row),
getCollapsedParents(), isParentCollapsed(row), isParent(row), getRowLevel(row),
getRowParent(row), countChildren(row), expandToRow(row), expandToLevel(level). These
methods take visual row indexes, except getCollapsedParents() / expandToRow(), which use
physical (a collapsed row has no visual index); the
beforeRowCollapse / afterRowCollapse / beforeRowExpand / afterRowExpand hooks also carry
physical row indexes. Two behavior fixes ship alongside: (1) updateSettings() no longer discards
collapsed-row state — it now survives, without re-firing the collapse/expand hooks for the
replay; (2) looking up the index/parent/level of a row object held from before a loadData(),
updateData(), addChild(), or a row move no longer throws — it returns null instead.beforeColumnMove / afterColumnMove no longer fire on a plain header click (they previously
fired even though no column moved). See the Sorting & filtering note above.false from the new
modifySinglePassLayout hook to restore the previous measure-then-render path for that
instance — it is read on every layout pass, so it works through updateSettings() too.getCellMetaTransient() method reads effective cell configuration without caching it.preserveNumericLiteral option (numeric cells): keeps the exact typed value — trailing
decimal zeros and large-number precision survive the editor.sanitizer option is now
applied to surfaces that previously skipped it (a sanitizer that branches on its source
argument sees new values; the new SanitizerContext type lists them). The loading plugin's
title / description options now render as text — use icon for markup.Migration guide: https://handsontable.com/docs/react-data-grid/migration-from-18.0-to-18.1/ Release blog post: https://handsontable.com/blog/handsontable-18.1.0-shadow-dom-support-for-salesforce-and-web-components-a-faster-grid-and-a-new-demo-playground
18.1.2 patch (October 2026): Changed entitlement license key validation to protect the human-readable text as well as the bracketed block (so the block alone, edited text, or text after the block makes a current key invalid, while a rewrapped, one-line, or \n-escaped key still works). Fixed entitlement license keys whose bracketed block was broken across lines (e.g. by an email client) being read as invalid and locking the grid.
18.1.3 patch (November 2026): Fixed slow scrolling of grids with many custom borders (#13908).
handsontable directly; the handsontable/common subpath was removed. TypeScript 5.1+ is required for consumers.[email protected] ships with dependencies: {} — install hyperformula separately and pass it to the Formulas plugin.date and time type names remain and are interchangeable with the new intl-date / intl-time names (same implementation). Formats are Intl.DateTimeFormat-shaped option objects, source data must be ISO 8601, and the editor is a native date/time input. String dateFormat/timeFormat and datePickerConfig are ignored with a console warning; correctFormat is removed. Use valueParser / valueSetter for date/time value correction; datePickerConfig has no replacement.numericFormat.pattern and numericFormat.culture (numbro syntax) are gone. Use Intl.NumberFormat options + locale.sanitizer: (html) => … function if you render untrusted HTML.saveManualColumnWidths() / loadManualColumnWidths() / saveManualRowHeights() / loadManualRowHeights() are deprecated no-ops. These ManualColumnResize / ManualRowResize methods lost their storage when the PersistentState plugin was removed in v17.0; in v18.0 they only log a deprecation warning (load… returns []). Note: the v18.0 changelog also re-lists the PersistentState plugin and core hot.undo() / hot.redo() removals, but both actually shipped in v17.0 (see v17.0 Breaking Changes below).layout option orders plugin UI elements in the top and bottom wrapper slots. New DOM elements (.ht-slot-top, .ht-slot-bottom, .ht-overlay, .ht-grid-content) — audit custom CSS.--ht-wrapper-border-radius renamed to --ht-border-radius; --ht-wrapper-border-width and --ht-wrapper-border-color removed (their defaults meant no wrapper border was drawn). Recreate a visible border with a box-shadow on .ht-root-wrapper.hashRevealDelay (password cells), visibleWhen (nested headers), layout.<HotColumn> no longer leaves a phantom column (#12596); height: '100%' inside a fixed-height parent no longer hides the wrapped table (#12445). Both wrappers peer-require handsontable@^18 — keep versions aligned.Migration guide: https://handsontable.com/docs/react-data-grid/migration-from-17.1-to-18.0/
dataProvider option), Notification (toast notifications).columnHeaders option was renamed to colHeaders (see Common Pitfalls).dateFormat option now accepts Intl.DateTimeFormatOptions.@handsontable/react, @handsontable/angular). Use
@handsontable/react-wrapper and @handsontable/angular-wrapper.handsontable.full.min.css). Use handsontable/styles/ imports.persistentState option, and the persistentStateSave /
persistentStateLoad / persistentStateReset hooks. The saveManualColumnWidths /
loadManualColumnWidths / saveManualRowHeights / loadManualRowHeights plugin methods also
stopped existing at runtime (v18.0 reintroduced them as deprecated no-op stubs).hot.undo() / hot.redo() / hot.clearUndo() / hot.isUndoAvailable() /
hot.isRedoAvailable() methods and the hot.undoRedo property. Use the UndoRedo plugin:
hot.getPlugin('undoRedo').undo() / .redo().v17.0 migration guide: https://handsontable.com/docs/react-data-grid/migration-from-16.2-to-17.0/
references/custom-cells.md (opens in a new tab)references/data-workflows.md (opens in a new tab)references/docs-map.md (opens in a new tab)references/interaction-plugins.md (opens in a new tab)references/type-definitions.md (opens in a new tab)scripts/lib/codemod.mjs (opens in a new tab)scripts/lib/handsontable-package.mjs (opens in a new tab)scripts/license-doctor.mjs (opens in a new tab)scripts/migrate-v18.mjs (opens in a new tab)scripts/migrate-v19.mjs (opens in a new tab)scripts/validate-settings.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub handsontable/handsontable-skills --plugin handsontable-skills2 skills in this plugin