import React from 'react'; import { Link } from 'react-router-dom'; import { Button } from '@/components/ui/button'; import { ArrowRight } from 'lucide-react'; const Widgets = () => { return (
Embeddable web components to display real-time uptime status on your website.
Add the status widget to any HTML page with a single script tag:
{`
`}
A compact badge showing current status.
{` `}
A card showing status, uptime percentage, and response time.
{` `}
A full status page with multiple endpoints.
{` `}
Customize the appearance using CSS variables:
{``}
| Attribute | Type | Description |
|---|---|---|
endpoint |
string | URL to monitor |
name |
string | Display name for the endpoint |
refresh |
number | Refresh interval in seconds (default: 60) |
show-uptime |
boolean | Show uptime percentage |
show-response-time |
boolean | Show response time |
theme |
"light" | "dark" | "auto" | Color theme |
Use the React wrapper for type-safe integration:
{`import { StatusCard, StatusPage } from '@uptime.link/react';
function MyStatusPage() {
return (
);
}`}