Skip to content

Quick Start

This guide shows you how to use the SpreadsheetViewer component in your React application.

Import the component and provide a model instance:

import { SpreadsheetViewer } from "@grid-is/mondrian-react";
function App() {
const model = /* your Model instance */;
return (
<div style={{ height: "600px" }}>
<SpreadsheetViewer model={model} />
</div>
);
}

The model prop expects a Model instance that represents your spreadsheet data.

To learn how to create a Model from Excel files, see the Loading Spreadsheets guide, which covers:

  • Installing required dependencies
  • Loading from file uploads
  • Loading from URLs
  • Drag and drop support
  • Error handling

Now that you have the basic component working, explore more features: