UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { PebbleCluster } from "@/components/scenes/pebble-cluster";
export default function Background() {
return (
<PebbleCluster
className="h-svh w-full"
colorA="#ff9db5"
colorB="#ffbe9c"
colorC="#c4abff"
colorD="#ffe3ea"
accentColor="#2e4bff"
backgroundColor="#1c1530"
count={110}
sizeVariety={0.55}
capsuleShare={0.3}
squash={0}
accentPieces={3}
size={1}
pull={1}
jostle={0.5}
spin={0.05}
gloss={0.2}
pearlShare={0.12}
stoneGrain={0}
softness={0.5}
shadow={0.7}
pushSize={0.5}
pushStrength={1}
burstStrength={1}
offsetX={0.28}
offsetY={0}
quality="auto"
/>
);
}Colours
Controls
A floating ball of about a hundred soft spheres and capsules under studio light that breathes and jostles. The cursor presses a bowl into it, a click bursts it and it repacks, a drag spins it. Hand-written physics; phones get fewer pieces, and reduced motion shows one still with a fresh dent.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colorA | string (hex colour) | "#ff9db5" | The most common piece colour. |
| colorB | string (hex colour) | "#ffbe9c" | The second piece colour. |
| colorC | string (hex colour) | "#c4abff" | The third piece colour. |
| colorD | string (hex colour) |
More from Infinity UI
More in 3D Scenes
View all
RemixLens Quilt
















