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

@banegasn/m3-loading-indicator

v0.1.4

Published

Material Design 3 loading indicator web component

Downloads

41

Readme

@banegasn/m3-loading-indicator

Preview

Material Design 3 Loading Indicator web component — framework-agnostic, built with Lit.

npm version License: MIT

An expressive M3 Loading Indicator web component following the Material Design 3 progress indicator specifications. Features unique shape morphing animations — the indicator transitions between circle and square shapes while loading. Works in Angular, React, Vue, Svelte, or plain HTML — no build step required.

Features

  • Standard and contained variants
  • Circle and square shape morphing animation
  • Accessible with ARIA status role
  • Customizable via CSS custom properties
  • Framework-agnostic custom element

Installation

npm install @banegasn/m3-loading-indicator
# or
pnpm add @banegasn/m3-loading-indicator
# or
yarn add @banegasn/m3-loading-indicator

CDN Usage (no build step)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>M3 Loading Indicator Demo</title>
  <script type="module" src="https://cdn.jsdelivr.net/npm/@banegasn/m3-loading-indicator/+esm"></script>
  <style>
    body { font-family: Roboto, sans-serif; padding: 32px; background: #fef7ff; }
    .demo { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
    label { font-size: 12px; color: #49454f; display: block; text-align: center; margin-top: 8px; }
  </style>
</head>
<body>
  <div class="demo">
    <div>
      <m3-loading-indicator variant="standard" shape="circle"></m3-loading-indicator>
      <label>Standard / Circle</label>
    </div>
    <div>
      <m3-loading-indicator variant="standard" shape="square"></m3-loading-indicator>
      <label>Standard / Square</label>
    </div>
    <div>
      <m3-loading-indicator variant="contained" shape="circle"></m3-loading-indicator>
      <label>Contained / Circle</label>
    </div>
    <div>
      <m3-loading-indicator variant="contained" shape="square"></m3-loading-indicator>
      <label>Contained / Square</label>
    </div>
  </div>
</body>
</html>

npm Usage

import '@banegasn/m3-loading-indicator';
<m3-loading-indicator></m3-loading-indicator>
<m3-loading-indicator variant="contained" shape="square"></m3-loading-indicator>

API

Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | variant | 'standard' \| 'contained' | 'standard' | Indicator variant | | shape | 'circle' \| 'square' | 'circle' | Morphing shape style |

CSS Custom Properties

| Property | Default | Description | |----------|---------|-------------| | --md-sys-color-primary | #6750a4 | Indicator color | | --md-sys-color-surface-container-high | #ece6f0 | Contained variant background | | --md-loading-indicator-size | 48px | Size of the indicator |

Framework Usage

Angular

import '@banegasn/m3-loading-indicator';
<m3-loading-indicator *ngIf="isLoading" variant="standard"></m3-loading-indicator>

React

import '@banegasn/m3-loading-indicator';
// {isLoading && <m3-loading-indicator variant="standard" />}

Vue

<m3-loading-indicator v-if="isLoading" variant="standard" />

Resources

License

MIT