Staaarter

Feature with Split Header and Service Cards

A two-column header (badge, heading with an accent-colored highlight on its last phrase, and an intro paragraph on the left, a supporting paragraph on the right), followed by a three-card grid of services, each with an outlined icon and a learn-more link.

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

npx shadcn add https://staaarter.com/r/feature-split-header-service-cards.json

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

Usage

The file also exports feature170Demo, 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 { Feature170, feature170Demo } from "@/components/blocks/feature/feature170";

export default function Page() {
  return <Feature170 {...feature170Demo} />;
}

Props

PropTypeDefaultDescription
badgestringnoneOptional small badge above the heading.
headingLeadstringnoneHeading text before the accent-highlighted phrase.
headingHighlightstringnoneHeading phrase rendered with the accent (primary-colored) highlight.
introstringnoneIntro paragraph in the left column, under the heading.
supportingstringnoneSupporting paragraph in the right column.
servicesServiceCard[]noneThree (or more) service cards below the header.
classNamestringnoneExtra classes for the outer section element.

Types

type ServiceCard = {
  icon: LucideIcon;
  title: string;
  description: string;
  href: string;
};

Behavior notes

  • Fully static server component, no client-side state.
  • The accent highlight is a plain `<span className="text-primary">` wrap around `headingHighlight`, not a separately styled component.
  • Each service card's "Learn more" is an inert `<Link>` styled as a link-variant button, not a real navigation action.