All components

Property Cards 04

Property Cards 04 is a React and Tailwind CSS card component from Bund UI, licensed MIT. Copy it and paste it into your project.

Bund UI MIT cards

What it is

Property Cards 04 is a React and Tailwind CSS card component from Bund UI, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

Needs

npm i lucide-react

Licence

This component comes from Bund UI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Property Cards 04

examples/blocks/real-estate/property-cards/04/components/property-card.tsx
import { Card, CardContent } from "@/components/ui/card";
import { Bed, Bath, Car, Star, Home } from "lucide-react";
import Image from "next/image";

interface PropertyCardProps {
  title: string;
  image: string;
  price: string;
  address: string;
  bedrooms: number;
  bathrooms: number;
  parking: number;
  propertyType: string;
  rating: number;
  reviewCount: number;
}

export function PropertyCard({
  title,
  image,
  price,
  rating,
  address,
  bedrooms,
  bathrooms,
  parking,
  propertyType,
  reviewCount
}: PropertyCardProps) {
  return (
    <Card className="overflow-hidden border-0 py-0 shadow-none">
      <CardContent className="relative p-0">
        {/* Property Image */}
        <div className="relative aspect-square w-full">
          <Image src={image} alt={address} fill className="object-cover" />

          {/* Overlay Card at Bottom */}
          <div className="bg-background/70 dark:bg-background/50 absolute inset-4 top-auto rounded-xl p-4 backdrop-blur-md lg:p-6">
            <div className="mb-3 flex items-center justify-between gap-4">
              <h2 className="text-foreground text-xl font-bold">{title}</h2>
              <div className="text-sm font-semibold">{price}</div>
            </div>

            {/* Address */}
            <p className="text-muted-foreground mb-4 text-sm">{address}</p>

            {/* Property Details */}
            <div className="flex justify-between">
              <div className="text-muted-foreground flex items-center gap-6 text-sm">
                <div className="flex items-center gap-1">
                  <Bed className="size-4" />
                  <span>{bedrooms}</span>
                </div>
                <div className="flex items-center gap-1">
                  <Bath className="size-4" />
                  <span>{bathrooms}</span>
                </div>
                <div className="flex items-center gap-1">
                  <Car className="size-4" />
                  <span>{parking}</span>
                </div>
                <div className="flex items-center gap-1">
                  <Home className="size-4" />
                  <span>{propertyType}</span>
                </div>
              </div>

              <div className="text-foreground flex items-center gap-1">
                <Star className="size-3 fill-amber-600 text-amber-600" />
                <span className="text-sm font-semibold">{rating}</span>
                <span className="text-muted-foreground text-sm">({reviewCount})</span>
              </div>
            </div>
          </div>
        </div>
      </CardContent>
    </Card>
  );
}
examples/blocks/real-estate/property-cards/04/page.tsx
import { PropertyCard } from "./components/property-card";

export default function Page() {
  return (
    <div className="mx-auto space-y-6 px-4 py-10 sm:w-[450px]">
      <PropertyCard
        title="Emerald Bay Residences"
        image="https://images.unsplash.com/photo-1592595896551-12b371d546d5?q=80&w=2000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
        price="$1,000,000"
        address="12 Colinda Street, Toronto, Canada"
        bedrooms={4}
        bathrooms={2}
        parking={1}
        propertyType="House"
        rating={4.8}
        reviewCount={120}
      />
    </div>
  );
}

Similar components