Skip to content

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

fix: cx set as cy in dot-pattern component (#112)

Jimin (Aaron) Son0d5fa9fe9d9f
diff --git a/registry/components/magicui/dot-pattern.tsx b/registry/components/magicui/dot-pattern.tsx
index 7aa0bc71..fb1b659b 100644
--- a/registry/components/magicui/dot-pattern.tsx
+++ b/registry/components/magicui/dot-pattern.tsx
@@ -44,7 +44,7 @@ export function DotPattern({
x={x}
y={y}
>
- <circle id="pattern-circle" cx={cy} cy={cy} r={cr} />
+ <circle id="pattern-circle" cx={cx} cy={cy} r={cr} />
</pattern>
</defs>
<rect width="100%" height="100%" strokeWidth={0} fill={`url(#${id})`} />