Particles
A high-performance interactive particle system background. Particles respond to mouse movement and feature smooth alpha transitions, creating a dynamic and immersive environment for futuristic UIs.
ui Premium Plan
Availability
Included in Premium Plans
This flagship component is part of Future UI's monthly & yearly Premium plans and is not distributed via the free public CLI.
Import
import { Particles } from "@/components/ui/particles"
Color Theme
Named Keys & Props
Pass these exact named keys as props on <Particles />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)Usage Example
A basic implementation example to get you started.
Example Implementation
import { Particles } from "@/components/ui/particles";
export default function Example() {
return (
<div className="relative w-full h-screen bg-black">
<Particles
className="absolute inset-0"
quantity={150}
color="default"
/>
<div className="relative z-10 flex items-center justify-center h-full">
<h1 className="text-white text-4xl">Interactive Particles</h1>
</div>
</div>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Canvas-based rendering for high performance even with many particles.
- ◆Interactive magnetism: particles subtly react to mouse position.
- ◆Fully customizable: quantity, staticity, ease, size, and color.
- ◆Responsive design: automatically adjusts to window resizing.
- ◆Smooth fading and movement for a premium ambient effect.
Notes
Important implementation details to consider.
Implementation Details
- ◆Plan: Included in Future UI Monthly & Yearly Premium Plans.
- ◆Import:'import { Particles } from "@/components/ui/particles";'
- ◆Setup: The parent container MUST have'relative'or'fixed'positioning and'overflow-hidden'.
- ◆Props: Set 'quantity' for density and pass any of the 10 named color keys (or a hex string) to 'color'.
- ◆Performance: Use'staticity'and'ease'props to fine-tune the mouse interaction responsiveness.