Product Accordion Feature
Product feature section: an eyebrow kicker over a hairline rule, a two-column heading and paragraph, then an image tile with a floating live-records panel beside a real expand/collapse accordion listing the product's capabilities. Only one capability is open at a time.
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/product-accordion-feature.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature32.tsx instead.
Usage
The file also exports feature32Demo, 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 { Feature32, feature32Demo } from "@/components/blocks/feature/feature32"; export default function Page() { return <Feature32 {...feature32Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Kicker label above the hairline rule. |
| heading | ReactNode | none | Left column heading. |
| description | string | none | Right column paragraph. |
| photo | { src: string; alt: string } | none | Image tile beside the accordion. |
| recordsTitle | string | none | Title inside the floating records panel. |
| records | RecordRow[] | none | Label/value rows shown inside the floating records panel. |
| capabilities | CapabilityItem[] | none | Accordion items; icons cycle through a fixed 4-item set by position. |
| className | string | none | Extra classes for the outer section element. |
Types
type RecordRow = { label: string; value: string }; type CapabilityItem = { title: string; description: string };
Behavior notes
- Real interactivity: clicking a capability row toggles its answer panel open/closed via useState; only one panel is open at a time, matching the FAQ accordion pattern used elsewhere in this repo.
- "use client" component, so its demo props live in the sibling feature32.demo.tsx file per this repo's client/demo-file-split rule, not in feature32.tsx itself.
- Capability icons are a fixed, hardcoded array (Database, Zap, ShieldCheck, RefreshCw) indexed by array position, not a prop, since a component reference can never be passed as a prop into a client component.
- The floating records panel is a static decorative summary card, not live data; it is hidden below the sm breakpoint to avoid overlapping the image on small screens.
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.