{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text-shimmer",
  "title": "Text Shimmer",
  "description": "A light sweep that moves across text. CSS only — no dependencies.",
  "files": [
    {
      "path": "registry/mewo/ui/text-shimmer.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface TextShimmerProps extends Omit<React.ComponentProps<\"span\">, \"children\"> {\n  children: string\n  /** Seconds for one light sweep. */\n  duration?: number\n}\n\nexport function TextShimmer({ children, duration = 2, className, style, ...props }: TextShimmerProps) {\n  return (\n    <span\n      data-slot=\"text-shimmer\"\n      className={cn(\n        \"inline-block bg-[linear-gradient(110deg,var(--color-muted-foreground)_35%,var(--color-foreground)_50%,var(--color-muted-foreground)_65%)] bg-[length:200%_100%] bg-clip-text text-transparent\",\n        \"motion-safe:animate-[mewo-shimmer_var(--shimmer-duration)_linear_infinite]\",\n        className\n      )}\n      style={{ \"--shimmer-duration\": `${duration}s`, ...style } as React.CSSProperties}\n      {...props}\n    >\n      {children}\n    </span>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "css": {
    "@keyframes mewo-shimmer": {
      "from": {
        "background-position": "200% center"
      },
      "to": {
        "background-position": "0% center"
      }
    }
  },
  "categories": [
    "text"
  ],
  "type": "registry:ui"
}