AsterUIDocsv1.0.2

Docs / Component reference

StatusDot & UptimeBar

Place a status marker beside its text label, or use a strip to show a service's recent history.

Status dot example

Install

sh
npx @fierst/ui@1.0.2 add status-dot

Registry dependencies: theme.

Exports from ./ui/status-dot: StatusDot, UptimeBar.

Download the registry source for status-dot 1.0.2.

API contracts

ts
export function StatusDot({
  status = 'operational',
  label,
  pulse = true,
  class: extraClass,
}: {
  status?: 'operational' | 'degraded' | 'outage' | 'idle';
  label?: string;
  pulse?: boolean;
  class?: string;
})

export function UptimeBar({
  name,
  uptimePct = '99.98%',
  days,
  class: extraClass,
}: {
  name: string;
  uptimePct?: string;
  days: readonly { label: string; status: 'operational' | 'degraded' | 'outage' | 'empty' }[];
  class?: string;
})