WaveField
An animated 3D wave plane with configurable color, amplitude, and speed. Built with Three.js and @react-three/fiber.
Interactive Demo
Loading wave field...
Color
Speed: 1.0
Amplitude: 0.3
Usage
import { WaveField } from "@mantleui/react/three";
<WaveField color="#3b82f6" wireframe speed={1} amplitude={0.3} height={400}/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | "#3b82f6" | Wave color. |
wireframe | boolean | true | Render as wireframe. |
speed | number | 1 | Animation speed multiplier. |
amplitude | number | 0.3 | Wave amplitude. |
frequency | number | 0.5 | Wave frequency. |
segments | number | 50 | Number of plane segments. |
height | string | number | 400 | Container height. |
backgroundColor | string | "transparent" | Background color of the container. |
color"#3b82f6"stringWave color.
wireframetruebooleanRender as wireframe.
speed1numberAnimation speed multiplier.
amplitude0.3numberWave amplitude.
frequency0.5numberWave frequency.
segments50numberNumber of plane segments.
height400string | numberContainer height.
backgroundColor"transparent"stringBackground color of the container.