MantleUI

StarField

A warp-speed star field effect with configurable density and color. Built with Three.js and @react-three/fiber.

Interactive Demo

Loading star field...

Color

Stars: 1000

Speed: 1.0

Usage

import { StarField } from "@mantleui/react/three";
<StarField
color="#ffffff"
count={1000}
speed={1}
height={400}
/>

Props

count1000
number

Number of stars.

color"#ffffff"
string

Star color.

speed1
number

Warp speed multiplier.

depth10
number

Depth of the star tunnel.

starSize0.01
number

Size of each star point.

height400
string | number

Height of the container.

backgroundColor"transparent"
string

Background color of the container.

© 2026 MantleUI. All rights reserved.