Staaarter

Four Cards With Centered Icon

Four equal-width feature cards on a clean background, each centered around a large circular icon badge, a bold heading, and a short description, suited to outlining the steps or pillars of a service offering.

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 dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/four-cards-centered-icon.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature165.tsx instead.

Usage

The file also exports feature165Demo, 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 { Feature165, feature165Demo } from "@/components/blocks/feature/feature165";

export default function Page() {
  return <Feature165 {...feature165Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading.
headingReactNodenoneSection heading.
descriptionstringnoneSupporting copy under the heading.
cardsCenteredIconCard[]noneThe four (or more) icon cards, rendered in array order.
classNamestringnoneExtra classes for the outer section element.

Types

type CenteredIconCard = {
  icon: LucideIcon;
  title: string;
  description: string;
};

Behavior notes

  • Fully static server component, no client-side state.
  • Cards sit in a 2-column grid on small screens and a 4-column grid at `lg`, each centered around a large circular icon badge.