{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blur-text",
  "title": "Blur Text",
  "author": "VenusUI",
  "description": "Text whose words rise out of a blur one after another.",
  "files": [
    {
      "path": "registry/default/ui/blur-text.tsx",
      "content": "import * as React from \"react\"\n\ntype BlurTextElement = \"h1\" | \"h2\" | \"h3\" | \"p\" | \"span\"\n\ninterface BlurTextProps {\n  /** The text to reveal. */\n  text: string\n  /** Element to render. */\n  as?: BlurTextElement\n  /** Milliseconds before the first word starts. */\n  delay?: number\n  /** Milliseconds between words. */\n  stagger?: number\n  className?: string\n}\n\n/**\n * Text whose words rise out of a blur one after another. Pure CSS: it plays\n * once on load, shows without JavaScript, works in Server Components, and\n * appears straight away with reduced motion. The text stays plain text for\n * screen readers and search engines.\n */\nfunction BlurText({ text, as: Component = \"p\", delay = 0, stagger = 90, className }: BlurTextProps) {\n  const words = text.split(\" \")\n  return (\n    <Component data-slot=\"blur-text\" className={className}>\n      {words.map((word, i) => (\n        <React.Fragment key={`${word}-${i}`}>\n          <span\n            className=\"inline-block animate-blur-in motion-reduce:animate-none\"\n            style={{ animationDelay: `${delay + i * stagger}ms` }}\n          >\n            {word}\n          </span>\n          {i < words.length - 1 ? \" \" : null}\n        </React.Fragment>\n      ))}\n    </Component>\n  )\n}\n\nexport { BlurText, type BlurTextProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-blur-in": "blur-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both"
    }
  },
  "css": {
    "@keyframes blur-in": {
      "from": {
        "opacity": "0",
        "filter": "blur(12px)",
        "transform": "translateY(0.35em)"
      },
      "to": {
        "opacity": "1",
        "filter": "blur(0)",
        "transform": "none"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "text",
    "animations"
  ],
  "type": "registry:ui"
}