nyuchimzizi
Mzizi — an open-architecture project of the Bundu Foundation, operated and developed by Nyuchi. Built on the Five African Minerals palette.
Built by Nyuchi Africav4.0.39
Colored status dot with optional label. Uses semantic status tokens. Extracted from console-dashboard-page, infrastructure-page, and logs-page where colored dots indicated service health inline.
No interactive demo is registered for this component yet — the source is shown directly.
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
type StatusDotVariant = "success" | "warning" | "error" | "info" | "neutral" | "custom"
const VARIANT_COLORS: Record<Exclude<StatusDotVariant, "custom">, string> = {
success: "var(--status-success, #64FFDA)",
warning: "var(--status-warning, #FFD740)",
error: "var(--status-error, #FF5252)",
info: "var(--status-info, #00B0FF)",
neutral: "var(--status-neutral, currentColor)",
}
interface StatusDotProps {
variant?: StatusDotVariant
color?: string
label?: string
pulse?: boolean
size?: "sm" | "md" | "lg"
className?: string
}
const SIZE_MAP = { sm: "size-1.5", md: "size-2", lg: "size-2.5" }
export function StatusDot({ variant = "neutral", color, label, pulse = false, size = "md", className }: StatusDotProps) {
const dotColor = variant === "custom" && color ? color : VARIANT_COLORS[variant as Exclude<StatusDotVariant, "custom">]
return (
<span data-slot="status-dot" data-portal="https://design.nyuchi.com/components/status-dot" className={cn("inline-flex items-center gap-1.5", className)}>
<span className={cn("shrink-0 rounded-full", SIZE_MAP[size], pulse && "animate-pulse")} style={{ backgroundColor: dotColor }} />
{label && <span className="text-xs text-muted-foreground">{label}</span>}
</span>
)
}
export type { StatusDotVariant, StatusDotProps }The variants, sizes, and props surfaced by the registry. Each is sourced from the Supabase component_docs table.
Hit the registry API live and see the JSON the shadcn CLI consumes when it installs this component.
/api/v1/ui/status-dotnpx shadcn@latest add https://mzizi.dev/api/v1/ui/status-dot