{
  "name": "typing-indicator",
  "type": "registry:ui",
  "framework": "react",
  "title": "Typing Indicator",
  "description": "Three bouncing dots with a label that signals someone is typing.",
  "files": [
    {
      "path": "ui/typing-indicator.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst typingKeyframes = `\n@keyframes newt-typing-bounce {\n  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }\n  30% { transform: translateY(-3px); opacity: 1; }\n}`\n\nexport interface TypingIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** Accessible label announced to screen readers. */\n  label?: string\n}\n\nconst TypingIndicator = React.forwardRef<HTMLDivElement, TypingIndicatorProps>(\n  ({ className, label = \"Someone is typing\", children, ...props }, ref) => (\n    <div\n      ref={ref}\n      role=\"status\"\n      aria-label={label}\n      className={cn(\n        \"inline-flex items-center gap-2 text-[13px] text-newt-text-muted\",\n        className\n      )}\n      {...props}\n    >\n      <style>{typingKeyframes}</style>\n      <TypingIndicatorDots />\n      {children}\n    </div>\n  )\n)\nTypingIndicator.displayName = \"TypingIndicator\"\n\nconst TypingIndicatorDots = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"inline-flex gap-[3px]\", className)}\n    aria-hidden=\"true\"\n    {...props}\n  >\n    {[0, 0.15, 0.3].map((delay) => (\n      <span\n        key={delay}\n        className=\"h-[6px] w-[6px] rounded-full bg-newt-text-muted animate-[newt-typing-bounce_1.2s_ease-in-out_infinite] motion-reduce:animate-none motion-reduce:opacity-80\"\n        style={{ animationDelay: `${delay}s` }}\n      />\n    ))}\n  </div>\n))\nTypingIndicatorDots.displayName = \"TypingIndicatorDots\"\n\nexport { TypingIndicator, TypingIndicatorDots }\n",
      "type": "registry:ui"
    }
  ]
}