UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
Fix css conflicting (#398)
Chuang Yubc60e6d6e7c1
diff --git a/registry/default/magicui/shine-border.tsx b/registry/default/magicui/shine-border.tsxindex c13b354f..53b12a85 100644--- a/registry/default/magicui/shine-border.tsx+++ b/registry/default/magicui/shine-border.tsx@@ -39,7 +39,7 @@ export default function ShineBorder({} as React.CSSProperties}className={cn(- "relative grid min-h-[60px] w-fit min-w-[300px] place-items-center rounded-[--border-radius] bg-white p-3 text-black dark:bg-black dark:text-white",+ "relative min-h-[60px] w-fit min-w-[300px] place-items-center rounded-[--border-radius] bg-white p-3 text-black dark:bg-black dark:text-white",className,)}>@@ -53,7 +53,7 @@ export default function ShineBorder({"--background-radial-gradient": `radial-gradient(transparent,transparent, ${color instanceof Array ? color.join(",") : color},transparent,transparent)`,} as React.CSSProperties}- className={`pointer-events-none before:bg-shine-size before:absolute before:inset-0 before:aspect-square before:size-full before:rounded-[--border-radius] before:p-[--border-width] before:will-change-[background-position] before:content-[""] before:![-webkit-mask-composite:xor] before:![mask-composite:exclude] before:[background-image:--background-radial-gradient] before:[background-size:300%_300%] before:[mask:--mask-linear-gradient] motion-safe:before:animate-shine`}+ className={`pointer-events-none before:bg-shine-size before:absolute before:inset-0 before:size-full before:rounded-[--border-radius] before:p-[--border-width] before:will-change-[background-position] before:content-[""] before:![-webkit-mask-composite:xor] before:![mask-composite:exclude] before:[background-image:--background-radial-gradient] before:[background-size:300%_300%] before:[mask:--mask-linear-gradient] motion-safe:before:animate-shine`}></div>{children}</div>