{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "shiny-button", "title": "Shiny Button", "description": "A button with a smooth shiny animation effect.", "dependencies": [ "motion" ], "registryDependencies": [ "button" ], "files": [ { "path": "registry/new-york/components/shiny-button/shiny-button.tsx", "type": "registry:component", "content": "\"use client\";\n\nimport React from \"react\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/ui/button\";\n\nexport interface ShinyButtonProps extends React.ComponentPropsWithoutRef {\n shimmerWidth?: number;\n duration?: number;\n}\n\nconst ShinyButton = React.forwardRef(\n ({ className, children, duration = 2, shimmerWidth = 100, ...props }, ref) => {\n return (\n <>\n \n\n \n \n \n {children}\n \n \n \n \n \n );\n }\n);\n\nShinyButton.displayName = \"ShinyButton\";\n\nexport { ShinyButton };\n" } ], "type": "registry:component" }