Quick Start
This guide shows you how to use the SpreadsheetViewer component in your React application.
Basic Usage
Section titled “Basic Usage”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> );}What is a Model?
Section titled “What is a Model?”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
Next Steps
Section titled “Next Steps”Now that you have the basic component working, explore more features:
- Theming - Customize colors and styles
- Handling Events - Listen to user interactions
- Initial Selection - Set the initial selected cell
- Component Props - See all available options