Staaarter

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.

By Staaarter Team
Feature
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
badgestringnoneOptional small badge above the heading.
headingReactNodenoneSection heading.
descriptionstringnoneSupporting copy under the heading.
primaryCtaCtaLinknoneOptional primary call-to-action button.
secondaryCtaCtaLinknoneOptional secondary (outline) call-to-action button.
itemsIconRowItem[]noneIcon-prefixed detail items below the CTAs.
classNamestringnoneExtra 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.