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

react-digital-grid

v1.2.0

Published

Digital Grid - A flexible React Grid component

Readme

React Digital Grid

Deploy Examples

This is a React DataGrid / DataTable component with features like:

  • flexible formatting - Easily format columns with built-in classes: bold, italic, left, right, etc.. or totaly custom using your own written renderer functions.
  • skins - 3 skins available: default, classic and bootstrap. You can also write your own skin, it's all about writing your own css file.
  • pagination - Specify the total number of records, the page size and current page and paginator will automatically be rendered with links and actions for each page.
  • sorting - Just specify if a column is sortable and automatically you will be able to click on it (with proper UI) and have proper events attached.
  • expandable content - You want to have a show more... or [+] details feature on your rows? This is built-in and supports any kind of content, even another grid (sub-grid).
  • selection - If set, you are able to select one or multiple rows. You can also use Shift or Ctrl to multi-select.
  • events - You can specify what happens when you click on any of the cells in the grid. All data is available in the event parameters.

Installing

npm install --save react-digital-grid

Basic usage

  import React from 'react';
  import { Grid, Column } from 'react-digital-grid';
  
  const Example = () => {
  
  // load your data here: data
  return (
    <Grid 
      data={data}
    > 
      <Column header='Id' className='left' field='guid' />
      <Column header='Name' className='bold' field='name' />
      <Column header='Company' className='bold' field='company' />
      <Column 
            header='Email' 
            field='email'
            renderer={item => {
              return <a href={`mailto:${item.email}`}>{item.email}</a>;
            }}
      />
    </Grid>
    );
   };

Demos available here

A lot of examples available at: https://miscalencu.github.io/react-digital-grid/

Parameters

| Parameter | Description | | :--- | :--- | | Basic || | loading | Sets if the grid should display a loading indicator. Defaults to 'false'. | | data | The data that the grid should display. | | keyField | The field name of the data elements that represents a unique key. | | dataCount | The total records of the grid. This is not the count of the 'data' array, but total records for all pages. Used by the paginator to calculate total pages. | | pageNr | Curtent page to display. Used by the paginator render. | | pageSize | Current number of items to display on a page. Used by the paginator render. | | orderBy | Initial 'Order By' field. | | orderDir | Initial 'Order Dir' field. | | onStateChange | Callback method called when the state of the grid (page, order by, order dir, etc...) is changed. Parameterd: (pageSize, pageNr, orderBy, orderDir). | | Formatting || | skin | Skin of the grid. Can be: 'default', 'classic', 'bootstrap' or 'none'. Defalts to 'default'. | | emptyText | Text to be displayed when there is no data to available. Defaults to 'No data available' | | footerText | Text to be displayed in the bottom of the grid. Defaults to '' (empty). | | className | Additional className of the grid table. Defaults to '' (empty). | | classNamesRenderer | Method to compute additional className for each row. Parameters: see row events parameters. | | onCellClick | Callback method to be called (if set) when clicking a column value. | | emptyPlaceholder | Text to be displayed in each grid cell if the content is empty. | | Selection || | isSelectable | Sets if the grid is selectable. It true, rows can be (multi)selected. Defaults for 'false'. | | showSelectionInfo | Sets if the selection info is displayed in the footer of the grid. Defaults for 'false'. | | onSelectionChange | Callback method called when the selection of the rows changed. Parameters: (selectedKeys, selectedItems, selectedLast) | | Expandable || | isExpandable | Sets if the grid is expandable. If 'true' will display in the first column a [+] sign that expands the current row. Defaults to 'false'. | | expandedRowContent | Method used to generate the content of an expanded column. Parameters: (item) |

To be implemented

  • frozen rows / first row.
  • frozen columns / first column.
  • improve plugins so you can extend the grid functionalities with your own.

Info

Data in the examples was generated with https://www.json-generator.com/