EmpireUI
Sign inGet Pro
Free · MIT · React + Tailwind

Media Card

A versatile media card for React and Tailwind CSS with image or video, overlay, title and excerpt, perfect for blogs, galleries and feeds. Free and copy-paste ready.

Designing with motion
8 min watch

Copy the code

export function MediaCard() {
  return (
    <div className="w-64 overflow-hidden rounded-2xl border border-white/10 bg-white/5 text-white">
      <div className="relative grid h-32 place-items-center bg-gradient-to-br from-pink-500 to-violet-600">
        <button className="grid h-12 w-12 place-items-center rounded-full bg-white/90 text-violet-600">▶</button>
      </div>
      <div className="p-4">
        <h3 className="font-bold">Designing with motion</h3>
        <p className="text-sm text-white/60">8 min watch</p>
      </div>
    </div>
  )
}

Tailwind CSS · no dependencies · MIT licensed. Paste it straight into any React, Next.js or Vite project.

About the media card

This media card is part of Empire UI — a free, open-source library of 26+ component types rendered across 40 visual styles, from glassmorphism to neo-brutalism. Every block is copy-paste ready in React and Tailwind CSS with no runtime dependencies.

Want it in a different look? Browse all 40 styles or grab the matching glassmorphism components.

Related cards components

Product CardPricing TableProfile CardStats Card