npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@grid-table/view

v0.6.67

Published

grid-table table

Readme

@grid-table/view

Full-featured virtual scrolling table component for React with a plugin architecture.

This is the main user-facing package — it re-exports everything from @grid-table/core and @grid-table/basic.

Install

npm install @grid-table/view @einfach/react @einfach/utils @einfach/react-utils

Quick Start

import { Table } from '@grid-table/view'
import { useStore } from '@einfach/react'
import type { ColumnType } from '@grid-table/view'

const columns: ColumnType[] = [
  { title: 'Name', dataIndex: 'name', width: 150, key: 'name' },
  { title: 'Age', dataIndex: 'age', width: 100, key: 'age' },
  { title: 'Email', dataIndex: 'email', width: 250, key: 'email' },
]

const data = [
  { id: 1, name: 'John', age: 28, email: '[email protected]' },
  { id: 2, name: 'Jane', age: 32, email: '[email protected]' },
]

function App() {
  const store = useStore()
  return (
    <Table
      store={store}
      columns={columns}
      dataSource={data}
      idProp="id"
      rowHeight={36}
      style={{ width: '100%', height: 500 }}
    />
  )
}

Table Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | dataSource | any[] | — | Data array | | columns | ColumnType[] | — | Column definitions | | idProp | string | — | Row ID field name | | store | Store | — | @einfach/react store | | rowHeight | number | 36 | Row height (px) | | cellDefaultWidth | number | 80 | Default column width | | enableSelectArea | boolean | false | Enable area selection | | enableColumnResize | boolean | true | Enable column resize | | enableRowNumber | boolean | false | Show row number column | | onColumnResize | (id, width) => void | — | Column resize callback | | rowSelection | object | — | Row checkbox selection config | | loading | boolean | false | Show loading state | | zebra | boolean | false | Alternating row colors | | showHorizontalBorder | boolean | — | Show horizontal borders | | showVerticalBorder | boolean | — | Show vertical borders |

ColumnType

| Prop | Type | Description | |------|------|-------------| | title | ReactNode | Column header | | dataIndex | string \| string[] | Data field path | | width | number | Column width | | key | string | Unique column key | | render | (text, rowInfo, param) => ReactNode | Custom cell renderer | | renderComponent | ComponentType | Cell renderer component | | fixed | 'left' \| 'right' | Sticky column position | | align | 'left' \| 'center' \| 'right' | Text alignment | | flexGrow | number | Flex grow ratio | | className | string | Custom CSS class |

Plugins

Built-in plugins activated via props or provided as components:

| Plugin | Description | |--------|-------------| | sticky | Fixed columns and headers | | drag | Column resize by dragging | | areaSelected | Region/area cell selection | | copy | Copy selected cells to clipboard | | select | Row/cell selection | | filter | Column data filtering | | mergeCells | Cell merging | | calcSizeByColumn | Auto column width calculation | | border | Cell border styling | | rowNumber | Row number column | | theadColumnHide | Toggle column visibility | | theadContextMenu | Header right-click context menu |

License

MIT