Skip to main content
Display a badge on your website to show live updates about the status of your platform. Go to Status PagesYour pageStatus Widget in the dashboard or follow this tutorial.

Installing the widget

Add the library to your website:
<script src="https://cdn.betterstatus.dev/widget.js"></script>
Then add the widget to your code:
import '@betterstatus/widget';

<StatusWidget url="acme.betterstatus.dev" />
Replace acme.betterstatus.dev with your status page URL. Even if you use a custom domain, you must use the betterstatus.dev URL. You’ll find this under Status PagesYour pageDomains.

Customizing with CSS

Add a class to your widget:
import '@betterstatus/widget';

<StatusWidget url="acme.betterstatus.dev" className="status-widget" />
Then create a CSS block and use any of the properties below:
style.css
.status-widget {
  /* Layout */
  --widget-padding: 8px 14px;
  --widget-border-radius: 9999px;       /* pill shape — lower for rounded square */
  --widget-gap: 8px;                    /* space between dot and label */

  /* Dot */
  --widget-dot-size: 8px;
  --widget-dot-color-operational: #22c55e;
  --widget-dot-color-degraded: #f97316;
  --widget-dot-color-outage: #ef4444;
  --widget-dot-pulse: true;             /* animated pulse ring on the dot */

  /* Background & border */
  --widget-background: #ffffff;
  --widget-border: 1px solid #e5e7eb;
  --widget-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  /* Typography */
  --widget-font-size: 13px;
  --widget-font-weight: 500;
  --widget-text-color: #111827;
}
PropertyWhat it controls
--widget-paddingInner spacing around the badge
--widget-border-radiusCorner rounding (9999px = pill)
--widget-gapSpace between the dot and the label
--widget-dot-sizeDiameter of the status dot
--widget-dot-color-operationalDot color when everything is up
--widget-dot-color-degradedDot color during degraded performance
--widget-dot-color-outageDot color during an outage
--widget-dot-pulseAnimated pulse ring around the dot
--widget-backgroundBadge background color
--widget-borderBadge border
--widget-shadowDrop shadow
--widget-font-sizeLabel text size
--widget-font-weightLabel text weight
--widget-text-colorLabel text color