Skip to main content
← Back to Components

Hero

Full-viewport hero sections with animated backgrounds and text reveals

Hero Section

Full-viewport hero sections with animated gradient backgrounds, word-by-word text reveals, and customizable variants.

Preview

✨ Example Hero

BeautifulAnimatedHeroSections

Full-viewport hero sections with animated gradient backgrounds, word-by-word text reveals, and customizable variants. Perfect for landing pages.

Note: Hero sections are designed for full viewport height. Click "Expand Preview" for full-screen view.

Installation

app/page.tsxtsx
import { HeroSection } from "@/components/ui/hero-section";
import { InteractiveButton } from "@/components/ui/interactive-button";

export default function Example() {
  return (
    <HeroSection
      subtitle="✨ Your Subtitle"
      title="Your Hero Title"
      description="Your hero description."
      variant="gradient"
    >
      <InteractiveButton variant="accent">
        Get Started
      </InteractiveButton>
      <InteractiveButton variant="ghost">
        Learn More
      </InteractiveButton>
    </HeroSection>
  );
}

Props

NameTypeRequiredDescription
subtitlestringYesAnimated badge text
titlestringYesMain headline
descriptionstringYesSupporting text
variant"default" | "gradient" | "minimal"NoVisual style variant
childrenReact.ReactNodeNoCTA buttons or other content