A procedurally-textured planet fills the background — swirling FBM clouds, atmosphere scattering at the rim, slow rotation, scattered stars.
import CosmicMarble from '@crazygl/hero-cosmic-marble';
export default function Page() {
return (
<CosmicMarble
planetSize={0.8}
atmosphereColor="#5cb8ff"
cloudFrequency={1.6}
/>
);
}deepColor, cloudColor, landColor, atmosphereColor, planetSize, rotateSpeed, atmosphereStrength, cloudFrequency.centerX slides the planet across the frame so heading copy can sit opposite.transparent to float the planet over the page, otherwise bgColor and starDensity for the deep-space backdrop.npm install @crazygl/hero-cosmic-marbleThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import CosmicMarble from '@crazygl/hero-cosmic-marble';
export default function Landing() {
return (
<CosmicMarble />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import CosmicMarble from '@crazygl/hero-cosmic-marble';
export default function Page() {
return (
<section>
<CosmicMarble
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}