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

@wezon/wz-grid-react

v0.2.0

Published

React wrapper for WZ-Grid — built on @wezon/wz-grid-core

Readme

@wezon/wz-grid-react

React wrapper for WZ-Grid — built on @wezon/wz-grid-core

npm version React TypeScript License


Installation

npm install @wezon/wz-grid-react

Quick Start

import { WZGrid } from '@wezon/wz-grid-react';
import type { Column } from '@wezon/wz-grid-react';
import '@wezon/wz-grid-react/dist/wz-grid-react.css';

const columns: Column[] = [
  { key: 'id',    title: 'ID',    width: 60 },
  { key: 'name',  title: 'Name',  width: 150, editable: true },
  { key: 'score', title: 'Score', width: 80,  type: 'number', align: 'right' },
];

const rows = [
  { id: 1, name: 'Alice', score: 98 },
  { id: 2, name: 'Bob',   score: 72 },
];

export default function App() {
  return (
    <WZGrid
      columns={columns}
      rows={rows}
      height={500}
      showCheckbox
      useFilter
      usePaging
      pageSize={20}
      onCellUpdate={({ row, colKey, value }) => {
        console.log('Cell updated:', row.id, colKey, value);
      }}
    />
  );
}

Each row object must have a unique id field.


Features (v0.2.0)

| Feature | Status | | --- | --- | | Virtual scroll | Supported | | Sort (multi-column) | Supported | | Column filter | Supported | | Pagination | Supported | | Checkbox selection | Supported | | Text / number edit | Supported | | Tree view | Supported | | Undo / Redo | Supported | | Clipboard copy/paste | Supported | | Column visibility | Supported | | Pinned columns | Supported | | Row detail expand | Supported | | Excel export | Supported | | CSV export | Supported | | i18n (ko/en) | Supported | | Server-side mode | Supported | | Loading state | Supported | | Custom row class | Supported | | TypeScript generics | Supported |

Planned for future releases: Row grouping, Cell merge, Column drag & drop, Context menu.


Props

Core

| Prop | Type | Default | Description | | --- | --- | --- | --- | | rows | GridRow[] | — | (required) Row data array | | columns | Column[] | — | (required) Column definitions | | height | number | — | Grid height in px | | rowHeight | number | 36 | Row height in px | | showCheckbox | boolean | false | Show checkbox column | | usePaging | boolean | false | Enable pagination | | pageSize | number | 50 | Rows per page | | useVirtualScroll | boolean | true | Enable virtual scroll | | useFilter | boolean | false | Enable column filters | | serverSide | boolean | false | Delegate sort/filter to server | | loading | boolean | false | Show loading overlay |

v0.2.0 New Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | useTreeMode | boolean | false | Enable tree view (rows need children field) | | treeKey | string | 'children' | Children array key | | useUndoRedo | boolean | false | Enable Ctrl+Z / Ctrl+Y undo-redo | | undoRedoMaxDepth | number | 50 | Max history depth | | useClipboard | boolean | false | Enable Ctrl+C / Ctrl+V clipboard | | useColumnSettings | boolean | false | Show column visibility toggle button | | renderDetail | (row) => ReactNode | — | Render function for expanded row detail | | locale | 'ko' \| 'en' | 'ko' | UI locale | | messages | Partial<Messages> | — | Override specific UI strings | | onExportExcel | () => void | — | Callback to trigger Excel export (shows toolbar button) | | onExportCsv | () => void | — | Callback to trigger CSV export (shows toolbar button) |

Callbacks

| Prop | Signature | Description | | --- | --- | --- | | onRowClick | (row, rowIdx) => void | Row clicked | | onSort | (configs: SortConfig[]) => void | Sort changed (server-side) | | onCellUpdate | (event: CellUpdateEvent) => void | Cell value changed | | onCheckedChange | (rows: GridRow[]) => void | Checked rows changed | | onUndo | (event: CellUpdateEvent) => void | Undo triggered | | onRedo | (event: CellUpdateEvent) => void | Redo triggered | | rowClass | (row, idx) => string \| undefined | Custom CSS class per row |


Hooks

import {
  useSort,
  useFilter,
  useTree,
  usePaging,
  useVirtualScroll,
  useSelection,
  useCheckbox,
  useUndoRedo,
  useClipboard,
  useColumnSettings,
  useI18n,
} from '@wezon/wz-grid-react';

Export Utilities

import { exportToExcel, exportToCsv } from '@wezon/wz-grid-react';

await exportToExcel(columns, rows, { filename: 'report.xlsx' });
exportToCsv(columns, rows, { filename: 'report.csv' });

License

MIT — Copyright (c) 2024 (주)위존