Centered Heading with CTA and Icon Row
A centered, service-style section: an optional badge, a large heading, supporting copy, primary/secondary CTA buttons, and a row of icon-prefixed detail items underneath. The row collapses to a stack on mobile.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/centered-heading-cta-icon-row.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature166.tsx instead.
Usage
The file also exports feature166Demo, 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 { Feature166, feature166Demo } from "@/components/blocks/feature/feature166"; export default function Page() { return <Feature166 {...feature166Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | string | none | Optional small badge above the heading. |
| heading | ReactNode | none | Section heading. |
| description | string | none | Supporting copy under the heading. |
| primaryCta | CtaLink | none | Optional primary call-to-action button. |
| secondaryCta | CtaLink | none | Optional secondary (outline) call-to-action button. |
| items | IconRowItem[] | none | Icon-prefixed detail items below the CTAs. |
| className | string | none | Extra classes for the outer section element. |
Types
type IconRowItem = { label: string; icon?: LucideIcon; // defaults to a check icon when omitted }; type CtaLink = { label: string; href: string; };
Behavior notes
- Fully static server component, no client-side state; CTA buttons render as inert `<Link>`s (no real submit action, matching the rest of the catalog's decorative CTAs).
- Each icon-row item falls back to a check icon (`item.icon ?? Check`) when no icon is supplied.
- The icon row is a centered flex row on `sm` and up and stacks vertically on mobile.
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.