Masonry Bento Grid

CSS columns-based masonry layout with variable-height cards featuring background images and gradient overlays. Perfect for showcasing diverse use cases with visual hierarchy.

FREE

UseCase9: Masonry Bento Grid

CSS-columns masonry layout where each card's height is set by a size field (small, medium, or large) rather than by content, and cards with an image show it as a full-bleed background under a gradient scrim with icon, title, and description overlaid at the bottom.

Free block

This block is free. No license or account is required: install it with the CLI and use it in unlimited projects.

Installation

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/usecase9"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/usecase9"

This installs the block to components/beste/block/usecase9.tsx and the badge shadcn/ui primitive it depends on.

Quick start

The installed file exports usecase9Demo alongside the block: the exact props behind the preview above. Spread it to get a working section in one line.

tsx
import { UseCase9, usecase9Demo } from "@/components/beste/block/usecase9";

export default function Page() {
  return <UseCase9 {...usecase9Demo} />;
}

Then replace the demo with your own props. Written out, the same setup looks like this:

tsx
import { Rocket, ShoppingCart, Users } from "lucide-react";
import { UseCase9 } from "@/components/beste/block/usecase9";

export default function Page() {
  return (
    <UseCase9
      badge={{ label: "Solutions", variant: "secondary" }}
      heading="Built for Every Use Case"
      description="Discover how our platform adapts to your unique needs."
      columns={3}
      items={[
        {
          id: "startups",
          icon: <Rocket className="size-5" />,
          title: "Startups",
          description: "Launch faster with pre-built templates.",
          size: "large",
          image: { src: "https://images.unsplash.com/photo-1522071820081-009f0129c71c", alt: "Startups" },
        },
        {
          id: "agencies",
          icon: <Users className="size-5" />,
          title: "Agencies",
          description: "Manage multiple client projects with ease.",
          size: "small",
        },
        {
          id: "ecommerce",
          icon: <ShoppingCart className="size-5" />,
          title: "E-Commerce",
          description: "Build and scale online stores.",
          size: "medium",
          image: { src: "https://images.unsplash.com/photo-1441986300917-64674bd600d8", alt: "E-Commerce" },
        },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }Pill shown above the heading; omitted when badge.label is falsy
headingstringSection heading
descriptionstringSection intro text
itemsUseCaseItem[]Masonry cards
columns2 | 3 | 43CSS column count at md/sm/lg
classNamestringExtra classes for the outer <section>
ts
type UseCaseItem = {
  id: string;
  icon?: React.ReactNode;
  title: string;
  description: string;
  image?: { src: string; alt: string };
  size?: "small" | "medium" | "large";
};

Behavior notes

More Use Case blocks

View all Use Case
PRO

usecase19

Portfolio Masonry Gallery

Pinterest-style masonry grid with variable-height image cards, category labels, and hover zoom effects. Perfect for creative portfolios or work showcases.

FREE

usecase2

Use Case Card Grid

Responsive grid of use case cards with hover effects, images, descriptions, and feature checklists. Perfect for displaying solutions for different industries or customer segments.

PRO

usecase32

Parallax Destination Cards

Three-column card grid with hover parallax zoom effect on background images and sliding content reveal. Perfect for destination showcases or visual storytelling.

PRO

usecase17

Hover Reveal Cards

Card grid with background images that reveals detailed content on hover via smooth slide-up animation. Perfect for destination showcases or visual feature galleries.

FREE

usecase5

Feature Icon Grid

Centered icon grid with titles and descriptions, featuring hover animations on icon containers. Perfect for showcasing product features or capabilities in a clean layout.

FREE

usecase4

Industry Solutions Grid

Card grid showcasing industry-specific solutions with icons, images, descriptions, and feature tags. Perfect for highlighting how your platform serves different verticals.