Sphere Shader
A glowing 3D sphere rendered with Three.js and a bloom pass, for hero sections.
Updated Added Changelog
Preview
Installation
pnpm dlx shadcn@latest add @satoriui/sphere-shaderAdds components/satori-ui/sphere-shader.tsx to your project and installs its dependencies.
Usage
Examples
Beside a heading
Give it a height and set fill to size the moon inside it.
Mission 07
Night side, live
Telemetry from the far side, streamed as it lands.
Props
classNameClasses for the wrapper. Give it a size: the canvas fills it. The black background can be swapped for another, such as "bg-transparent".
TypestringfillHow much of the container's shorter side the moon spans, from 0.1 to 1.5 (above 1 it overflows the edges).
TypenumberDefault0.8reducedMotion"user" follows a surrounding MotionConfig, then the visitor's reduce-motion setting. "always" and "never" force the calm or the full version.
Type"user""always""never"Default"user"
Also takes every <div> prop, such as className, style and event handlers.
Reduced motion
Sphere Shader follows the visitor's “reduce motion” device setting on its own: movement, blur and looping effects stop, and fades stay. Use the Reduced motion button on the preview to see that version. To decide yourself, set the reducedMotion prop on one instance, or wrap a whole section or app in Motion's MotionConfig.