Capability Carousel
A feature section built around a single-card carousel: a centered photo, title, and description that automatically cycles through a set of capabilities every few seconds, with prev/next arrow buttons and dot indicators for manual control. Good for rotating through more capabilities than fit comfortably in a static grid.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/capability-carousel.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature76.tsx instead.
Usage
The file also exports feature76Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Feature76, feature76Demo } from "@/components/blocks/feature/feature76"; export default function Page() { return <Feature76 {...feature76Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small label above the heading. |
| heading | ReactNode | none | Section heading. |
| description | string | none | Supporting copy under the heading. |
| cards | CapabilityCard[] | none | Cards the carousel cycles through, each with a title, description, and image. |
| className | string | none | Extra classes for the outer section element. |
Types
type CapabilityCard = { title: string; description: string; image: MediaSlotImage; // { src: string; alt: string } };
Behavior notes
- Real client-side state and a real timer: a setInterval inside useEffect advances the active card every 5 seconds and is cleared on unmount, this is a genuine side effect, not state derived from props.
- Prev/next arrow buttons and the dot indicators are fully wired and jump straight to any card, on top of the auto-advance.
- Each card's media is a static image via MediaSlot; swap in your own video/embed by replacing the MediaSlot usage if you need richer media per card.
- The auto-advance interval keeps running after a manual prev/next/dot click rather than pausing or resetting; the next automatic tick still fires on schedule.
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.