Install Particle Rain in your project
Copy the shadcn CLI command below. Replace YOUR_LICENSE_KEY with the license key from your FutureUI account — or log in and it will auto-fill for you.
npx shadcn@latest add "https://futureui.studio/api/registry/particle-rain.json?key=YOUR_LICENSE_KEY"
Usage example
import { useRef } from 'react';
import { ParticleRain } from './ParticleRain';
export default function Example() {
const cardRef = useRef<HTMLDivElement>(null);
return (
<div style={{ position: 'relative' }}>
<ParticleRain
targetRef={cardRef}
accentColor="#a855f7"
direction="top"
particleCount={200}
intensity={0.7}
fadeStart={0.8}
/>
<div ref={cardRef} style={{
width: 320, height: 200, borderRadius: 16,
background: '#111', color: '#fff',
}}>
Your content here
</div>
</div>
);
}