DDBS UI
heroes

Video Hero Carousel

A full-bleed hero over crossfading, muted, looping clips with a pause button and progress indicators, a headline and a pill CTA. Falls back to stills when a clip has only a poster.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/video-hero-carousel.json
Dependencies:lucide-react
Fullscreen

Summit Sport Project

Introducing our latest collection, designed for outdoor enthusiasts. Pass `src` for video clips; this preview uses stills.

Shop now

Usage

video-hero-carousel-example.tsx
import { VideoHeroCarousel } from "@dbs/ui";

export default function VideoHeroCarouselExample() {
  return (
    <VideoHeroCarousel
      title="Summit Sport Project"
      description="Introducing our latest collection, designed for outdoor enthusiasts. Pass `src` for video clips; this preview uses stills."
      ctaLabel="Shop now"
      ctaHref="#"
      clipMs={4500}
      clips={[
        { id: "a", poster: "/samples/ridgeway-climber-poster.jpg", label: "A painted ridge" },
        { id: "b", poster: "/samples/ridgeway-hiker-poster.jpg", label: "A meadow at dawn" },
        { id: "c", poster: "/samples/ridgeway-skier-poster.jpg", label: "A calm wave" },
      ]}
    />
  );
}