Staaarter

Large Icon Cards with Dividers over Media

A centered header sits above one full-width glass panel containing a stack of feature rows, each with a large icon badge, a heading, and a description, separated from each other by hairline dividers, all floating over a full-bleed background photo darkened by a semi-transparent overlay.

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

npx shadcn add https://staaarter.com/r/large-icon-cards-dividers-over-media.json

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

Usage

The file also exports feature87Demo, 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 { Feature87, feature87Demo } from "@/components/blocks/feature/feature87";

export default function Page() {
  return <Feature87 {...feature87Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall centered label above the heading.
headingReactNodenoneCentered section heading.
descriptionstringundefinedCentered supporting paragraph.
backgroundImageMediaSlotImagenoneFull-bleed photo behind the whole section, darkened by an overlay.
itemsDividedFeatureItem[]noneFeature rows rendered in order, separated by dividers.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • Fully static Server Component: no event handlers, no client state.
  • Rows share one `divide-y divide-border/50` panel rather than being individually bordered cards, so the divider lines run the full width of the panel between rows.
  • The background photo fills the section via an absolutely positioned MediaSlot plus a bg-background/85 overlay div; the panel itself uses a bg-background/80 backdrop-blur-md border border-border/50 glass treatment so it reads as a floating surface over the photo in both light and dark theme.
  • Each item accepts its own icon component reference directly, which is safe here since this is a Server Component (not "use client").