Dot Pattern
Dot Pattern renders a configurable SVG pattern with an optional glow treatment.
Practical React example
Place a restrained dotted texture behind a section’s foreground content.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/dot-pattern.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Place a restrained dotted texture behind a section’s foreground content
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { DotPattern } from "@/components/magicui/dot-pattern"
export function ComponentExample() {
return (
<div className="relative h-[500px] w-full overflow-hidden">
<DotPattern />
</div>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Use the parent section to define the visible area and choose spacing and dot radius that remain subtle at different screen sizes.
Customization
- DotPatternProps.width
- Optional; number.
- DotPatternProps.height
- Optional; number.
- DotPatternProps.x
- Optional; number.
- DotPatternProps.y
- Optional; number.
- DotPatternProps.cx
- Optional; number.
- DotPatternProps.cy
- Optional; number.
- DotPatternProps.cr
- Optional; number.
- DotPatternProps.className
- Optional; string.
- DotPatternProps.glow
- Optional; boolean.
Integration notes
- The pattern is decoration, so give information-bearing charts or maps their own semantic representation.
- Check that glow and masking do not reduce text contrast.
Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.