Slideshow Thumbs Hero
A full-bleed photo hero with per-slide heading, subtitle and CTA, thumbnails to jump between slides, a segmented autoplay progress track and a round play button.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/slideshow-thumbs-hero.jsonDependencies:
lucide-react
Usage
slideshow-thumbs-hero-example.tsx
"use client";
import { SlideshowThumbsHero } from "@dbs/ui";
export default function SlideshowThumbsHeroExample() {
return (
<SlideshowThumbsHero
initialIndex={1}
onPlay={() => undefined}
nav={
<div className="flex h-14 items-center justify-between rounded-full bg-white/15 px-6 text-sm font-medium text-white backdrop-blur-md">
<span>Fieldline</span>
<span className="hidden gap-6 sm:flex"><a href="#">Services</a><a href="#">About</a><a href="#">Contact</a></span>
</div>
}
action={<a href="#" className="inline-flex h-12 items-center rounded-full bg-canvas px-7 text-sm font-medium text-ink">Start growing with us</a>}
slides={[
{ id: "a", image: "/samples/farmetic-hero-1.jpg", alt: "A meadow at dawn", thumbnail: "/samples/farmetic-hero-thumb-1.jpg", label: "the meadow", title: ["Grow", "smarter,", "every season"], subtitle: "Tools and know-how that help every field give more." },
{ id: "b", image: "/samples/farmetic-hero-2.jpg", alt: "A wide landscape", thumbnail: "/samples/farmetic-hero-thumb-2.jpg", label: "the landscape", title: ["Read", "the land,", "act early"], subtitle: "Soil and weather signals turned into plain next steps." },
{ id: "c", image: "/samples/farmetic-hero-3.jpg", alt: "A calm wave", thumbnail: "/samples/farmetic-hero-thumb-3.jpg", label: "the coast", title: ["Sell", "at the", "right moment"], subtitle: "Market prices and timing, in one place." },
]}
/>
);
}