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.jsonDependencies:
lucide-reactUses:carousel-hooks
Summit Sport Project
Introducing our latest collection, designed for outdoor enthusiasts. Pass `src` for video clips; this preview uses stills.
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" },
]}
/>
);
}


