Components
Particles Background
Floating particle field that drifts with subtle parallax. Ambient backdrop for heroes and sections.
Installation
npx shadcn@latest add https://ui.saasflare.io/r/particles-background.jsonpnpm add @saasflare/uiUsage
Loading…
"use client"import { ParticlesBackground } from "@saasflare/ui"/** Ambient floating particles behind centered hero copy. */export function Demo() { return ( <div className="relative flex h-64 w-full items-center justify-center overflow-hidden rounded-lg border bg-fd-card p-8"> <ParticlesBackground /> <div className="relative z-10 text-center"> <h2 className="text-2xl font-bold tracking-tight">Ship faster with Saasflare</h2> <p className="mt-2 text-sm text-muted-foreground">A calm, GPU-friendly backdrop.</p> </div> </div> )}Custom
Loading…
"use client"import { ParticlesBackground } from "@saasflare/ui"/** Denser particles with a custom color and larger max size. */export function Demo() { return ( <div className="relative flex h-64 w-full items-center justify-center overflow-hidden rounded-lg border bg-fd-card p-8"> <ParticlesBackground count={30} color="hsl(var(--chart-2))" maxSize={6} /> <div className="relative z-10 text-center"> <h2 className="text-2xl font-bold tracking-tight">Tune the density</h2> </div> </div> )}API Reference
Prop
Type