Skip to content

Bento Grid

A responsive bento grid for feature sections: tiles with icon, title, copy and a visual slot on a six column grid that collapses to one column on phones.

src/registry/ui/bento-grid.tsx/r/bento-grid.json

Installation

bash
npx shadcn@latest add @minidev/bento-grid

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/bento-grid.json

Usage

tsx
import { BentoGrid } from "@/components/ui/bento-grid"

export function Example() {
  return (
    <BentoGrid />
  )
}

API reference

BentoGrid props
PropTypeDefault
itemsTiles in reading order. Omit for sample data.BentoItem[]DEMO
classNamestring-

When to use

Use on landing pages to show four to seven product features. Each tile has an icon, title, copy and an optional visual; tiles with href become links. Prefer FeatureGrid for equal tiles. Server component friendly, no motion, no client JavaScript.

Accessibility

  • Each tile title is an <h3>, so a page with an <h2> above the grid keeps a clean heading outline.
  • Tile icons and the default bar chart are aria-hidden.
  • A tile with href becomes one <a> whose name is its title plus description. Do not put other links or buttons inside it.

Frequently asked questions

How do I make one tile bigger than the others?

Set span (2, 3, 4 or 6 columns out of 6) and rows (1 or 2) on that item. Spans only apply at the lg breakpoint: below it the grid is one column on phones and two on tablets, and the first tile always spans both tablet columns.

Can I put my own chart or screenshot in a tile?

Pass it as visual on the item and it renders under the description. A tile with rows: 2 and no visual gets a small decorative bar chart. Pass visual: null to keep the tall tile with no art.

Does BentoGrid work in a Next.js Server Component?

Yes. The file has no "use client" directive, no state and no motion, so it renders on the server with no JavaScript sent. icon takes a lucide component (icon: BellIcon), not an element. For a version with live, animated tiles use BentoLive.

Dependencies

npm

lucide-react

Built from

No other MiniDev files

Examples

Custom items

Each item takes a title, copy, an icon and a span out of six columns; rows 2 makes a tall tile.

Linked tiles

Give an item an href and the tile becomes a link with a hover border and a focus ring.

Custom visuals

The visual slot takes any node, so a tile can hold a chart, a list or a screenshot.

All Landing page sections for React and Tailwind

Learn more