{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "black-box-xray-demo",
  "type": "registry:block",
  "title": "Black Box: X-ray",
  "description": "3D Product Explainer Box example, X-ray: A secrets vault for AI agents, with a switch that turns the sealed box to glass so you can see the core inside. A take on the 3D (three dimensional) and flow diagram (flowchart). Fits hero, features and CTA sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "features",
    "cta",
    "3d",
    "flow-diagram",
    "ai",
    "diagram"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/black-box#black-box-xray-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/black-box.json"
  ],
  "files": [
    {
      "path": "components/black-box-xray-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { BlackBox, type BlackBoxFace } from \"@/components/ui/black-box\";\n\n// A secrets vault for AI agents: sealed to them, see-through to you. The switch flips the box\n// between solid and glass.\nconst FACES: BlackBoxFace[] = [\n  {\n    id: \"seal\",\n    label: \"Encrypted\",\n    detail: \"AES-256 per workspace, with the keys in a hardware module you rotate yourself.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <rect x=\"5\" y=\"10.5\" width=\"14\" height=\"9.5\" rx=\"2\" />\n        <path d=\"M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5\" />\n      </svg>\n    ),\n  },\n  {\n    id: \"scope\",\n    label: \"Scoped\",\n    detail: \"An agent gets a token for one tool, for one run. Then it's gone.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <circle cx=\"8.5\" cy=\"12\" r=\"3.5\" />\n        <path d=\"M12 12h8M17 12v3M20 12v2\" />\n      </svg>\n    ),\n  },\n  {\n    id: \"log\",\n    label: \"Logged\",\n    detail: \"Every read is signed and in your SIEM within a second.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <path d=\"M7 4h7l4 4v12H7z\" />\n        <path d=\"M14 4v4h4M10 13h5M10 16.5h3\" />\n      </svg>\n    ),\n  },\n];\n\nconst MODES = [\n  { id: \"solid\", label: \"Sealed\" },\n  { id: \"glass\", label: \"X-ray\" },\n] as const;\n\nexport function BlackBoxXrayDemo() {\n  const [mode, setMode] = React.useState<\"solid\" | \"glass\">(\"solid\");\n\n  return (\n    <div className=\"w-full max-w-3xl text-center [--black-box-light:#19d48b]\">\n      <h3 className=\"text-2xl font-semibold tracking-[-0.03em] text-balance text-zinc-950 dark:text-white\">\n        Shut to your agents. Glass to you.\n      </h3>\n      <p className=\"mx-auto mt-2 max-w-md text-sm leading-6 text-pretty text-zinc-500 dark:text-zinc-400\">\n        Keel keeps every credential your agents use in one sealed box, and lets you see straight through it.\n      </p>\n\n      <div\n        role=\"group\"\n        aria-label=\"View\"\n        className=\"relative mx-auto mt-6 grid w-fit grid-cols-2 rounded-full bg-zinc-950/[0.05] p-1 text-[13px] font-medium ring-1 ring-zinc-950/[0.06] ring-inset dark:bg-white/[0.06] dark:ring-white/10\"\n      >\n        <span\n          aria-hidden\n          className={cn(\n            \"absolute inset-y-1 left-1 w-[calc(50%-4px)] rounded-full bg-white shadow-sm ring-1 ring-zinc-950/[0.06] transition-transform duration-200 ease-[cubic-bezier(0.23,1,0.32,1)] dark:bg-zinc-700 dark:ring-white/10\",\n            mode === \"glass\" && \"translate-x-full\",\n          )}\n        />\n        {MODES.map((option) => (\n          <button\n            key={option.id}\n            type=\"button\"\n            aria-pressed={mode === option.id}\n            onClick={() => setMode(option.id)}\n            className={cn(\n              \"relative rounded-full px-5 py-1.5 transition-colors duration-200 outline-none focus-visible:ring-2 focus-visible:ring-[#19d48b]\",\n              mode === option.id ? \"text-zinc-950 dark:text-white\" : \"text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200\",\n            )}\n          >\n            {option.label}\n          </button>\n        ))}\n      </div>\n\n      <BlackBox faces={FACES} material={mode} className=\"mt-2\" aria-label=\"How Keel keeps credentials\" />\n    </div>\n  );\n}\n"
    }
  ]
}