{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "command-line",
  "title": "Command Line",
  "description": "A Command Line prompt component with Typing Animation & Click-to-Copy behavior.",
  "registryDependencies": [
    "@mobx-restful-shadcn/type-writer",
    "@mobx-restful-shadcn/copy-overlay"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/command-line/index.tsx",
      "content": "import { FC, HTMLAttributes } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { CopyOverlay } from \"../copy-overlay\";\nimport { TypeWriter } from \"../type-writer\";\n\nexport interface CommandLineProps\n  extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n  children: string;\n  intervalSeconds?: number;\n  copiedLabel?: string;\n}\n\nexport const CommandLine: FC<CommandLineProps> = ({\n  className,\n  children,\n  intervalSeconds = 0.1,\n  copiedLabel = \"Copied!\",\n  ...props\n}) => (\n  <div\n    className={cn(\n      \"group relative inline-flex max-w-full items-center gap-2 rounded-md border px-3 py-2 font-mono text-sm\",\n      className,\n    )}\n    {...props}\n  >\n    <span aria-hidden className=\"select-none text-muted-foreground\">\n      $\n    </span>\n    <kbd\n      aria-hidden\n      className=\"relative z-10 max-w-full overflow-x-auto whitespace-nowrap bg-transparent\"\n    >\n      <TypeWriter intervalSeconds={intervalSeconds}>{children}</TypeWriter>\n    </kbd>\n    <span className=\"sr-only\">{children}</span>\n    <CopyOverlay copiedLabel={copiedLabel}>{children}</CopyOverlay>\n  </div>\n);\n\nCommandLine.displayName = \"CommandLine\";\n",
      "type": "registry:component",
      "target": "@components/ui/mobx-restful-shadcn/command-line/index.tsx"
    }
  ],
  "type": "registry:component"
}