Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Background Components

40+ animated background components for React. Particles, gradients, grids, 3D effects. Copy-paste into your Next.js project.

Your hero section deserves better than a static gradient. Users scroll past the same background patterns everywhere—flat colors, basic gradients, maybe a subtle texture. Their eyes glaze over before they read your headline.

These backgrounds create atmosphere. Floating particles that respond to mouse movement. Starfields you fly through. Rain with lightning. Neon that glows. 40+ components, each designed to make your site feel alive without killing performance.

Pick an Effect

Particles & Floating

Floating elements that drift, sparkle, and create depth. From subtle ambient particles to magical fireflies.


Space & Sky

Cosmic effects from starfields to auroras. Perfect for tech, sci-fi, or dreamy themes.


Weather & Nature

Atmospheric effects that set the mood. Rain, snow, fog, underwater—bring nature to screen.


Grids & Patterns

Structured backgrounds from minimal dots to retro perspective grids. Clean and technical.


Gradients & Color

Flowing colors and smooth transitions. From subtle mesh gradients to bold animations.


Waves & Flow

Smooth flowing lines and wave patterns. Organic motion that feels natural.


Light & Beams

Light effects from subtle glows to dramatic beams. Draw attention where you need it.


Tech & Digital

Cyberpunk and digital aesthetics. Matrix rain, glitch effects, neon glow.


Using Components

Install with the CLI:

npx shadcn@latest add https://shadcn.io/r/particles.json

Or copy from the component page directly into your project. Each component is self-contained with all dependencies listed.

Most backgrounds use Canvas or CSS animations. Some use Motion (Framer Motion) for physics. All are optimized for performance with requestAnimationFrame and ResizeObserver.


FAQ

Was this page helpful?

Sign in to leave feedback.