Heading paired with a procedurally simulated audio waveform — bars rise and fall in time-correlated bands and the text stretches subtly with the loudest beats.
import SonicText from '@crazygl/hero-sonic-text';
export default function Hero() {
return (
<SonicText
heading="now playing"
subheading="Crazyglow · Voltage Drop"
bpm={120}
/>
);
}heading, subheading.barCount, barGap, barMaxHeight, bpm (drives the kick pulse).textColor, subColor, barColor, barAccent, fontSize, headingFontFamily, headingFontWeight.bgColor, transparentBackground.npm install @crazygl/hero-sonic-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import SonicText from '@crazygl/hero-sonic-text';
export default function Landing() {
return (
<SonicText />
);
}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 SonicText from '@crazygl/hero-sonic-text';
export default function Page() {
return (
<section>
<SonicText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}