Compact Asset Cards
A feature section with an eyebrow sitting over a hairline rule, a two-column heading and description pair below it, and three bordered cards further down. Each card floats a compact micro-asset (a mini bar chart, a mini terminal snippet, or a live-looking metric readout) above its title and description.
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/compact-asset-cards.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature26.tsx instead.
Usage
The file also exports feature26Demo, 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 { Feature26, feature26Demo } from "@/components/blocks/feature/feature26"; export default function Page() { return <Feature26 {...feature26Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the hairline rule. |
| heading | string | none | Section heading, left column of the two-column header. |
| description | string | undefined | Supporting paragraph, right column of the two-column header. |
| cards | Feature26Card[] | none | Bordered cards, each choosing one of three micro-asset kinds. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Feature26Card { kind: "chart" | "terminal" | "metric"; title: string; description: string; }
Behavior notes
- Every micro-asset is a fixed, static visualization: the bar chart uses hardcoded bar heights, the terminal card shows a hardcoded command and output line, and the metric card shows a hardcoded value and trend, none of it reads real data.
- The small pulsing "Live" dot on each card is a pure CSS animate-ping/animate-pulse treatment, it is decorative styling, not a real live data connection.
- This is a plain Server Component, there is no click or hover interaction anywhere in this block.
- Bar heights and other static values never use Math.random() or Date.now(), so the block renders identically across the live preview, the Code tab's static HTML, and every card thumbnail.
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.