HUD status
HUD status is a BJORK UI HUD module that ships two components: Status, a green, red, amber, or slate status badge drawn as an SVG tag with a scrambling monospace label, and StatusPanel, a compact monospace readout listing rows with colored state dots and an overall state line.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Requires @bjork-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { Status } from "@/components/bjork-ui/hud/status";export function Example() { return <Status variant="primary" text="ACTIVE" />;}- Show a compact, always-visible system or connection state (for example ONLINE, ACTIVE, or FAULT) as a tag in a dashboard header or HUD-style interface.
- Display a list of named subsystem readings with a state color per row (ok, waiting, fault) and an automatic overall summary, using StatusPanel.
- Use Status as a lightweight, decorative call-out for a live or pinned state, and use customColors to match a specific brand accent.
- Turn off motion with enableAnimations={false} on StatusPanel, or rely on the built-in reduced-motion handling, when the readout must stay static.
Examples
Status badge with variant
Renders a warning-colored status tag with a custom label and a slightly enlarged scale.
import { Status } from "@/components/bjork-ui/hud/status";export default function WarningStatusExample() { return <Status variant="warning" text="DEGRADED" scale={1.1} />;}Status badge with custom colors
Overrides the gradient, stroke, and label. Note that customColors.text is applied as a Tailwind class name, not as a color value.
import { Status } from "@/components/bjork-ui/hud/status";export default function CustomStatusExample() { return ( <Status text="OFFLINE" customColors={{ gradientStart: "#a78bfa", gradientEnd: "#5b21b6", stroke: "#a78bfa", text: "text-violet-300", }} /> );}StatusPanel with default rows
Renders the built-in readout with its default rows and an overall state line derived from those rows.
import { StatusPanel } from "@/components/bjork-ui/hud/status";export default function DefaultPanelExample() { return <StatusPanel title="Telemetry" />;}StatusPanel with custom rows and static motion
Passes typed rows with fault and waiting states and disables the pulse halo and entry animations.
import { StatusPanel, type StatusRow } from "@/components/bjork-ui/hud/status";const rows: StatusRow[] = [ { label: "Uplink", value: "OK", state: "ok" }, { label: "Queue", value: "312", state: "waiting" }, { label: "Disk", value: "97%", state: "fault" },];export default function CustomPanelExample() { return ( <StatusPanel title="Node 04" rows={rows} pulse={false} enableAnimations={false} /> );}API reference
Accessibility
- StatusPanel's root has role="status" and an aria-label in the form "<title>: <overall label>", so assistive technology announces the overall state when it changes.
- The state dots in StatusPanel are aria-hidden, so the state is conveyed by the text labels and values. Do not rely on color alone; the 'Nominal', 'Waiting', and 'Fault' words are in the source but the per-row state word is not rendered, so include a text cue in the row value when state must be understood without color.
- Status renders its label through HyperText, which scrambles letters on mount and on mouse enter. The scrambling is brief, but the final text is the real label, so screen readers receive the settled text.
- Light and dark palettes are chosen to keep label and stroke contrast readable on their backgrounds. Verify contrast when you pass customColors.
- Under reduced motion, Status skips its slide-in animation and StatusPanel skips entry animations and pulses, so the content is shown immediately.
- The SVG gradient id is fixed to activeSystemsGradient, so multiple Status instances on one page share the same gradient definition. The rendered output is the same, but avoid relying on per-instance gradient ids.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "HUD status" component (bjork-ui/hud-status) from its shadcn registry.1. Install it with: npx shadcn@latest add @bjork-ui/hud-status2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: className, variant, scale, text, customColors, className, title, rows, pulse, enableAnimations.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { Status } from "@/components/bjork-ui/hud/status";export function Example() { return <Status variant="primary" text="ACTIVE" />;}```Files & dependencies
- components/bjork-ui/hud/status.tsx→ @components/bjork-ui/hud/status.tsx
- components/ui/hyper-text.tsx→ @ui/hyper-text.tsx
- lib/utils.ts→ @lib/utils.ts
- components/bjork-ui/_core/palette.ts→ @components/bjork-ui/_core/palette.ts
- components/bjork-ui/_core/surface.ts→ @components/bjork-ui/_core/surface.ts
- hooks/use-is-dark-theme.ts→ @hooks/use-is-dark-theme.ts