Skip to content

Listings

Listings Featured

A split title above five listing cards, the first twice as wide; photos zoom on hover.

Layout and motion from the Findit template — see it in context

Installation

$ npx shadcn@latest add https://framebrick.co/r/blocks/listings-featured.json

Usage

import { ListingsFeatured } from "@/components/listings-featured";

<ListingsFeatured
  title="Explore our featured listings"
  listings={[
    {
      title: "Marble House",
      href: "/properties/marble-house",
      address: "161 Bayview Drive",
      image: { src: "/listings/marble.jpg", alt: "…" },
      category: { label: "Villas", href: "/properties?category=villas" },
      type: "For sale",
    },
  ]}
/>

Props

PropTypeDefaultDescription
labelstringFeatured propertiesSmall muted line above the heading.
title / leadstring—Heading (h2) and the lead beside it from 768px (up to 400px).
listings{ title, href, address, image, category?, type? }[]5 listingsThe first five show; the first is twice as wide. The category chip can link.
classNamestring—Classes for the <section>.
  • Below 768px one column of four; from 768px two columns with the first card across both; from 1024px three columns with the first card two wide.
  • Hovering a card grows its photo to 105% (zoom-card). The photo link duplicates the title link, so it is hidden from assistive tech and the keyboard.

AI prompt

Paste into v0, Lovable, Bolt or Claude to rebuild this block in your own project.

Create a React + Tailwind CSS block called ListingsFeatured (Next.js).
- <section className="py-(--section-y)">, container mx-auto max-w-(--container) px-(--gutter), column gap-12.
- Split title: a small muted label and an h2 (font-heading text-h2 semibold); beside it from 768px (items-end, gap-12 / lg:gap-24) a
  muted lead up to 400px.
- Grid (gap-5): 1 column (four cards) / 2 columns from 768px with the first card spanning both / 3 columns from 1024px with the first card
  spanning two. Card (group, rounded-xl bg-muted, overflow-hidden): a 350px photo (rounded-xl) that zooms to 1.05 while the card is
  hovered (400ms, cubic-bezier(0.12,0.23,0.5,1)), inside an aria-hidden link; chips at its top-left (the category rounded-full
  bg-primary text-primary-foreground text-xs, a link; the type bg-background); then p-5: an h3 title (font-heading text-lg semibold)
  and a one-line muted address, as one link.
- Only shadcn variables and block tokens (secondary text on bg-muted is text-foreground/65: muted-foreground
  falls under 4.5:1 there); plain <img> with alt text.

Be the first to know

Get new templates and components first

One short email when we release a template or a free component. No spam — unsubscribe anytime.

We use your email only for Framebrick updates. Privacy policy