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-glassmorphism-loader

v1.2.0

Published

A beautiful, customizable glassmorphism loader component for React 19+ with rotating lines animation and blur effects

Readme

React Glassmorphism Loader

A beautiful, customizable glassmorphism loader component for React 19+ with rotating lines animation and blur effects.

Features

  • React 19+ Compatible - Works with the latest React versions
  • Zero Dependencies - No external dependencies required
  • Fully Customizable - Colors, sizes, text, animations, and more
  • Responsive Design - Automatically adapts to different screen sizes
  • Glass Effect - Beautiful backdrop blur effect
  • TypeScript Ready - Full TypeScript support
  • Lightweight - Minimal bundle size
  • Accessible - ARIA labels and proper semantics

Installation

npm install react-glassmorphism-loader

Usage

Basic Usage

import React, { useState, useEffect } from 'react';
import ReactGlassLoader from 'react-glassmorphism-loader';

function App() {
  const [loading, setLoading] = useState(true);

  useEffect(() => {
    // Simulate loading
    setTimeout(() => setLoading(false), 3000);
  }, []);

  return (
    <div>
      {loading && <ReactGlassLoader />}
      <h1>Your App Content</h1>
    </div>
  );
}

Advanced Usage

import ReactGlassLoader from 'react-glassmorphism-loader';

function App() {
  return (
    <ReactGlassLoader
      text="Loading your data..."
      textColor="#ffffff"
      logoColor="#00ff88"
      backgroundColor="rgba(0, 0, 0, 0.8)"
      blurAmount="8px"
      fontSize="1.5rem"
      fontFamily="Arial, sans-serif"
      height="120"
      width="120"
      strokeWidth="6"
      animationDuration="1"
      responsive={true}
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | text | string | "Data is loading, please wait" | Loading text to display | | textColor | string | "rgb(6, 27, 120)" | Color of the loading text | | logoColor | string | "rgb(6, 27, 120)" | Color of the rotating lines | | color | string | undefined | Backward compatibility - sets both text and logo color | | height | string | "106" | Height of the loader in pixels | | width | string | "106" | Width of the loader in pixels | | strokeWidth | string | "5" | Width of the rotating lines | | animationDuration | string | "0.75" | Duration of rotation animation in seconds | | fontSize | string | "1.7rem" | Font size of the loading text | | fontFamily | string | "Syne Mono, monospace" | Font family of the loading text | | fontWeight | string | "600" | Font weight of the loading text | | backgroundColor | string | "rgba(128, 128, 128, 0.5)" | Background color with opacity | | blurAmount | string | "4px" | Amount of backdrop blur effect | | textMarginTop | string | "10px" | Margin top for the text | | visible | boolean | true | Whether the loader is visible | | responsive | boolean | true | Enable responsive sizing | | mobileHeight | string | "80" | Height on mobile devices | | mobileWidth | string | "80" | Width on mobile devices | | tabletHeight | string | "90" | Height on tablet devices | | tabletWidth | string | "90" | Width on tablet devices |

Examples

Custom Colors

<ReactGlassLoader
  textColor="#ff6b6b"
  logoColor="#4ecdc4"
  backgroundColor="rgba(0, 0, 0, 0.9)"
/>

Large Loader

<ReactGlassLoader
  height="150"
  width="150"
  strokeWidth="8"
  fontSize="2rem"
/>

Fast Animation

<ReactGlassLoader
  animationDuration="0.5"
  text="Loading quickly..."
/>

Custom Font

<ReactGlassLoader
  fontFamily="Roboto, sans-serif"
  fontWeight="400"
  fontSize="1.2rem"
/>

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

MIT © Abhishek Kumar

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Issues

If you find any issues, please report them at: https://github.com/abhishekkumar/react-glass-loader/issues