Capability Selector
An interactive feature where a hairline list of four capabilities swaps the image tile beside it. Each capability floats a different live asset with its own supporting paragraph when selected. Real click-to-swap local state.
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-selector.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature12.tsx instead.
Usage
The file also exports feature12Demo, 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 { Feature12, feature12Demo } from "@/components/blocks/feature/feature12"; export default function Page() { return <Feature12 {...feature12Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | undefined | Optional section heading. |
| capabilities | Feature12Capability[] | none | Selectable list items; the first entry is selected by default. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Feature12Capability { title: string; blurb: string; paragraph: string; image?: { src: string; alt: string }; assetLabel: string; assetValue: string; }
Behavior notes
- Real interactivity: clicking a row in the hairline list updates local state and swaps the image, floating asset badge, and supporting paragraph on the right to that capability's values.
- The first capability in the array is selected by default; there is no URL or prop-driven initial selection.
- Icons next to each list item are a fixed set of four lucide icons indexed by array position, not accepted as a prop; a capabilities array longer than four repeats the icon set.
- The floating asset badge values are static per-capability demo props, not a real live feed, they simply change instantly when you click a different capability.
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.