Spaces:
Sleeping
Sleeping
| "use client"; | |
| import { cn } from "@/lib/utils"; | |
| export function DotPattern({ | |
| width = 24, | |
| height = 24, | |
| cx = 1, | |
| cy = 1, | |
| cr = 1, | |
| className, | |
| }: { | |
| width?: number; | |
| height?: number; | |
| cx?: number; | |
| cy?: number; | |
| cr?: number; | |
| className?: string; | |
| }) { | |
| const id = "dot-pattern"; | |
| return ( | |
| <svg | |
| aria-hidden | |
| className={cn("pointer-events-none absolute inset-0 h-full w-full", className)} | |
| > | |
| <defs> | |
| <pattern id={id} width={width} height={height} patternUnits="userSpaceOnUse"> | |
| <circle cx={cx} cy={cy} r={cr} /> | |
| </pattern> | |
| </defs> | |
| <rect width="100%" height="100%" strokeWidth={0} fill={`url(#${id})`} /> | |
| </svg> | |
| ); | |
| } | |