Loading preview
3D Cube
3DA CSS-only cube with six content faces that tumbles slowly and pauses on hover.
A WebGL field of points rolling like a wave, for hero and section backgrounds.
npx shadcn@latest add @venusui/particle-waveRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/hooks/use-scene-state.tsfrom use-scene-state@/components/ui/particle-wave.tsxThe code behind the preview above.
particle-wave-demo.tsx
import { ParticleWave } from "@/components/ui/particle-wave"
export default function ParticleWaveDemo() {
return (
<div className="relative w-full max-w-2xl overflow-hidden rounded-xl border bg-background">
<ParticleWave className="text-muted-foreground" />
<p className="absolute inset-x-0 top-6 text-center text-xl font-semibold tracking-tight">Signals, not noise</p>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| columns | number | 70 | Points along the width. |
| rows | number | 40 | Points along the depth. |
| amplitude | number | 0.6 | Wave height. |
| label | string | "Animated wave of particles" | Accessible description. |
| className | string | — | Classes for the wrapper, e.g. a height or text color. |
Only the props above.
three and @react-three/fiber. The CLI installs both, plus @types/three as a dev dependency.absolute inset-0 inside a relative section and put content above it.text-muted-foreground) keeps text on top readable.columns × rows for slower devices; 70 × 40 is 2,800 points.h-72 by default).Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A CSS-only cube with six content faces that tumbles slowly and pauses on hover.
A tilted wall of vertically scrolling columns, for screenshots and showcases.
A dotted 3D Earth with glowing routes between cities; pulses travel each arc and ripple where they land.