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.
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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | none | Section heading. |
| description | string | undefined | Supporting paragraph under the heading. |
| image | { src: string; alt: string } | undefined | Wide image tile; falls back to a placeholder via MediaSlot when omitted. |
| metric | Feature8Metric | none | Label, value, and change string shown on the floating metric card over the image. |
| capabilities | Feature8Capability[] | none | Icon-led cells in the hairline grid below the image. |
| className | string | none | Extra 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.
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.