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

v0.3.0

Published

Lightweight React <tbody> skeleton rows for loading tables with stable layout and optional shimmer.

Readme

react-table-skeleton

npm npm downloads npm bundle size license build TypeScript PRs Welcome

Lightweight React <tbody> skeleton rows for loading tables with a stable layout and optional shimmer animation.


Why use it

  • Prevent layout jumps while table data is loading (fixed row heights).
  • Reduce visual flicker with consistent skeleton cells matching column count.
  • Works with plain <table> markup or any table library (TanStack Table, custom solutions).

Quick example

import React from "react";
import { TableSkeletonBody } from "react-table-skeleton";
import "react-table-skeleton/dist/index.css";

function MyTable({ loading, data }) {
  return (
    <table>
      <thead>
        <tr>
          <th>Name</th>
          <th>Age</th>
          <th>City</th>
        </tr>
      </thead>

      {loading ? (
        <TableSkeletonBody rows={5} columns={3} />
      ) : (
        <tbody>
          {data.map((d, i) => (
            <tr key={i}>
              <td>{d.name}</td>
              <td>{d.age}</td>
              <td>{d.city}</td>
            </tr>
          ))}
        </tbody>
      )}
    </table>
  );
}

Props

| Prop | Type | Default | Description | |--------------------|-----------------------|--------------------------|-------------| | rows | number | 5 | Number of skeleton rows | | columns | number \| array | 3 | Column count or column width config | | rowHeight | number \| string | 48px | Fixed row height (prevents layout shift) | | cellPadding | number \| string | 8px | Padding for each cell | | shimmer | boolean | true | Enable shimmer animation | | randomize | boolean | false | Stable per-column width variation | | className | string | — | Passed to <tbody> | | style | React.CSSProperties | — | Inline styles for <tbody> | | Theming (v0.2.0) | | | | | backgroundColor | string | #e6e6e6 | Background color of skeleton bars | | shimmerColor | string | rgba(255,255,255,0.6) | Color of shimmer animation | | barHeight | number \| string | 14px | Height of skeleton bars | | barBorderRadius | number \| string | 3px | Border radius of skeleton bars |

Column width configuration

columns={[
  { width: "40%" },
  { width: "30%" },
  { width: "30%" }
]}

Accepted values:

  • number
  • string (px, %, fr)
  • { width?: number | string }

Theming example

Customize the appearance to match your design system:

<TableSkeletonBody
  rows={5}
  columns={3}
  backgroundColor="#1e293b"
  shimmerColor="rgba(148, 163, 184, 0.3)"
  barHeight={16}
  barBorderRadius={6}
/>

For dark mode:

<TableSkeletonBody
  rows={5}
  columns={3}
  backgroundColor="#374151"
  shimmerColor="rgba(156, 163, 175, 0.2)"
/>

Accessibility

  • Renders <tbody aria-busy="true"> while loading.
  • Skeleton bars use role="presentation" to avoid screen reader noise.

Compatibility

  • React 18+ (peer dependency)
  • Works with:
    • Plain HTML tables
    • Next.js
    • Vite
    • Any bundler
  • Ships:
    • ESM + CJS
    • TypeScript declarations
    • CSS marked as a side effect (not tree-shaken)

Local example

A demo app is included in ./example, consuming the package via file:...

cd example
npm install
npm run dev

Installation

npm install react-table-skeleton

Then import the CSS in your app:

import "react-table-skeleton/dist/index.css";

Build & publish (maintainers)

npm run typecheck
npm run build

npm pack
tar -tf react-table-skeleton-*.tgz

npm publish --access public

Links

  • Repository: https://github.com/RomanFedytskyi/react-table-skeleton
  • Issues: https://github.com/RomanFedytskyi/react-table-skeleton/issues
  • CI: https://github.com/RomanFedytskyi/react-table-skeleton/actions
  • License: https://github.com/RomanFedytskyi/react-table-skeleton/blob/main/LICENSE
  • Contributing: https://github.com/RomanFedytskyi/react-table-skeleton/blob/main/CONTRIBUTING.md
  • Code of Conduct: https://github.com/RomanFedytskyi/react-table-skeleton/blob/main/CODE_OF_CONDUCT.md
  • Security: https://github.com/RomanFedytskyi/react-table-skeleton/blob/main/SECURITY.md
  • npm: https://www.npmjs.com/package/react-table-skeleton