{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hud-detail-panel",
  "type": "registry:component",
  "title": "HUD Detail Panel",
  "description": "A framed detail card with a kicker, a large title, a short description, a meta grid and a row of bracket buttons.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hud",
    "detail",
    "panel",
    "card",
    "hud",
    "meta",
    "actions"
  ],
  "docs": "https://hyperblur.dev/effects/hud-detail-panel",
  "files": [
    {
      "path": "registry/hyperblur/hud-detail-panel.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hud-detail-panel.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HudDetailMeta {\n  label: string;\n  value: string;\n}\n\nexport interface HudDetailAction {\n  id: string;\n  label: string;\n  primary?: boolean;\n}\n\nexport interface HudDetailPanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n  kicker?: string;\n  index?: string;\n  title?: string;\n  description?: string;\n  meta?: HudDetailMeta[];\n  actions?: HudDetailAction[];\n  onAction?: (id: string) => void;\n  accent?: string;\n}\n\nconst defaultMeta: HudDetailMeta[] = [\n  { label: \"Stack\", value: \"WebGL\" },\n  { label: \"Licence\", value: \"MIT\" },\n  { label: \"Status\", value: \"Live\" },\n  { label: \"Added\", value: \"2026.10\" },\n];\n\nconst defaultActions: HudDetailAction[] = [\n  { id: \"open\", label: \"Open\", primary: true },\n  { id: \"source\", label: \"Source\" },\n  { id: \"share\", label: \"Share\" },\n];\n\nconst css = `\n.hb-ua7 {\n  --hb-ua7-accent: #ff4d4d;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  color: #ededed;\n  font-family: inherit;\n}\n.hb-ua7 *, .hb-ua7 *::before, .hb-ua7 *::after { box-sizing: border-box; }\n.hb-ua7-in {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  padding: 14px 16px;\n  border: 1px solid rgba(255,255,255,.12);\n  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), #0c0c0c;\n}\n.hb-ua7-k { position: absolute; width: 10px; height: 10px; border: 0 solid rgba(255,255,255,.6); pointer-events: none; }\n.hb-ua7-k-tl { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; border-color: var(--hb-ua7-accent); }\n.hb-ua7-k-tr { right: -1px; top: -1px; border-right-width: 1px; border-top-width: 1px; }\n.hb-ua7-k-bl { left: -1px; bottom: -1px; border-left-width: 1px; border-bottom-width: 1px; }\n.hb-ua7-k-br { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }\n.hb-ua7-mono {\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 10px;\n  letter-spacing: .14em;\n  text-transform: uppercase;\n}\n.hb-ua7-top { display: flex; justify-content: space-between; gap: 10px; color: #8f8f8f; }\n.hb-ua7-top span:first-child { color: var(--hb-ua7-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-ua7-title {\n  margin: 0;\n  font-size: 20px;\n  font-weight: 600;\n  line-height: 1.1;\n  letter-spacing: -.005em;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.hb-ua7-desc {\n  margin: 0;\n  font-size: 12px;\n  line-height: 1.45;\n  color: #a1a1a1;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n}\n.hb-ua7-grid {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  margin: 4px 0 4px;\n  border-top: 1px solid rgba(255,255,255,.08);\n  border-left: 1px solid rgba(255,255,255,.08);\n}\n.hb-ua7-cell {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 8px;\n  min-width: 0;\n  height: 23px;\n  padding: 0 8px;\n  border-right: 1px solid rgba(255,255,255,.08);\n  border-bottom: 1px solid rgba(255,255,255,.08);\n}\n.hb-ua7-cell dt { margin: 0; color: #5f5f5f; font-size: 9px; }\n.hb-ua7-cell dd { margin: 0; color: #ededed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n@container (min-width: 520px) {\n  .hb-ua7-grid { grid-template-columns: repeat(4, 1fr); }\n  .hb-ua7-cell { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; height: 44px; }\n  .hb-ua7-title { font-size: 26px; }\n}\n.hb-ua7-actions { display: flex; flex-wrap: wrap; gap: 6px; }\n.hb-ua7-btn {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  height: 26px;\n  margin: 0;\n  padding: 0 12px;\n  border: 1px solid rgba(255,255,255,.18);\n  border-radius: 0;\n  background: transparent;\n  color: #ededed;\n  font: inherit;\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 10px;\n  letter-spacing: .14em;\n  text-transform: uppercase;\n  cursor: pointer;\n  transition: border-color .18s ease, background-color .18s ease, box-shadow .2s ease, transform .1s ease;\n}\n.hb-ua7-btn::before { content: \"[\"; color: #5f5f5f; }\n.hb-ua7-btn::after { content: \"]\"; color: #5f5f5f; }\n.hb-ua7-btn:hover { border-color: color-mix(in srgb, var(--hb-ua7-accent) 70%, transparent); background: color-mix(in srgb, var(--hb-ua7-accent) 8%, transparent); }\n.hb-ua7-btn:active { transform: translateY(1px); }\n.hb-ua7-btn:focus-visible { outline: 1px solid #ededed; outline-offset: 2px; }\n.hb-ua7-btn[data-primary=\"true\"] {\n  border-color: var(--hb-ua7-accent);\n  background: var(--hb-ua7-accent);\n  color: #fff;\n  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--hb-ua7-accent) 80%, transparent);\n}\n.hb-ua7-btn[data-primary=\"true\"]::before, .hb-ua7-btn[data-primary=\"true\"]::after { color: rgba(255,255,255,.7); }\n.hb-ua7-btn[data-primary=\"true\"]:hover { background: color-mix(in srgb, var(--hb-ua7-accent) 85%, #fff); }\n@media (prefers-reduced-motion: reduce) {\n  .hb-ua7-btn { transition: none; }\n}\n`;\n\nexport function HudDetailPanel({\n  kicker = \"Experiment / Shader\",\n  index = \"014\",\n  title = \"Ion Drift\",\n  description = \"Charged particles bending around the cursor in a slow magnetic field.\",\n  meta = defaultMeta,\n  actions = defaultActions,\n  onAction,\n  accent = \"#ff4d4d\",\n  className,\n  style,\n  ...rest\n}: HudDetailPanelProps) {\n  return (\n    <div\n      className={[\"hb-ua7\", className].filter(Boolean).join(\" \")}\n      style={{ [\"--hb-ua7-accent\" as string]: accent, ...style }}\n      {...rest}\n    >\n      <style href=\"hb-hud-detail-panel\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ua7-in\">\n        <span className=\"hb-ua7-k hb-ua7-k-tl\" aria-hidden=\"true\" />\n        <span className=\"hb-ua7-k hb-ua7-k-tr\" aria-hidden=\"true\" />\n        <span className=\"hb-ua7-k hb-ua7-k-bl\" aria-hidden=\"true\" />\n        <span className=\"hb-ua7-k hb-ua7-k-br\" aria-hidden=\"true\" />\n        <div className=\"hb-ua7-mono hb-ua7-top\">\n          <span>{kicker}</span>\n          {index ? <span>{index}</span> : null}\n        </div>\n        <h3 className=\"hb-ua7-title\">{title}</h3>\n        {description ? <p className=\"hb-ua7-desc\">{description}</p> : null}\n        {meta.length ? (\n          <dl className=\"hb-ua7-mono hb-ua7-grid\">\n            {meta.map((m) => (\n              <div key={m.label} className=\"hb-ua7-cell\">\n                <dt>{m.label}</dt>\n                <dd>{m.value}</dd>\n              </div>\n            ))}\n          </dl>\n        ) : null}\n        {actions.length ? (\n          <div className=\"hb-ua7-actions\">\n            {actions.map((a) => (\n              <button\n                key={a.id}\n                type=\"button\"\n                className=\"hb-ua7-btn\"\n                data-primary={a.primary ? \"true\" : \"false\"}\n                onClick={() => onAction?.(a.id)}\n              >\n                {a.label}\n              </button>\n            ))}\n          </div>\n        ) : null}\n      </div>\n    </div>\n  );\n}\n\nexport default HudDetailPanel;\n"
    }
  ]
}