{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "dot-pattern", "title": "Dot Pattern", "description": "Repeating radial-dot SVG background pattern with radial fade mask", "files": [ { "path": "registry/pioneerui/dot-pattern.tsx", "content": "import React, { useId } from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface DotPatternProps extends React.SVGAttributes {\n width?: number\n height?: number\n x?: number\n y?: number\n cx?: number\n cy?: number\n cr?: number\n className?: string\n gapX?: number\n gapY?: number\n}\n\nexport function DotPattern({\n width = 16,\n height = 16,\n x = 0,\n y = 0,\n cx = 1,\n cy = 1,\n cr = 1,\n className,\n gapX,\n gapY,\n ...props\n}: DotPatternProps) {\n const id = useId()\n const patternWidth = gapX ? width + gapX : width\n const patternHeight = gapY ? height + gapY : height\n\n return (\n \n \n \n \n \n \n \n \n )\n}\n\nexport interface DotPatternBackgroundProps extends React.HTMLAttributes {\n children?: React.ReactNode\n dotClassName?: string\n maskClassName?: string\n}\n\nexport function DotPatternBackground({\n children,\n className,\n dotClassName,\n maskClassName,\n ...props\n}: DotPatternBackgroundProps) {\n return (\n \n \n
{children}
\n \n )\n}\n", "type": "registry:ui", "target": "components/pioneerui/dot-pattern.tsx" } ], "type": "registry:ui" }