Installation
The CLI installs the block with the shadcn button and carousel plus
embla-carousel-autoplay.
npx shadcn@latest add https://ui.thilina.dev/r/features-section.jsonUsage
import { FeaturesSection } from "@/components/blocks/features-section";
export default function Page() {
return <FeaturesSection />;
}Swap the CAROUSEL_CONTENT array at the bottom of the file for your own
titles and images:
const CAROUSEL_CONTENT = [
{ title: "Solar Power", image: "/images/solar.jpg" },
{ title: "Wind Turbines", image: "/images/wind.jpg" },
];The autoplay delay lives in the Autoplay({ delay: 4000 }) plugin options.
Accessibility
Carousel images carry their titles as alt text, and the embla carousel supports pointer, wheel, and keyboard interaction through the shadcn carousel primitives.