Components
A Background Component with Moving Stars
This component creates an animated starfield background using react-three-fiber and @react-three/drei. Thousands of small points are randomly distributed in a spherical shape, and the entire group rotates slowly to simulate a space-like effect. The stars gently rotate by default, and they respond to the user's scroll direction, creating a dynamic and immersive background. The effect is rendered in a <Canvas> using Three.js within React.

Live preview isn't available for this component.
import { MyComponent } from "@/components/ui/stars-background"
const Home = () => {
return (
<>
<MyComponent />
</>
);
};
export default Home;