{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"sheen-type","type":"registry:ui","title":"Sheen Type","description":"A soft highlight sweeps across the text on a loop.","dependencies":[],"registryDependencies":[],"files":[{"path":"registry/ui/sheen-type.tsx","type":"registry:ui","content":"\"use client\";\n\nconst css = `@keyframes sheen-type{from{background-position:150% 0}to{background-position:-50% 0}}`;\n\nexport interface SheenTypeProps {\n  text: string;\n  /** Seconds per sweep. */\n  speed?: number;\n  color?: string;\n  shineColor?: string;\n  className?: string;\n}\n\nexport function SheenType({\n  text,\n  speed = 3,\n  color = \"#8a8a8a\",\n  shineColor = \"#ffffff\",\n  className,\n}: SheenTypeProps) {\n  return (\n    <>\n      <style href=\"sheen-type\" precedence=\"default\">\n        {css}\n      </style>\n      <span\n        className={className}\n        style={{\n          display: \"inline-block\",\n          color: \"transparent\",\n          backgroundImage: `linear-gradient(110deg, ${color} 40%, ${shineColor} 50%, ${color} 60%)`,\n          backgroundSize: \"200% 100%\",\n          WebkitBackgroundClip: \"text\",\n          backgroundClip: \"text\",\n          animation: `sheen-type ${speed}s linear infinite`,\n        }}\n      >\n        {text}\n      </span>\n    </>\n  );\n}\n"}]}