Staaarter

Product Cards with Badge Tags

A two-column grid of product cards, each wrapped in a real link, topped with a row of badge tags, followed by a title, description, and a trailing "Learn more" arrow that shifts on hover.

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

npx shadcn add https://staaarter.com/r/product-cards-badge-tags.json

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

Usage

The file also exports feature113Demo, 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 { Feature113, feature113Demo } from "@/components/blocks/feature/feature113";

export default function Page() {
  return <Feature113 {...feature113Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingstringnoneSection heading.
descriptionstringundefinedSupporting paragraph under the heading.
productsTaggedProductCard[]noneProduct cards, each a real link with its own tag list.
classNamestringnoneExtra classes for the outer section element.

Types

interface TaggedProductCard {
  title: string;
  description: string;
  href: string;
  tags: string[];
}

Behavior notes

  • Purely presentational: this is a plain Server Component with no client-side state.
  • Each card is a real next/link `Link`, not a decorative click target: the whole card is the anchor.
  • The hover border color and arrow shift are pure CSS (group-hover), no JavaScript involved.