Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nick-keller/react-datasheet-grid
An Airtable-like / Excel-like component to create beautiful spreadsheets.
https://github.com/nick-keller/react-datasheet-grid
excel grid react spreadsheet table
Last synced: 25 days ago
JSON representation
An Airtable-like / Excel-like component to create beautiful spreadsheets.
- Host: GitHub
- URL: https://github.com/nick-keller/react-datasheet-grid
- Owner: nick-keller
- License: mit
- Created: 2020-11-16T18:27:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T17:40:31.000Z (4 months ago)
- Last Synced: 2024-10-13T15:13:44.582Z (26 days ago)
- Topics: excel, grid, react, spreadsheet, table
- Language: TypeScript
- Homepage:
- Size: 7.93 MB
- Stars: 1,786
- Watchers: 24
- Forks: 172
- Open Issues: 58
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-list - react-datasheet-grid - like / Excel-like component to create beautiful spreadsheets. | nick-keller | 1805 | (TypeScript)
README
# react-datasheet-grid
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/nick-keller/react-datasheet-grid/tests.yml?branch=master)
[![Coveralls](https://img.shields.io/coveralls/github/nick-keller/react-datasheet-grid)](https://coveralls.io/github/nick-keller/react-datasheet-grid)
[![npm](https://img.shields.io/npm/dm/react-datasheet-grid)](https://www.npmjs.com/package/react-datasheet-grid)
[![GitHub last commit](https://img.shields.io/github/last-commit/nick-keller/react-datasheet-grid)](https://github.com/nick-keller/react-datasheet-grid)
![npm bundle size](https://img.shields.io/bundlephobia/min/react-datasheet-grid)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)View [demo and documentation](https://react-datasheet-grid.netlify.app/)
An Airtable-like / Excel-like component to create beautiful spreadsheets.
![Preview](./images/preview.png)
Feature rich:
- Dead simple to set up and to use
- Supports copy / pasting to and from Excel, Google-sheet...
- Keyboard navigation and shortcuts fully-supported
- Supports right-clicking and custom context menu
- Supports dragging corner to expand selection
- Easy to extend and implement custom widgets
- Blazing fast, optimized for speed, minimal renders count
- Smooth animations
- Virtualized rows and columns, supports hundreds of thousands of rows
- Extensively customizable, controllable behaviors
- Built with Typescript## Install
```bash
npm i react-datasheet-grid
```## Usage
```tsx
import {
DataSheetGrid,
checkboxColumn,
textColumn,
keyColumn,
} from 'react-datasheet-grid'// Import the style only once in your app!
import 'react-datasheet-grid/dist/style.css'const Example = () => {
const [ data, setData ] = useState([
{ active: true, firstName: 'Elon', lastName: 'Musk' },
{ active: false, firstName: 'Jeff', lastName: 'Bezos' },
])const columns = [
{
...keyColumn('active', checkboxColumn),
title: 'Active',
},
{
...keyColumn('firstName', textColumn),
title: 'First name',
},
{
...keyColumn('lastName', textColumn),
title: 'Last name',
},
]return (
)
}
```