Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: docs fix

Dillion Verma183f43d70e41
diff --git a/components/component-wrapper.tsx b/components/component-wrapper.tsx
index baa35aa0..8d9315e3 100644
--- a/components/component-wrapper.tsx
+++ b/components/component-wrapper.tsx
@@ -16,7 +16,7 @@ const ComponentWrapper = ({ className, children }: ComponentWrapperProps) => {
className={cn(
`absolute inset-0 size-full`,
`bg-[radial-gradient(#00000055_1px,transparent_1px)] dark:bg-[radial-gradient(#ffffff22_1px,transparent_1px)]`,
- "lab-bg [background-size:16px_16px]",
+ "lab-bg pointer-events-none [background-size:16px_16px]",
)}
/>
{children}
diff --git a/registry/default/magicui/hyper-text.tsx b/registry/default/magicui/hyper-text.tsx
index 2bb935a2..0ac42eca 100644
--- a/registry/default/magicui/hyper-text.tsx
+++ b/registry/default/magicui/hyper-text.tsx
@@ -54,7 +54,7 @@ export default function HyperText({
const elementRef = useRef<HTMLElement>(null);
const handleAnimationTrigger = () => {
- if (animateOnHover) {
+ if (animateOnHover && !isAnimating) {
iterationCount.current = 0;
setIsAnimating(true);
}