MantleUI

ParticleField

An animated 3D particle field with optional connection lines between nearby particles. Built with Three.js and @react-three/fiber.

Interactive Demo

Loading particles...

Color

Particles: 150

Usage

import { ParticleField } from "@mantleui/react/three";
<ParticleField
count={200}
color="#8b5cf6"
height={400}
connections
/>

Props

count200
number

Number of particles.

color"#3b82f6"
string

Particle and connection line color.

particleSize0.015
number

Size of each particle.

spread5
number

Spread radius of the particle field.

speed1
number

Animation speed multiplier.

connectionstrue
boolean

Show connection lines between nearby particles.

connectionDistance1.5
number

Maximum distance for drawing connections.

connectionOpacity0.15
number

Opacity of connection lines.

backgroundColor"transparent"
string

Background color of the container.

height"400px"
string | number

Height of the container.

© 2026 MantleUI. All rights reserved.