UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: update shimmer button styles again
Dillion Verma64ab9e496e61
diff --git a/registry/components/magicui/shimmer-button.tsx b/registry/components/magicui/shimmer-button.tsxindex 814d3a06..93c4cc55 100644--- a/registry/components/magicui/shimmer-button.tsx+++ b/registry/components/magicui/shimmer-button.tsx@@ -1,7 +1,7 @@import { cn } from "@/lib/utils";import React, { CSSProperties } from "react";-interface ShimmerButtonProps+export interface ShimmerButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement> {shimmerColor?: string;shimmerSize?: string;@@ -10,7 +10,6 @@ interface ShimmerButtonPropsbackground?: string;className?: string;children?: React.ReactNode;- [key: string]: any; // ...props}const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(@@ -40,7 +39,7 @@ const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(} as CSSProperties}className={cn(- "group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap px-6 py-4 text-white [background:var(--bg)] [border-radius:var(--radius)] dark:text-black",+ "group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)] dark:text-black",className,)}ref={ref}@@ -49,13 +48,12 @@ const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>({/* spark container */}<divclassName={cn(- "blur-lg",- "-z-30",- "absolute inset-0 overflow-visible border border-white [container-type:size]",+ "-z-30 blur-md",+ "absolute inset-0 overflow-visible [container-type:size]",)}>{/* spark */}- <div className="absolute inset-0 h-[100cqh] animate-slide [aspect-ratio:1] [border-radius:0] [mask:none] ">+ <div className="absolute inset-0 h-[100cqh] animate-slide [aspect-ratio:1] [border-radius:0] [mask:none]">{/* spark before */}<div className="absolute inset-[-100%] w-auto rotate-0 animate-spin [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,hsl(0_0%_100%/1)_var(--spread),transparent_var(--spread))] [translate:0_0]" /></div>@@ -64,7 +62,7 @@ const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>({children}{/* Highlight */}- <div className="absolute bottom-0 left-1/2 h-2/5 w-3/4 -translate-x-1/2 rounded-full bg-white/10 opacity-50 blur-lg transition-all duration-300 ease-in-out group-hover:h-3/5 group-hover:opacity-100"></div>+ <div className="absolute bottom-0 left-1/2 h-2/5 w-3/4 -translate-x-1/2 rounded-full bg-white/10 opacity-50 blur-lg transition-all duration-300 ease-in-out group-hover:h-3/5 group-hover:opacity-100" />{/* backdrop */}<div