NexusUI

Sparkles Field

Heroes 11

About

Configurable animated particle field for hero highlights, card backgrounds, and decorative UI layers with optional pointer interaction.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sparkles Field to your project and fits it to your theme.

Code

How Sparkles Field is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Sparkles } from "@/components/ui/sparkles";

const settings = {
  count: 36,
  speed: 1,
  color: "#e5f4ff",
  maxSize: 2.8,
  enableGlow: true,
  opacity: 0.9,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen bg-neutral-950">
      <Sparkles
        count={s.count}
        speed={s.speed}
        color={s.color}
        maxSize={s.maxSize}
        enableGlow={s.enableGlow}
        opacity={s.opacity}
        className="h-full w-full"
      />
    </div>
  );
}

Dependencies

More by NexusUI

View all
  • Circular Carousel

    Circular Carousel

    1.3K
  • Images Badge

    Images Badge

    1K
  • Chat Messages

    Chat Messages

    366
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    175
  • Infinite Moving Cards

    Infinite Moving Cards

    173
  • Shooting Stars Grid

    Shooting Stars Grid

    160
  • Pixel Atlas

    Pixel Atlas

    133
  • Logo Clouds

    Logo Clouds

    119

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442