{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text-shimmer",
  "title": "Text Shimmer",
  "description": "Text with an animated gradient fill that shimmers.",
  "dependencies": [
    "@vllnt/ui@^0.2.1"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/text-shimmer/text-shimmer.tsx",
      "content": "import * as React from \"react\";\n\nimport { cn } from \"@vllnt/ui\";\n\n/** Props for {@link TextShimmer}. */\nexport type TextShimmerProps = React.ComponentPropsWithoutRef<\"span\"> & {\n  /** Content rendered with the moving gradient fill. */\n  children: React.ReactNode;\n  /** Seconds for one gradient sweep. Defaults to `2`. */\n  duration?: number;\n};\n\n/**\n * Text filled with a gradient that drifts across the glyphs on a loop.\n *\n * Respects `prefers-reduced-motion`: the gradient holds still.\n *\n * @example\n * ```tsx\n * <TextShimmer>Premium</TextShimmer>\n * ```\n */\nexport const TextShimmer = ({\n  children,\n  className,\n  duration = 2,\n  ref,\n  style,\n  ...props\n}: TextShimmerProps & { ref?: React.Ref<HTMLSpanElement> }) => {\n  return (\n    <span\n      className={cn(\n        \"inline-block animate-[vllnt-text-shimmer_linear_infinite] bg-clip-text text-transparent motion-reduce:animate-none\",\n        className,\n      )}\n      ref={ref}\n      style={{\n        animationDuration: `${duration}s`,\n        background:\n          \"linear-gradient(90deg, oklch(var(--muted-foreground) / 0.5), oklch(var(--foreground)), oklch(var(--muted-foreground) / 0.5))\",\n        backgroundSize: \"200% auto\",\n        ...style,\n      }}\n      {...props}\n    >\n      {children}\n    </span>\n  );\n};\nTextShimmer.displayName = \"TextShimmer\";\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.2.1",
  "stability": "stable"
}
