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

reactlc

v1.3.0

Published

A lightweight and customizable React loading component library with TypeScript support

Downloads

8

Readme

React Loading Components

A lightweight and customizable React component library for loading indicators and skeleton screens. Built with TypeScript for full type safety and excellent developer experience.

✨ Features

  • 🚀 Lightweight - Minimal bundle size impact
  • 🎨 Customizable - Full control over appearance and behavior
  • 📝 TypeScript - Complete type definitions included
  • Accessible - ARIA labels and screen reader support
  • 🌳 Tree-shakeable - Import only what you need
  • Performance - Optimized animations using CSS

📦 Installation

npm install react-loading-components
yarn add react-loading-components
pnpm add react-loading-components

🚀 Quick Start

import {
  LoadingSpinner,
  PulseLoader,
  Skeleton,
} from "react-loading-components";

function App() {
  return (
    <div>
      {/* Basic spinner */}
      <LoadingSpinner />

      {/* Customized spinner */}
      <LoadingSpinner
        size={50}
        color="#ff6b6b"
        showText={true}
        text="Loading data..."
      />

      {/* Pulse loader */}
      <PulseLoader count={5} color="#10b981" />

      {/* Skeleton placeholder */}
      <Skeleton width="100%" height={24} />
    </div>
  );
}

📖 Components

LoadingSpinner

A classic spinning loading indicator.

<LoadingSpinner
  size={40} // Size in pixels (default: 40)
  color="#3b82f6" // Color (default: "#3b82f6")
  speed={1} // Animation speed in seconds (default: 1)
  thickness={4} // Border thickness (default: 4)
  showText={false} // Show loading text (default: false)
  text="Loading..." // Custom text (default: "Loading...")
  ariaLabel="Loading..." // ARIA label (default: "Loading...")
  className="" // Additional CSS class
/>

PulseLoader

An animated pulse loading indicator with multiple dots.

<PulseLoader
  size={12} // Dot size in pixels (default: 12)
  color="#3b82f6" // Dot color (default: "#3b82f6")
  speed={1.4} // Animation speed in seconds (default: 1.4)
  count={3} // Number of dots (default: 3)
  ariaLabel="Loading..." // ARIA label (default: "Loading...")
  className="" // Additional CSS class
/>

Skeleton

A skeleton placeholder for content loading states.

<Skeleton
  width="100%" // Width (default: "100%")
  height={20} // Height in pixels (default: 20)
  borderRadius={4} // Border radius (default: 4)
  animate={true} // Enable animation (default: true)
  speed={2} // Animation speed in seconds (default: 2)
  className="" // Additional CSS class
/>

🚀 Publishing to NPM

This library is set up for easy publishing to NPM:

  1. Build the library: npm run build:lib
  2. Update version: npm version patch (or minor/major)
  3. Publish: npm publish

The prepublishOnly script ensures the library is built before publishing.

🛠️ Development

# Start development server
npm run dev

# Build the library
npm run build:lib

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ["./tsconfig.node.json", "./tsconfig.app.json"],
      tsconfigRootDir: import.meta.dirname,
    },
  },
});

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from "eslint-plugin-react-x";
import reactDom from "eslint-plugin-react-dom";

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    "react-x": reactX,
    "react-dom": reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs["recommended-typescript"].rules,
    ...reactDom.configs.recommended.rules,
  },
});