Staaarter

Bento Asset Grid

Bento-style feature grid: an eyebrow kicker sits over a hairline rule, followed by a two-column heading and paragraph, then four mixed-width image tiles. Each tile floats a small icon-and-label chip over the photo and carries a one-line caption beneath it.

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/bento-asset-grid.json

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

Usage

The file also exports feature29Demo, 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 { Feature29, feature29Demo } from "@/components/blocks/feature/feature29";

export default function Page() {
  return <Feature29 {...feature29Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneKicker label above the hairline rule.
headingReactNodenoneLeft column heading.
descriptionstringnoneRight column paragraph.
tilesBentoTile[]noneFour (or more) image tiles rendered in the bento grid.
classNamestringnoneExtra classes for the outer section element.

Types

type AssetChip = { icon: LucideIcon; label: string };

type BentoTile = {
  photo: { src: string; alt: string };
  caption: string;
  asset: AssetChip;
  /** Spans two grid columns on larger screens instead of one. */
  wide?: boolean;
};

Behavior notes

  • Purely presentational: there is no client-side state, this is a plain server component.
  • Tile width is data-driven: setting `wide: true` on a tile applies `sm:col-span-2` inside the 4-column grid so any tile can be the wide one, not just a fixed position.
  • The floating asset chip is a decorative icon-and-label pill absolutely positioned over the top-left of each photo; it does not reflect live data.
  • Icons are passed directly as a `LucideIcon` prop per tile since this is a server component, not a fixed hardcoded array.