Staaarter

Hairline Capability Matrix

A feature section laid out as a hairline matrix of cells: a wide top cell carries an image tile floating a live trend metric, and a row of bordered cells below it holds icon-led capabilities. Good for a product overview that wants one hero visual plus a scannable capability list.

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/hairline-capability-matrix.json

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

Usage

The file also exports feature8Demo, 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 { Feature8, feature8Demo } from "@/components/blocks/feature/feature8";

export default function Page() {
  return <Feature8 {...feature8Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingReactNodenoneSection heading.
descriptionstringundefinedSupporting paragraph under the heading.
image{ src: string; alt: string }undefinedWide image tile; falls back to a placeholder via MediaSlot when omitted.
metricFeature8MetricnoneLabel, value, and change string shown on the floating metric card over the image.
capabilitiesFeature8Capability[]noneIcon-led cells in the hairline grid below the image.
classNamestringnoneExtra classes for the outer section element.

Types

interface Feature8Metric {
  label: string;
  value: string;
  change: string;
}

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

Behavior notes

  • The metric card and every trend figure are static demo props, not a real live feed; "live" describes the visual treatment, not a data connection.
  • The capabilities grid uses CSS divide utilities to draw hairline borders between cells and reflows from 1 to 2 to 4 columns by breakpoint; it works for any number of capability entries, though the demo uses four.
  • There is no click or hover interaction anywhere in this block; every cell is purely presentational.