A live, full-bleed procedural shader background — domain-warped fractal Brownian motion mixed through an iridescent fresnel palette, with the headline and CTA layered cleanly on top. The pointer subtly steers the flow.
import ShaderPlayground from '@crazygl/hero-shader-playground-hero';
export default function Page() {
return (
<ShaderPlayground
heading="Shaders, live."
palette="iridescent"
warpStrength={0.85}
ctaLabel="Open the playground"
/>
);
}contentType, heading, subheading, ctaLabel, onCTAClick.palette (iridescent, aurora, sunset, lava, oil, ice, mono, galaxy).flowSpeed, fbmOctaves (detail), warpStrength, pointerInfluence.brightness, contrast, grain, vignette.textColorMode, textColor, ctaBgColor, ctaTextColor.npm install @crazygl/hero-shader-playground-heroThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ShaderPlayground from '@crazygl/hero-shader-playground-hero';
export default function Landing() {
return (
<ShaderPlayground />
);
}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 ShaderPlayground from '@crazygl/hero-shader-playground-hero';
export default function Page() {
return (
<section>
<ShaderPlayground
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}