Docs
Hero Video

Hero Video

Video thumbnail with a play button that opens a modal player with multiple animation styles.

Product demo video
Watch demo

Installation

Usage

import { HeroVideo } from "@/components/pioneerui/hero-video"
 
export default function Demo() {
  return (
    <HeroVideo
      videoSrc="https://www.youtube.com/embed/VIDEO_ID?autoplay=1"
      thumbnailSrc="/thumbnail.jpg"
      buttonText="Watch demo"
      animationStyle="from-center"
    />
  )
}

Props

PropTypeDefaultDescription
videoSrcstringEmbeddable video URL (required)
thumbnailSrcstringundefinedThumbnail image URL
thumbnailAltstringVideo thumbnailThumbnail alt text
buttonTextstringWatch videoLabel under play button
animationStylefrom-center | from-bottom | fadefrom-centerModal entrance animation