Staaarter

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.

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/compact-asset-cards.json

Prefer 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

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the hairline rule.
headingstringnoneSection heading, left column of the two-column header.
descriptionstringundefinedSupporting paragraph, right column of the two-column header.
cardsFeature26Card[]noneBordered cards, each choosing one of three micro-asset kinds.
classNamestringnoneExtra 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.