A self-contained rotating sticker badge — text on the rim of a circle, an icon (or your own word) in the middle, next to a heading.
import RotatingTextBadge from '@crazygl/hero-rotating-text-badge';
export default function Hero() {
return (
<RotatingTextBadge
heading="new drop"
subheading="available now"
badgeText="FRESH · DROP · 26 · "
badgeIcon="star"
/>
);
}heading, subheading, badgeText (orbits the rim), badgeIcon (star / arrow / spark / none / any word).rotationSpeed (s/turn), badgeSize, badgeTextGap (rim text inset).textColor, subColor, badgeColor, badgeTextColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-rotating-text-badgeThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import RotatingTextBadge from '@crazygl/hero-rotating-text-badge';
export default function Landing() {
return (
<RotatingTextBadge />
);
}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 RotatingTextBadge from '@crazygl/hero-rotating-text-badge';
export default function Page() {
return (
<section>
<RotatingTextBadge
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}