JSPM

  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q106223F
  • License SEE LICENSE IN <LICENSE>

SheetXL Studio - Vanilla entry point for integrating SheetXL UI.

Package Exports

  • @sheetxl/studio-vanilla
  • @sheetxl/studio-vanilla/cdn
  • @sheetxl/studio-vanilla/loader.js

Readme

Studio Vanilla

SheetXL

npm license

Embed the full SheetXL spreadsheet UI into any web page with zero dependencies.

This package bundles React and Material-UI (MUI) internally, but exposes a pure vanilla JavaScript API. You do not need to install or use React or MUI directly—these are implementation details handled for you.

This makes it easy to use the full SheetXL spreadsheet UI in any web project, regardless of framework.


Studio Vanilla can be used in a few ways.


1. Using a Bundler

Using a bundler will provide the most configuration options when including in your application build.

# Using pnpm
pnpm install @sheetxl/studio-vanilla

After installation, you can import and use the SheetXL.attachStudio method.

import { SheetXL } from '@sheetxl/studio-vanilla';

// The attach method will render the spreadsheet into the specified DOM element.
SheetXL.attachStudio("#sheetxl");

2. Quickest Start (CDN)

For instant, no-build-step integration, add the following HTML snippet to your page.

<!DOCTYPE html>
<html>
<head>
  <title>SheetXL Demo</title>
</head>
<body>
  <div id="sheetxl" style="height: 600px; width: 100%;"></div>
  <script type="module">
    (await import("https://cdn.jsdelivr.net/npm/@sheetxl/studio-vanilla/cdn/index.js")).default.attachStudio("#sheetxl");
  </script>
</body>
</html>

API

  • SheetXL.attachStudio(selectorOrElement: string | HTMLElement, options?: object): void Renders the spreadsheet UI into the target element.

Note: React and MUI are bundled internally. You do not need to install or import them yourself.


License

MIT