VisorVisor
ComponentsDeck

SlideHeader

An animated slide header with subtitle, title, and optional description.

Features

  • Stagger entrance animations — subtitle, title, and description animate in sequence
  • Fluid typography — scales smoothly across viewport sizes
  • Theme-aware text colors — inherits from the parent Slide theme

Installation

npx visor add deck-slide-header

Usage

import { SlideHeader } from '@/components/deck/slide-header/slide-header';

export default function Example() {
  return (
    <SlideHeader
      subtitle="Chapter 1"
      title="Getting Started"
      description="An introduction to the platform and its capabilities."
    />
  );
}

API Reference

PropTypeDefaultDescription
subtitlestringSmall text above the title
titlestringMain heading text
descriptionstringOptional body text below the title
classNamestringAdditional CSS class