PackagePhobia (package size on registry) | [](https://lossless.cloud)
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
```sh
npm install @uptime.link/statuspage
```
## Usage
Use TypeScript for best in class intellisense
For further information read the linked docs at the top of this readme.
The `@uptime.link/statuspage` module provides a collection of web components to build a comprehensive status page for Uptime.link dashboards. This includes headers, status bars, asset selectors, status details, incident lists, and more.
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
Here’s a detailed guide on how to use each component in your TypeScript project with ESM syntax. We will walk through creating a complete status page using the provided components.
### Step-by-Step Example
1.**Setup Your Project:**
Ensure you have a TypeScript project setup. Here's a minimal `tsconfig.json` to get started:
```json
{
"compilerOptions":{
"target":"ES2020",
"module":"ESNext",
"moduleResolution":"node",
"experimentalDecorators":true,
"emitDecoratorMetadata":true,
"strict":true,
"esModuleInterop":true,
"skipLibCheck":true
}
}
```
2.**Import Components:**
Create an `index.ts` file, and import the components you need:
```typescript
import'./elements/index.js';
import{page1}from'./pages/index.js';
```
3.**Creating a Status Page:**
Here, we'll create a simple status page using the imported components. We'll create individual components like headers, status bars, footers, etc., and combine them into a single page.
This example uses all the components provided by `@uptime.link/statuspage` to create a functional status page. Modify the data, styles, and structure to suit your requirements.
description:'a catalog with webcomponents for uptimelink dashboard'
version:'1.0.73',
description:'A catalog of webcomponents for the UptimeLink dashboard.'
}
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.