Hero slideshow
Built on Carousel, so slides scroll natively with snap points and
the controls sit over the bottom of the images. Each slide sets its own
alignment and surface. The first slide’s title is the page h1.
Options
Section titled “Options”slides: list of{ image, imageAlt, eyebrow, title, text, cta, align, surface }cta:{ label, href }, rendered as a Buttonalign:start(default),center,endsurface:dark(default, white text on a dark scrim),brand,light,alternate(dark text on a light scrim)
height:auto,tall(default),screen(data-height, as Hero)autoplay: advances on a timer, with a pause button; pauses on hover and focus and stays off under reduced motioninterval: autoplay delay in milliseconds (default6000)label: accessible name of the carousel (default “Featured”)
<HeroSlideshow slides={[ { image: "/images/demo-site.jpg", eyebrow: "Samla", title: "A design system built for speed", text: "Accessible, static-first components for Astro.", cta: { label: "Get started", href: "/getting-started/" }, }, { image: "/images/statement.jpg", title: "Statement", align: "center" }, ]}/>