Staaarter

Contact Method Cards

A feature section listing every way to get in touch as a three-column grid of cards. Each card pairs an icon with a title, a short description, and a trailing action label like "Send a message" with an arrow.

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/contact-method-cards.json

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

Usage

The file also exports feature110Demo, 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 { Feature110, feature110Demo } from "@/components/blocks/feature/feature110";

export default function Page() {
  return <Feature110 {...feature110Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingstringnoneSection heading.
descriptionstringundefinedSupporting paragraph under the heading.
methodsContactMethod[]noneContact option cards rendered in the grid.
classNamestringnoneExtra classes for the outer section element.

Types

interface ContactMethod {
  title: string;
  description: string;
  actionLabel: string;
}

Behavior notes

  • Purely presentational: this is a plain Server Component with no client-side state.
  • The action text at the bottom of each card (e.g. "Send a message") is static text with a trailing arrow icon, not a real link or button, since the brief calls for inert action copy rather than a functioning form or mailto link.
  • Each card's icon cycles through a fixed set of six lucide-react icons by array position, repeating if more than six methods are supplied.