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
idstringUnique slide identifier
badgestringSmall label displayed above the title
titlestringMain heading text
titleContentReactNodeCustom JSX to render instead of the title string
subtitlestringText below the title
heroImagestringURL for the background hero image
logostringURL for a logo image
descriptionstringBody text below the subtitle
classNamestringAdditional CSS class