Particles
Particles renders a canvas effect that responds to its sizing and motion parameters.
Practical React example
Add a modest particle field behind a product illustration.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/particles.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.
Add a modest particle field behind a product illustration
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { Particles } from "@/components/magicui/particles"
export function ComponentExample() {
return (
<div className="relative h-[500px] w-full overflow-hidden">
<Particles />
</div>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Keep the parent’s dimensions explicit and tune quantity before increasing particle size or speed. Use the effect as a separate decorative layer.
Customization
- ParticlesProps.className
- Optional; string.
- ParticlesProps.quantity
- Optional; number.
- ParticlesProps.staticity
- Optional; number.
- ParticlesProps.ease
- Optional; number.
- ParticlesProps.size
- Optional; number.
- ParticlesProps.refresh
- Optional; boolean.
- ParticlesProps.color
- Optional; string.
- ParticlesProps.vx
- Optional; number.
- ParticlesProps.vy
- Optional; number.
Integration notes
- Do not place the only copy of information inside the canvas.
- Test reduced motion, pointer behavior and rendering cost when the section is off-screen or hidden.
- The pinned TypeScript source names NodeJS.Timeout. Include compatible Node type declarations in a TypeScript setup, or deliberately adapt that timer annotation to ReturnType<typeof setTimeout> for a browser-only project.
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.