import React from 'react'; import { Link } from 'react-router-dom'; import { Button } from '@/components/ui/button'; import { ArrowRight } from 'lucide-react'; const Widgets = () => { return (

Status Widgets

Embeddable web components to display real-time uptime status on your website.

{/* Quick Start */}

Quick Start

Add the status widget to any HTML page with a single script tag:

{`
`}
{/* Widget Types */}

Widget Types

{/* Status Badge */}

Status Badge

A compact badge showing current status.

{``}
{/* Status Card */}

Status Card

A card showing status, uptime percentage, and response time.

{``}
{/* Status Page */}

Status Page

A full status page with multiple endpoints.

{``}
{/* Customization */}

Customization

Customize the appearance using CSS variables:

{``}
{/* Attributes */}

Attributes

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
{/* React Integration */}

React Integration

Use the React wrapper for type-safe integration:

{`import { StatusCard, StatusPage } from '@uptime.link/react';

function MyStatusPage() {
  return (
    
  );
}`}
{/* Next steps */}

Next Steps

); }; export default Widgets;