UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: style fixes
Dillion Vermabaf79af5194e
diff --git a/registry/components/example/shimmer-button-demo.tsx b/registry/components/example/shimmer-button-demo.tsxindex ebaf101e..6f390c41 100644--- a/registry/components/example/shimmer-button-demo.tsx+++ b/registry/components/example/shimmer-button-demo.tsx@@ -5,7 +5,7 @@ export default function ShimmerButtonDemo() {return (<div className="relative flex h-full w-full items-center justify-center rounded-lg border bg-background p-20 shadow-2xl"><ShimmerButton shadowEnabled={false}>- <span className="pointer-events-none z-[1] whitespace-pre-wrap bg-gradient-to-b from-black from-30% to-gray-300/80 bg-clip-text text-center text-2xl font-semibold leading-none tracking-tight text-transparent dark:from-white dark:to-slate-900/10">+ <span className="whitespace-pre-wrap bg-gradient-to-b from-black from-30% to-gray-300/80 bg-clip-text text-center text-2xl font-semibold leading-none tracking-tight text-white dark:from-white dark:to-slate-900/10 dark:text-transparent">Shimmer Button</span></ShimmerButton>diff --git a/registry/components/magicui/shimmer-button.tsx b/registry/components/magicui/shimmer-button.tsxindex 60108b02..b19118d0 100644--- a/registry/components/magicui/shimmer-button.tsx+++ b/registry/components/magicui/shimmer-button.tsx@@ -20,7 +20,7 @@ const ShimmerButton = ({shimmerSize = "0.1em",shimmerDuration = "1.5s",borderRadius = "100px",- background = "radial-gradient(ellipse 80% 50% at 50% 120%,rgba(62, 61, 117),rgba(13, 13, 33))",+ background = "radial-gradient(ellipse 80% 50% at 50% 120%,rgba(62, 61, 117),rgba(18, 18, 38))",className,children,}: ShimmerButtonProps) => {@@ -45,7 +45,7 @@ const ShimmerButton = ({)}>{/* spark container */}- <div className="absolute inset-0 overflow-visible [container-type:size]">+ <div className="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] ">{/* spark before */}@@ -56,7 +56,8 @@ const ShimmerButton = ({{/* backdrop */}<div className="absolute [background:var(--bg)] [border-radius:var(--radius)] [inset:var(--cut)]" />{/* content */}- {children}++ <div className="pointer-events-none relative z-10">{children}</div></button>);};