Staaarter

Centered Icon Cards Grid

A simple four-column grid (stacking to two, then one, column on smaller screens) of centered feature items: a circular icon badge above a title and a short description, all center-aligned with no card border or background.

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/centered-icon-cards-grid.json

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

Usage

The file also exports feature134Demo, 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 { Feature134, feature134Demo } from "@/components/blocks/feature/feature134";

export default function Page() {
  return <Feature134 {...feature134Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading; omitted entirely when unset.
headingstringnoneSection heading.
descriptionstringundefinedSupporting copy under the heading.
itemsCenteredIconFeature[]noneIcon feature items rendered in array order.
classNamestringundefinedExtra classes for the outer section element.

Types

interface CenteredIconFeature {
  icon: LucideIcon;
  title: string;
  description: string;
}

Behavior notes

  • Plain server component with no interactivity anywhere in the block.
  • Icons are passed directly as `LucideIcon` component references (this is a server component, so a function-value prop is safe here, unlike a `"use client"` block).
  • Grid is 4 columns at `lg`, 2 at `sm`, 1 below that; all content stays center-aligned at every breakpoint.