StatusRow

StatusRow

HkStatusRow is the family's standard "a thing and its state" row: a 3px status rail on the left edge, an icon chip, a title with an optional status line stacked under it, and an optional trailing action. One anatomy serves every listing of members, services or install checklist entries, so a registration wizard's member list and a desktop services panel read the same way.

  • tone is the row's only state axis — neutral, info, success, warning, error. The host maps its domain states onto a tone; the row never guesses one.
  • absent is the quiet variant: a dashed edge and reduced opacity for an entry that is expected but not present.
  • When only the liveness of a service is needed, that is HkStatusPill; the row is for the case that also needs a name, prose and maybe a button.

Import

tsx
1
import { HkStatusRow } from "@celestia-island/hikari";
rust
1
2
use hikari_components::*;          // StatusRow, StatusRowTone
use hikari_components::prelude::*; // rsx!, VNode, Icon, MdiIcon

Tones

Five tones, neutral by default. The rail, the border and the chip wash are all selector-driven from the tone class, so the three channels never disagree. Vue HkStatusRow validates the tone against exactly these five strings; the Rust enum rejects anything else instead of coercing it.

gatewayNot classified yet
hubRunning 0.2.0
edge-1Online
edge-2High round-trip latency
edge-3Unreachable

The body, the extra slot and the action

title is the heading line and is always rendered; status is the prose line under it and only renders when it is non-empty (a whitespace-only string still counts as content, exactly like Vue's truthy check). The extra slot lands inside the body after the status line, and the action slot gets its own trailing box — which only appears when you actually pass something for it.

The Rust mirror takes all three slots as Option<Element> props: Vue gates the action wrapper on the action slot yielding a node, the mirror gates it on the prop being present — the same question asked of the host.

hubRunning 0.2.0 · 34 ms4 peers connected
edge-4Never registered
station-7

API

Vue

Props

NameTypeDefaultRequired
toneString as PropType<HkStatusRowTone>"neutral"—
titleString—✓
statusString""—
absentBooleanfalse—

Rust

Props — StatusRow

PropTypeDefaultDescription
toneStatusRowToneStatusRowTone::NeutralThe state axis (Vue default neutral).
titleString""Heading line — the member / service name (Vue: required title).
statusString""Status line under the title (Vue default "").
absentboolfalseQuiet variant: dashed edge + reduced opacity for absent rows.
iconOption<Element>NoneThe icon slot (the chip's content).
extraOption<Element>NoneThe extra slot, rendered inside the body after the status line.
actionOption<Element>NoneThe action slot; its wrapper only renders when this is Some.
classString""Vue attribute fallthrough onto the root <div>.

Accessibility

  • The row is a div with no group role: it is a visual card, and the reading order is the DOM order — icon, title, status, extra, action. Nothing in it is announced as a heading, so a host that lists many rows should put a real heading above the list.
  • The icon chip is decorative (aria-hidden), so the title is what names the entry. The action slot is the only focusable part of the row by default — pass a control with its own accessible name.
  • A tone is colour only: the words in status are what a screen-reader user reads to learn the state. Never let the tone be the sole carrier of "failed" or "warning".
  • absent is a visual quieting (dashed edge, reduced opacity). It does not hide the row from assistive technology, so keep the status line honest about why the entry is missing.

Related components

  • HkStatusPill — the one-line health readout for a single service.
  • HkIconChip — the chip mounted in this row's leading slot.
  • HkIconButton — the usual content of the trailing action slot.