Staaarter

Tagged Feature Cards with Accent Bar

A centered header sits above a three-column grid of glass feature cards, each topped with a solid primary-colored accent bar and holding an icon badge, a heading, a description, and a row of tag pills, 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 badge, media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/tagged-feature-cards-accent-bar.json

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

Usage

The file also exports feature88Demo, 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 { Feature88, feature88Demo } from "@/components/blocks/feature/feature88";

export default function Page() {
  return <Feature88 {...feature88Demo} />;
}

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.
cardsAccentBarCard[]noneFeature cards rendered in a three-column grid.
classNamestringnoneExtra classes for the outer section element.

Types

interface AccentBarCard {
  icon: LucideIcon;
  title: string;
  description: string;
  tags: string[];
}

Behavior notes

  • Fully static Server Component: no event handlers, no client state.
  • The accent bar is a plain `bg-primary` strip across the top of each card, always the theme's primary color rather than a per-card literal color.
  • The background photo fills the section via an absolutely positioned MediaSlot plus a bg-background/85 overlay div; cards use a bg-background/80 backdrop-blur-md border border-border/50 glass treatment so they read as floating surfaces over the photo in both light and dark theme.
  • Each card accepts its own icon component reference directly, which is safe here since this is a Server Component (not "use client").