Skip to content

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

Fix/grid pattern type (#351)

Benmehal Jorisb187c227a7d3
diff --git a/registry/default/magicui/grid-pattern.tsx b/registry/default/magicui/grid-pattern.tsx
index 7ee2dcad..150e6ac6 100644
--- a/registry/default/magicui/grid-pattern.tsx
+++ b/registry/default/magicui/grid-pattern.tsx
@@ -3,14 +3,14 @@ import { useId } from "react";
import { cn } from "@/lib/utils";
interface GridPatternProps {
- width?: any;
- height?: any;
- x?: any;
- y?: any;
+ width?: number;
+ height?: number;
+ x?: number;
+ y?: number;
squares?: Array<[x: number, y: number]>;
- strokeDasharray?: any;
+ strokeDasharray?: string;
className?: string;
- [key: string]: any;
+ [key: string]: unknown;
}
export function GridPattern({
@@ -18,7 +18,7 @@ export function GridPattern({
height = 40,
x = -1,
y = -1,
- strokeDasharray = 0,
+ strokeDasharray = "0",
squares,
className,
...props