Staaarter

Figures On Photographs Bento

Metrics mosaic where every figure sits on the photograph it came from, led by a large four-column result and closed by a methodology tile. Good for a stats/proof section that wants photographic texture instead of plain numbers.

By Staaarter Team
Bento
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/figures-on-photographs-bento.json

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

Usage

The file also exports bento8Demo, 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 { Bento8, bento8Demo } from "@/components/blocks/bento/bento8";

export default function Page() {
  return <Bento8 {...bento8Demo} />;
}

Props

PropTypeDefaultDescription
leadMetricMetricTilenoneThe large lead result, spanning four columns and two rows.
metricsMetricTile[]noneSmaller metric tiles filling the remaining columns beside the lead result.
methodologyHeadingstringnoneSmall label above the methodology paragraph, e.g. "How we measure this".
methodologystringnoneShort paragraph explaining where the figures come from, in the closing soft tile.
classNamestringnoneExtra classes for the outer section element.

Types

type MetricTile = {
  photo: MediaSlotImage;
  value: string;
  label: string;
};

Behavior notes

  • All figures are static demo copy; nothing here is computed or fetched, and the block does not validate that `value` is numeric.
  • The lead metric renders its figure at a larger type size (text-5xl) than the smaller `metrics` tiles (text-2xl) to reinforce the visual hierarchy the brief calls for; this is a fixed style choice, not driven by the data.
  • The methodology tile is the only non-photographic tile in the grid, deliberately breaking the photo pattern to read as a footnote rather than another result.