A dim cinematic room with a hard-edged spotlight cone. Thousands of dust motes drift through the beam and twinkle as they cross the light.
import FloatingDust from '@crazygl/hero-floating-dust';
export default function Page() {
return (
<FloatingDust
heading="In the spotlight."
beamColor="#fff1d2"
dustCount={1800}
/>
);
}contentType (heading / two-columns / custom) plus heading, subheading, column1/column2, or content.beamColor, roomColor, fogColor, beamX, beamWidth, beamIntensity, beamSoftness, fogDensity.dustCount, dustSize, driftSpeed, fall (gravity settle).headingFontFamily.npm install @crazygl/hero-floating-dustThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import FloatingDustInSpotlight from '@crazygl/hero-floating-dust';
export default function Landing() {
return (
<FloatingDustInSpotlight />
);
}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 FloatingDustInSpotlight from '@crazygl/hero-floating-dust';
export default function Page() {
return (
<section>
<FloatingDustInSpotlight
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}