--- title: Material UI pagination_prev: demos/frontend/index pagination_next: demos/net/index --- import current from '/version.js'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; Material UI is a collection of ReactJS Components that follows the [Google Material Design system](https://material.io/) [SheetJS](https://sheetjs.com) is a JavaScript library for reading and writing data from spreadsheets. This demo uses Material UI and SheetJS to pull data from a spreadsheet and display the data. We'll explore how to import data from spreadsheets and export data to spreadsheets. The following Material UI components will be tested: - ["Table"](#material-ui-table) is based on the core HTML TABLE element. - ["Data Grid"](#material-ui-data-grid) is a data grid for larger datasets. :::note pass The [ReactJS demo](/docs/demos/frontend/react) covers basic ReactJS concepts. It should be perused before reading this demo. ::: ## Integration Details [The "Frameworks" section](/docs/getting-started/installation/frameworks) covers installation in projects using Material UI. After installing the SheetJS module in a ReactJS project, `import` statements can load relevant parts of the library. ```js import { read, utils, writeFileXLSX } from 'xlsx'; ``` ## Material UI Table The `Table` component abstracts the `
Spreadsheet | State |
---|---|
![`pres.xlsx` data](pathname:///pres.png) | ```js [ { Name: "Bill Clinton", Index: 42 }, { Name: "GeorgeW Bush", Index: 43 }, { Name: "Barack Obama", Index: 44 }, { Name: "Donald Trump", Index: 45 }, { Name: "Joseph Biden", Index: 46 } ] ``` |
Name | Index |
---|---|
{row.Name} | {row.Index} |