Hero Video Default

PreviousNext

An immersive hero video dialog ideal for landing pages and product highlights

Docs
solaceuiui

Preview

Loading preview…
app/docs/hero-video/hero-video-default.tsx
import { HeroVideo } from "@/components/docs-components/hero-video";
import React from "react";

export function HeroVideoDefault() {
  return (
    <div className="flex flex-col items-center justify-center py-12">
      <HeroVideo
        className="dark:hidden block"
        videoSrc="https://www.youtube.com/embed/SAnLQABTF5A?si=oiXgKWLe7PLKv0Ev"
        thumbnailSrc="https://startup-template-sage.vercel.app/hero-light.png"
        thumbnailAlt="Hero Video"
        enableSound={false}
      />
      <HeroVideo
        className="hidden dark:block"
        videoSrc="https://www.youtube.com/embed/SAnLQABTF5A?si=oiXgKWLe7PLKv0Ev"
        thumbnailSrc="https://startup-template-sage.vercel.app/hero-dark.png"
        thumbnailAlt="Hero Video"
        enableSound={false}
      />
    </div>
  );
}

Installation

npx shadcn@latest add @solaceui/hero-video-default

Usage

import { HeroVideoDefault } from "@/components/ui/hero-video-default"
<HeroVideoDefault />