@reductoai/xlsx-editor is a spreadsheet editor for the browser: the Home tab, the editable grid, the formula bar, the sheet tabs, and windows and menus that work like those in Microsoft Excel. One call mounts it.
Options
Commands
editor.model.run(command) runs any Home-tab command on the selection, the same commands the toolbar sends. See Headless editor for the command list.
Task pane
Aside slot (host, model) => cleanup puts a pane right of the grid, under the Home tab, where task panes sit in Microsoft Excel. The host is display: contents, so what you append is the pane.
Follow changes
The model’s fields are Svelte runes. Outside Svelte,watch(read, onChange) calls onChange when what read returns changes. It returns a function that stops watching.
React
useXlsxEditor(model, select) re-renders only when the picked value changes (shallow compare). Without a selector it re-renders on every edit, selection and sheet change. workbook opens again when it changes, and readOnly follows the prop; keep the bytes stable between renders. side takes a React node. React is an optional peer dependency.
Styles
style.css styles the editor only: every rule applies under .reductoai (the editor’s root and its menus). The design tokens all start with --rd-. Set a token on :root or on any ancestor of the editor to re-skin it; tokens.css lists them. For a page that is all editor, also import page.css: it styles html and body.