{
  "name": "bot-command-card",
  "type": "registry:ui",
  "framework": "react",
  "title": "Bot Command Card",
  "description": "A card documenting a slash command, its owning bot and its typed options.",
  "registryDependencies": [
    "@newtui/badge"
  ],
  "files": [
    {
      "path": "ui/bot-command-card.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst BotCommandCard = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"max-w-[480px] rounded-[var(--newt-radius-md)] border border-newt-border bg-newt-bg-elevated p-4\",\n      className\n    )}\n    {...props}\n  />\n))\nBotCommandCard.displayName = \"BotCommandCard\"\n\nconst BotCommandCardHeader = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"mb-2 flex items-center justify-between gap-3\", className)}\n    {...props}\n  />\n))\nBotCommandCardHeader.displayName = \"BotCommandCardHeader\"\n\nexport interface BotCommandCardNameProps extends React.ComponentProps<\"span\"> {\n  /** Render the muted leading slash. Defaults to true. */\n  slash?: boolean\n}\n\nconst BotCommandCardName = React.forwardRef<\n  HTMLSpanElement,\n  BotCommandCardNameProps\n>(({ className, slash = true, children, ...props }, ref) => (\n  <span\n    ref={ref}\n    className={cn(\n      \"inline-flex items-center gap-1 font-[family-name:var(--newt-font-mono)] text-sm font-semibold text-newt-text-link\",\n      className\n    )}\n    {...props}\n  >\n    {slash ? (\n      <span className=\"font-normal text-newt-text-secondary\">/</span>\n    ) : null}\n    {children}\n  </span>\n))\nBotCommandCardName.displayName = \"BotCommandCardName\"\n\nconst BotCommandCardDescription = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"mb-3 text-[13px] leading-normal text-newt-text-secondary\",\n      className\n    )}\n    {...props}\n  />\n))\nBotCommandCardDescription.displayName = \"BotCommandCardDescription\"\n\nconst BotCommandCardOptions = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex flex-col gap-1.5\", className)}\n    {...props}\n  />\n))\nBotCommandCardOptions.displayName = \"BotCommandCardOptions\"\n\nexport interface BotCommandCardOptionProps extends Omit<\n  React.ComponentProps<\"div\">,\n  \"children\"\n> {\n  /** Option name, rendered in monospace. */\n  name: string\n  /** Option type, e.g. `STRING`, `USER`, `INTEGER`. */\n  type?: string\n  /** Marks the option as required. */\n  required?: boolean\n  /** Label used for the required marker. */\n  requiredLabel?: string\n  /** Human readable description. */\n  description?: React.ReactNode\n}\n\nconst BotCommandCardOption = React.forwardRef<\n  HTMLDivElement,\n  BotCommandCardOptionProps\n>(\n  (\n    {\n      className,\n      name,\n      type,\n      required = false,\n      requiredLabel = \"required\",\n      description,\n      ...props\n    },\n    ref\n  ) => (\n    <div\n      ref={ref}\n      className={cn(\"flex items-baseline gap-2.5 text-xs\", className)}\n      {...props}\n    >\n      <span className=\"shrink-0 font-[family-name:var(--newt-font-mono)] font-semibold text-newt-text-primary\">\n        {name}\n      </span>\n      {type ? (\n        <span className=\"shrink-0 font-[family-name:var(--newt-font-mono)] text-[11px] text-newt-text-secondary\">\n          {type}\n        </span>\n      ) : null}\n      {required ? (\n        <span className=\"shrink-0 text-[11px] font-bold text-newt-text-secondary\">\n          {requiredLabel}\n        </span>\n      ) : null}\n      {description ? (\n        <span className=\"text-newt-text-secondary\">{description}</span>\n      ) : null}\n    </div>\n  )\n)\nBotCommandCardOption.displayName = \"BotCommandCardOption\"\n\nexport {\n  BotCommandCard,\n  BotCommandCardHeader,\n  BotCommandCardName,\n  BotCommandCardDescription,\n  BotCommandCardOptions,\n  BotCommandCardOption,\n}\n",
      "type": "registry:ui"
    }
  ]
}