Components / Travel
Travel Postcard
Free Travel React component — TravelPostcardCard. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Vintage sepia postcard with map badge, greeting title, location, and author signature. Wanderlust landing pages and newsletter headers.
Preview

Postcard
Greetings from Sundarbans!
— JD · 06.2026
Setup
How to use
Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.
- 1
Run in your terminal:
$npm install clsx tailwind-merge lucide-react - 2
Copy
lib/cn.tsbelow. Skip if you already havecn(). - 3
Copy the code below and create
components/travel/travel-postcard-card.tsxin your project. - 4
Import and render:
Exampleimport { TravelPostcardCard } from "@/components/travel/travel-postcard-card";
lib/cn.ts
import { type ClassValue, clsx } from "clsx";import { twMerge } from "tailwind-merge";export function cn(...inputs: ClassValue[]) {return twMerge(clsx(inputs));}
components/travel/travel-postcard-card.tsx
import { forwardRef, type ComponentPropsWithoutRef } from "react";import Image from "next/image";import { cn } from "@/lib/cn";import { MapPin } from "lucide-react";export type TravelPostcardCardProps = Readonly<{image?: string;title?: string;message?: string;location?: string;country?: string;date?: string;author?: string;icon?: React.ReactNode;} & ComponentPropsWithoutRef<"div">>;// Production-ready Travel Postcard component — styled with Tailwind CSS.export const TravelPostcardCard = forwardRef<HTMLDivElement,TravelPostcardCardProps>(({className,image = "/wallpaper-3.png",title = "Greetings from Sundarbans!",message = "Postcard",location = "West Bengal, India",country = "INDIA",date = "06.2026",author = "JD",icon,...props},ref,) => {return (<divref={ref}data-slot="travel-postcard-card"className={cn("w-72 overflow-hidden border border-[#e8e0d0] bg-[#fffdf5] font-serif shadow-[4px_4px_0_#e8e0d0]",className,)}{...props}>{/* Image section */}<div className="relative h-40"><Imagesrc={image}alt={title}fillsizes="288px"className="object-cover sepia-[0.2]"/>{/* Map badge */}<div className="absolute top-2 right-2 flex h-10 w-8 flex-col items-center justify-center border border-neutral-100 bg-white/90 shadow-sm">{icon ?? <MapPin size={10} className="text-[#55534f]" />}<span className="mt-0.5 font-mono text-[6px] text-neutral-500">{country}</span></div></div><div className="relative p-4">{/* decorative stamp */}<div className="absolute top-3 right-4 h-20 w-16 rotate-3 rounded-sm border-2 border-red-400/40 opacity-30" /><p className="mb-2 font-mono text-[10px] tracking-[0.3em] text-[#a09080] uppercase">{message}</p><h3 className="mb-2 text-lg leading-snug font-normal text-[#3d3530] italic">{title}</h3><div className="flex items-center gap-1.5 text-[11px] text-[#8a7e70]"><MapPin size={10} /><span>{location}</span></div><p className="mt-3 text-right font-mono text-[10px] text-[#b0a595]">— {author} · {date}</p></div></div>);},);TravelPostcardCard.displayName = "TravelPostcardCard";