No description
Find a file
2025-03-07 17:16:54 -05:00
src 🚀 Init 2025-03-07 17:16:54 -05:00
test 🚀 Init 2025-03-07 17:16:54 -05:00
.gitignore 🚀 Init 2025-03-07 17:16:54 -05:00
index.ts 🚀 Init 2025-03-07 17:16:54 -05:00
LICENSE 🚀 Init 2025-03-07 17:16:54 -05:00
package.json 🚀 Init 2025-03-07 17:16:54 -05:00
README.md 🚀 Init 2025-03-07 17:16:54 -05:00
tsconfig.json 🚀 Init 2025-03-07 17:16:54 -05:00

Netweak Badges

Netweak badges, built for Astro.

Note

Your Astro website must output to Server-Side Rendering.

Usage

Import component:

import {SmallBadge} from "@sudovanilla/netweak-badges"

Create badge for overall status:

<SmallBadge Page="status.example.org"/>

Create badge for specific service:

<SmallBadge Page="status.example.org" Service="2"/>

To assign it to a specific service, take a look at your JSON response and use the number assigned to the service under services:

JSON Response