Skip to content
العربية
Feedback

StatusDot

Green is allowed only on status dots (here and in StatusBadge). Always with text. Text with a link or a time inside stays one text.

import { StatusDot } from "@percentsa/ui";

Examples

LivePausedDegradedDownAgent:
Code
export function StatusDotExample() {
  const t = useT();
  return (
    <Stack gap={2}>
      <StatusDot status="live">{t("Live", "يعمل")}</StatusDot>
      <StatusDot status="idle">{t("Paused", "متوقف مؤقتًا")}</StatusDot>
      <StatusDot status="warning">{t("Degraded", "أداء منخفض")}</StatusDot>
      <StatusDot status="danger">{t("Down", "متوقف")}</StatusDot>
      <StatusDot status="live">{t("Agent:", "الوكيل:")} <TimeText value="2026-09-27T12:40:00Z" ago now={new Date("2026-09-27T12:45:00Z")} /></StatusDot>
    </Stack>
  );
}