Nebula Orb
Web (React)
A volumetric gas nebula sealed in a glass sphere over a twinkling star field.
Billowing emission clouds inside a glass sphere, floating over a radial gradient and a twinkling dot-grid star field. It fills its positioned parent and freezes its animation when the user prefers reduced motion. Built on the shaders library (MIT) and rendered with WebGPU.
Nebula Orb
Installation
CLI
npx @modus-ui/cli add nebula-orbManual
- Install
shaderswithnpm install shaders. - Copy the code from the component tab.
- Create a file at
components/ui/nebula-orb.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
coreColor | string | "#ffd9b0" | Colour of the hot cores. |
gasColor | string | "#ff5e7a" | Main gas colour. |
veilColor | string | "#3a5bdb" | Colour of the outer veil. |
backgroundColor | string | "#05030f" | Outer colour of the backdrop gradient. |
speed | number | 1 | Gas animation speed. |
density | number | 1 | Density of the gas. |
glow | number | 1 | Glow of the cores. |
radius | number | 0.38 | Radius of the sphere. |
Comments