Bento grid
Feature grid with tiles of mixed sizes that stack on phones.
Preview
Tiles rise in one after another, then lift slightly on hover. With reduced motion turned on, it renders the plain layout.
Why teams pick it
One command
Install any section with the shadcn CLI.
Fast
Plain components, no runtime.
Accessible
Semantic markup and labels.
Light and dark
Uses your shadcn theme variables.
Why teams pick it
One command
Install any section with the shadcn CLI.
Fast
Plain components, no runtime.
Accessible
Semantic markup and labels.
Light and dark
Uses your shadcn theme variables.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { BentoGrid } from "@/components/custom/bento-grid";
<BentoGrid
title="Why teams pick it"
items={[
{ title: "One command", description: "Install any section.", icon: <Terminal />, size: "large" },
{ title: "Fast", description: "Plain components.", icon: <Zap /> },
]}
/>import { BentoGridMotion } from "@/components/custom/bento-grid/bento-grid-motion";
<BentoGridMotion {...props} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items* (required) | BentoItem[] | – | Tiles: { title, description, icon?, size? }. |
| items[].size | "default" | "wide" | "tall" | "large" | "default" | Cells the tile spans from the md breakpoint up. |
| items[].icon | LucideIcon | ReactElement | – | Icon shown above the title: a component, or an element such as <Zap /> (use an element when a server page renders the motion version). |
| title | string | – | Optional heading above the grid. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| items* (required) | BentoItem[] | – | Tiles: { title, description, icon?, size? }. |
| items[].size | "default" | "wide" | "tall" | "large" | "default" | Cells the tile spans from the md breakpoint up. |
| items[].icon | LucideIcon | ReactElement | – | Icon shown above the title: a component, or an element such as <Zap /> (use an element when a server page renders the motion version). |
| title | string | – | Optional heading above the grid. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Tiles are list items, so screen readers announce how many there are.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.