{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hud-status-bar",
  "type": "registry:component",
  "title": "HUD Status Bar",
  "description": "A bottom bar with a key label, meta values split by hairlines and keyboard hints. Values tick up when they change.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hud",
    "status bar",
    "footer",
    "hud",
    "meta",
    "shortcuts",
    "keyboard"
  ],
  "docs": "https://hyperblur.dev/effects/hud-status-bar",
  "files": [
    {
      "path": "registry/hyperblur/hud-status-bar.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hud-status-bar.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HudStatusItem {\n  label: string;\n  value: string;\n}\n\nexport interface HudStatusHint {\n  keys: string;\n  label: string;\n}\n\nexport interface HudStatusBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n  title?: string;\n  code?: string;\n  items?: HudStatusItem[];\n  hints?: HudStatusHint[];\n  accent?: string;\n}\n\nconst defaultItems: HudStatusItem[] = [\n  { label: \"Stack\", value: \"WebGL\" },\n  { label: \"Licence\", value: \"MIT\" },\n  { label: \"Status\", value: \"Live\" },\n  { label: \"Added\", value: \"2026.10\" },\n];\n\nconst defaultHints: HudStatusHint[] = [\n  { keys: \"← →\", label: \"Browse\" },\n  { keys: \"/\", label: \"Search\" },\n  { keys: \"↵\", label: \"Open\" },\n];\n\nconst css = `\n.hb-ua6 {\n  --hb-ua6-accent: #ff4d4d;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  color: #ededed;\n}\n.hb-ua6 *, .hb-ua6 *::before, .hb-ua6 *::after { box-sizing: border-box; }\n.hb-ua6-in {\n  position: relative;\n  display: flex;\n  align-items: stretch;\n  min-height: 40px;\n  border-top: 1px solid rgba(255,255,255,.12);\n  border-bottom: 1px solid rgba(255,255,255,.06);\n  background: rgba(255,255,255,.025);\n  font-size: 10px;\n  letter-spacing: .14em;\n  text-transform: uppercase;\n}\n.hb-ua6-in::before {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: -1px;\n  width: 36px;\n  height: 1px;\n  background: var(--hb-ua6-accent);\n  box-shadow: 0 0 8px var(--hb-ua6-accent);\n}\n.hb-ua6-key {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  min-width: 0;\n  padding: 0 14px 0 10px;\n  border-right: 1px solid rgba(255,255,255,.1);\n}\n.hb-ua6-sq { flex: 0 0 auto; width: 6px; height: 6px; background: var(--hb-ua6-accent); box-shadow: 0 0 8px var(--hb-ua6-accent); }\n.hb-ua6-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; }\n.hb-ua6-code { color: #5f5f5f; white-space: nowrap; }\n.hb-ua6-item {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  gap: 3px;\n  min-width: 0;\n  padding: 0 12px;\n  border-right: 1px solid rgba(255,255,255,.1);\n}\n.hb-ua6-label { color: #5f5f5f; font-size: 9px; white-space: nowrap; }\n.hb-ua6-val { position: relative; display: block; overflow: hidden; height: 13px; line-height: 13px; white-space: nowrap; color: #ededed; }\n.hb-ua6-val span { display: block; animation: hb-ua6-up .42s cubic-bezier(.2, .8, .2, 1) both; }\n.hb-ua6-gap { flex: 1 1 auto; }\n.hb-ua6-hints { display: flex; align-items: center; gap: 12px; padding: 0 10px 0 12px; color: #8f8f8f; }\n.hb-ua6-hint { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }\n.hb-ua6-kbd {\n  display: inline-grid;\n  place-items: center;\n  min-width: 18px;\n  height: 16px;\n  padding: 0 4px;\n  border: 1px solid rgba(255,255,255,.18);\n  color: #ededed;\n  font: inherit;\n  font-size: 9px;\n  letter-spacing: .04em;\n}\n@keyframes hb-ua6-up {\n  from { transform: translateY(100%); opacity: 0; color: var(--hb-ua6-accent); }\n  60% { color: var(--hb-ua6-accent); }\n  to { transform: none; opacity: 1; }\n}\n@container (max-width: 640px) {\n  .hb-ua6-hint:nth-child(n+2) { display: none; }\n}\n@container (max-width: 470px) {\n  .hb-ua6-item:nth-of-type(n+5) { display: none; }\n  .hb-ua6-code { display: none; }\n}\n@container (max-width: 360px) {\n  .hb-ua6-item:nth-of-type(n+4) { display: none; }\n  .hb-ua6-hint span:last-child { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ua6-val span { animation: none; }\n}\n`;\n\nexport function HudStatusBar({\n  title = \"Ion Drift\",\n  code = \"EXP 014\",\n  items = defaultItems,\n  hints = defaultHints,\n  accent = \"#ff4d4d\",\n  className,\n  style,\n  ...rest\n}: HudStatusBarProps) {\n  return (\n    <div\n      className={[\"hb-ua6\", className].filter(Boolean).join(\" \")}\n      style={{ [\"--hb-ua6-accent\" as string]: accent, ...style }}\n      {...rest}\n    >\n      <style href=\"hb-hud-status-bar\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ua6-in\">\n        <div className=\"hb-ua6-key\">\n          <span className=\"hb-ua6-sq\" aria-hidden=\"true\" />\n          <span className=\"hb-ua6-title\">{title}</span>\n          {code ? <span className=\"hb-ua6-code\">{code}</span> : null}\n        </div>\n        {items.map((item) => (\n          <div key={item.label} className=\"hb-ua6-item\">\n            <span className=\"hb-ua6-label\">{item.label}</span>\n            <span className=\"hb-ua6-val\">\n              <span key={item.value}>{item.value}</span>\n            </span>\n          </div>\n        ))}\n        <span className=\"hb-ua6-gap\" />\n        {hints.length ? (\n          <div className=\"hb-ua6-hints\" aria-label=\"Keyboard shortcuts\">\n            {hints.map((h) => (\n              <span key={h.label} className=\"hb-ua6-hint\">\n                <kbd className=\"hb-ua6-kbd\">{h.keys}</kbd>\n                <span>{h.label}</span>\n              </span>\n            ))}\n          </div>\n        ) : null}\n      </div>\n    </div>\n  );\n}\n\nexport default HudStatusBar;\n"
    }
  ]
}