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-any-table

v0.1.3

Published

Customizable table with built in pagination!

Readme

React Any Table

Customizable Table component for React!

Takes in an array of objects (each object equal in length) and converts it to a table with the option of pagination.

Install

npm i -s react-any-table

Usage

Being customizable, the table will accept a number of props to change the look and function of your table

| Prop | Type | Description | Default | | ---- | ---- | -----------------------------| --------| | data | array of objects | (Required) Array of objects with each object being of equal length and depth. Every object must also have the same keys which will act as headers for the table. | headerColor | string (color) | The color of the header for the table | white | headerBorderColor | string (color) | border color of the header of the table | #454545 | headerBorderWidth | number | border width of the table header | 1px | headerTextColor | string (color) | text color for the header | #454545 | headerFontSize | number | font size of the text in the header | 12px | rowColor | string (color) | background color of the table's rows | white | rowBorderColor | string (color) | border color of the table's rows | #D9D9D9 | rowBorderWidth | number | border width of the table's rows | 1px | rowTextColor | string (color) | text color of the table's row items| #454545 | rowFontSize | number | font size of each item in the table's rows | 12px | maxViewableWidth | number | maximum number of pixels for the viewable width of the table (overflow will be scrollable) | 700px | maxViewableHeight | number | maximum number of pixels for the viewable height of the table (overflow will be scrollable) | 530px | maxRows | number | maximum number of rows available in each page of the table (if default, then pagination will not be displayed and table's data will be scrollable) | 0 | activePageColor | string (color) | (for pagination) text color of the active page in the table | #454545 | inactivePageColor | string (color) | (for pagination) text color of the inactive page in the table | #D9D9D9 | arrowLeftColor | string (color) | (for pagination) color of the left arrow (if not disabled) in the pagination row | #1890FF | arrowRightColor | string (color) | (for pagination) color of the right arrow (if not disabled) in the pagination row | #1890FF

Example
import React from 'react'
import Table from './Table'

const App = () => {
  return (
		<div style={{paddingTop: 20, paddingLeft: 20}}>
      <Table
       data={[
          {
            id: 1,
            item: 'eggs',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 2,
            item: 'milk',
            price: "$1.99",
            available: 'yes'
          },
          {
            id: 3,
            item: 'bread',
            price: "$3.99",
            available: 'no'
          },
          {
            id: 4,
            item: 'cheese',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 5,
            item: 'chicken',
            price: "$6.99",
            available: 'no'
          },
          {
            id: 6,
            item: 'eggs',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 7,
            item: 'milk',
            price: "$1.99",
            available: 'yes'
          },
          {
            id: 8,
            item: 'bread',
            price: "$3.99",
            available: 'no'
          },
          {
            id: 9,
            item: 'cheese',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 10,
            item: 'chicken',
            price: "$6.99",
            available: 'no'
          },
          {
            id: 11,
            item: 'eggs',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 12,
            item: 'milk',
            price: "$1.99",
            available: 'yes'
          },
          {
            id: 14,
            item: 'bread',
            price: "$3.99",
            available: 'no'
          },
          {
            id: 15,
            item: 'cheese',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 16,
            item: 'chicken',
            price: "$6.99",
            available: 'no'
          },
          {
            id: 17,
            item: 'eggs',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 18,
            item: 'milk',
            price: "$1.99",
            available: 'yes'
          },
          {
            id: 19,
            item: 'bread',
            price: "$3.99",
            available: 'no'
          },
          {
            id: 20,
            item: 'cheese',
            price: "$2.99",
            available: 'yes'
          },
          {
            id: 21,
            item: 'chicken',
            price: "$6.99",
            available: 'no'
          }          
        ]}
      />
		</div>  );
}

export default App;