Vue spreadsheet

An Excel-compatible spreadsheet for Vue: 494 functions, dynamic arrays and xlsx round trips.

Spreadsheet

Early access

$399

Per developer, paid once, lifetime updates

A working starting point

npm install @birchui/vue @birchui/core @birchui/spreadsheet
Show Spreadsheet.vue
Spreadsheet.vue
<script setup>
import { shallowRef } from 'vue';
import { createVueComponent } from '@birchui/vue';
import { spreadsheetDefinition } from '@birchui/spreadsheet';

const BirchSpreadsheet = createVueComponent(spreadsheetDefinition);

const workbook = {
  version: 1,
  sheets: [
    {
      name: 'Loan',
      cells: {
        A1: { value: 'Principal' },
        B1: { value: 250000 },
        A2: { value: 'Annual rate' },
        B2: { value: 0.0625, style: { numberFormat: '0.00%' } },
        A3: { value: 'Payment' },
        B3: { formula: '=PMT(B2/12, 360, -B1)' },
      },
    },
  ],
};
const onCellChange = ({ address, newValue }) => console.info(address, newValue);
const height = shallowRef('520px');
</script>

<template>
  <BirchSpreadsheet
    :style="{ height }"
    :license-key="'LQ1.your-key'"
    :height="520"
    :data="workbook"
    @cell-change="onCellChange"
  />
</template>

Measured: across 1,520 test formulas, 95.5% of results match LibreOffice. A dependency graph recalculates only the cells an edit affects.

How it fits Vue

Birch UI Spreadsheet combines a formula engine with a virtualized, keyboard-complete sheet. Formulas, styles, merges and frozen panes survive an xlsx round trip. Vue mounts it through the generic factory of its adapter.

The Vue adapter wraps the spreadsheet engine in a render-function component. Options arrive as an options object, as attributes, or both, and kebab-case attributes become camelCase keys.

Hold large arrays in shallowRef or markRaw. A deep ref would wrap every record in a proxy the widget never needs. With vue/server-renderer the component renders only its container; the widget is created in onMounted, so Nuxt pages hydrate cleanly.

Questions

Does the Vue spreadsheet support LAMBDA?

Yes: LET, LAMBDA and dynamic arrays such as FILTER, SORT, UNIQUE and XLOOKUP, with #SPILL! when blocked.

Is it in early access?

Yes. It is a feature-complete v0.1; structured references and the spill operator are on the roadmap.

Do I need the SFC compiler to use the Vue spreadsheet?

No. The components are render functions, so they work in single-file components, JSX or plain h() calls.

How are events named in Vue?

Every widget event is emitted in kebab-case, such as @selection-changed or @event-drop, with the event object as payload.