Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Sparkles

A configurable sparkles component that can be used as a background or as a standalone component.

Open in

Aceternity

Installation

Run the following command

npx shadcn@latest add @aceternity/sparkles

Examples

Open in

Build great products

Props

Prop nameTypeDescription
idstringThe id of the sparkles component.
classNamestringThe class name of the sparkles component.
backgroundstringThe background color of the sparkles component.
particleSizenumberThe size of the particles in the sparkles component.
minSizenumberThe minimum size of the particles in the sparkles component.
maxSizenumberThe maximum size of the particles in the sparkles component.
speednumberThe speed of the particles in the sparkles component.
particleColorstringThe color of the particles in the sparkles component.
particleDensitynumberThe density of the particles in the sparkles component.

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

70+ templates and component blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode
A product by Aceternity
Building in public at @mannupaaji