xlsx-vue-viewer

Vue 3 component for the Excel spreadsheet editor. Self-contained: includes the editor, the formula engine and the legacy .xls reader.
2,632 25
Install
npm install xlsx-vue-viewer
Latest Version:1.2.0
Vue:3
License:Apache-2.0
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: christophervr

xlsx-vue-viewer

npm version license types

A browser Excel spreadsheet editor for Vue 3, using one shared editor and the canonical OOXML document engine.

Live demo | npm | Full docs | Source

Part of ooxml: Office · Word · Excel · PowerPoint · Visio · OpenTeams · Core

Install

npm install xlsx-vue-viewer

Use the framework peers declared by this package: vue (^3.5.0). Existing framework apps normally already provide them.

The package bundles its editor UI and adapter. The core model and shared controls are installed as regular registry dependencies and the model API is re-exported. One viewer package is enough; no separate core install is required.

Quick start

<script setup lang="ts">
import { shallowRef } from 'vue';
import { createWorkbook, SpreadsheetEditor } from 'xlsx-vue-viewer';

const workbook = shallowRef(createWorkbook());
</script>
<template>
	<SpreadsheetEditor :workbook="workbook" @workbook-change="workbook = $event" />
</template>

Mount in the browser and give the host a height. Use one editor package per application: each registers the same editor custom element.

Features

Feature Description
Editing Shared grid, ribbon, formula bar, sheet tabs and workbook change events.
Files XLSX, XLSM, XLTX, legacy XLS and CSV loading through core.
Model createWorkbook, loadWorkbook, saveXlsx and core types from the package entry.
Frameworks The same <xlsx-editor> UI behind six thin adapters.

API

Shared option types, loadWorkbook and detectWorkbookFormat helpers are exported from the package. Framework handles expose load, save and download. The vanilla package supplies mountEditor(container, options) for framework-free lifecycle management. ooxml-core and ooxml-ui are regular dependencies. Parsing, formulas, editing and grid calculations live in core.

Limitations

This is an early editor, without Microsoft Excel parity or guaranteed lossless saving for unsupported features. Legacy XLS input saves as XLSX. Pivot tables, slicers and sparklines are not editable; macros never execute. Review core diagnostics and the feature guide before relying on preservation.

Documentation

Framework guide | Bindings

License

Apache-2.0.

Related Packages

@vervedoc/excel

VerveDoc Excel 编辑器UI组件

0
@composy/excel-vue

Excel 文档查看器 Vue 3 组件

0
hxy-editor

基于 UniverJS 的 Vue 3 编辑器组件,提供电子表格(pd-excel)和文档(pd-doc)编辑...

3,996
@arcships/vue-xlsx

Vue 3 XLSX spreadsheet viewer with charts, maps, WebGL, and controller composabl...

1,614 7
@hxy2193/pd-editor

基于 UniverJS 的 Vue 3 编辑器组件,提供电子表格(pd-excel)和文档(pd-doc)编辑...

563

Version History

Version Released License
1.2.0 Apache-2.0
1.1.0 Apache-2.0
1.0.0 Apache-2.0
0.7.0 Apache-2.0
0.6.0 Apache-2.0