🟠 Colored circles that can pulse https://status-indicator.webcomponent.io
Find a file
2026-05-14 08:53:56 +02:00
.husky chore: add husky post-commit auto push to gh & sh 2026-05-08 18:08:53 +02:00
public refactor(site): move pico.css to public dir 2026-05-09 10:43:37 +02:00
src refactor: add types for internals 2026-05-11 13:48:06 +02:00
.gitignore Initial commit 2026-05-08 13:16:37 +02:00
index.html refactor(site): remove unused css variable 2026-05-11 18:49:58 +02:00
LICENSE chore: update copyright year 2026-05-08 20:37:31 +02:00
package.json 2.0.0 2026-05-14 08:53:56 +02:00
pnpm-lock.yaml feat: externalize base class 2026-05-14 08:53:46 +02:00
pnpm-workspace.yaml chore: update deps; setup allowBuild 2026-05-08 17:07:16 +02:00
README.md feat: externalize base class 2026-05-14 08:53:46 +02:00
screenshot.png chore: update readme & screenshot 2026-05-08 19:42:58 +02:00
vite-lib.config.ts feat: externalize base class 2026-05-14 08:53:46 +02:00

<status-indicator>

Colored circles that can pulse. That's it. That's the component.

Quick Start using a CDN

Copy the following to your HTML page:

<script type="module" src="https://esm.sh/@ayo-run/status-indicator"></script>

<status-indicator pulse status="positive">
  All systems operational
</status-indicator>

Installation via NPM

If you want to install the library as a node module, you can install the published package and the base class via NPM:

# using npm
npm install web-component-base @ayo-run/status-indicator

# or using pnpm
pnpm add web-component-base @ayo-run/status-indicator

Usage

1. status attribute

To indicate the status that determines the color of the circle, set the status attribute of the status-indicator component to any of the following values: positive, negative, active, or intermediary.

<status-indicator status="positive"> All systems operational </status-indicator>
<status-indicator status="negative"> Something's wrong </status-indicator>
<status-indicator status="active"> It's just fine; carry on </status-indicator>
<status-indicator status="intermediary"> Slow down... </status-indicator>
<status-indicator> Nothing matters </status-indicator>

2. pulse animation

You can add the pulse attribute to make the circle... pulse

<status-indicator pulse status="positive">
  All systems operational
</status-indicator>

Result

screenshot


A project by Ayo