VisorVisor
ComponentsDeck

HeroSlide

A full-viewport hero slide with image overlay, split layout, and staggered animations.

Features

  • Hero image with gradient overlay — full-bleed background with readable text
  • Split layout with logo — logo placement alongside title content
  • Staggered entrance animations — badge, title, subtitle, and description animate in sequence
  • Badge and divider elements — visual accents for branding

Installation

npx visor add deck-hero-slide

Usage

import { HeroSlide } from '@/components/deck/hero-slide/hero-slide';

export default function Example() {
  return (
    <HeroSlide
      id="hero"
      badge="New Release"
      title="Product Launch"
      subtitle="Introducing the next generation"
      heroImage="/images/hero-bg.jpg"
      logo="/images/logo.svg"
      description="A brief overview of what makes this special."
    />
  );
}

API Reference

PropTypeDefaultDescription
idstring—Unique slide identifier
badgestring—Small label displayed above the title
titlestring—Main heading text
titleContentReactNode—Custom JSX to render instead of the title string
subtitlestring—Text below the title
heroImagestring—URL for the background hero image
logostring—URL for a logo image
descriptionstring—Body text below the subtitle
classNamestring—Additional CSS class