Installation
The CLI installs the block together with its pieces: the shadcn button plus
Text Animate, Blur Fade,
and Magnetic from this registry.
npx shadcn@latest add https://ui.thilina.dev/r/hero-section.jsonUsage
import { HeroSection } from "@/components/blocks/hero-section";
export default function Page() {
return <HeroSection />;
}The copy, badge, and CTA targets are plain JSX at the top of the file; edit them in place. The entrance is choreographed: badge first, headline staggering in by word, supporting copy, then the buttons, each a beat apart.
Accessibility
The headline stays a real h1 (the animated words are decorative and
aria-hidden, with the sentence exposed to screen readers whole). All
entrances collapse to static content under prefers-reduced-motion.