Posts Learn Components Snippets Categories Tags Tools About
/
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 p-6">
  <div class="cursor-pointer rounded-xl bg-white p-3 shadow-lg hover:shadow-xl">
	<div class="relative flex items-end overflow-hidden rounded-xl">
	  <img src="https://thumbnails.production.thenounproject.com/gA9eZOvsBYSHrMumgrslmRGoBto=/fit-in/1000x1000/photos.production.thenounproject.com/photos/BCBA88B6-5B41-4B50-A786-E60CAA0ECDA3.jpg" alt="wallpaper" />

	  <div class="absolute bottom-3 left-3 inline-flex items-center rounded-lg bg-white p-2 shadow-md">
		<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-yellow-400" viewBox="0 0 20 20" fill="currentColor">
		  <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
		</svg>

		<span class="ml-1 text-sm text-slate-400">4.9</span>
	  </div>
	</div>

	<div class="mt-1 p-2">
	  <h2 class="text-slate-700">The Malta Hotel</h2>
	  <p class="mt-1 text-sm text-slate-400">Italy, Europe</p>

	  <div class="mt-3 flex items-end justify-between">
		<p>
		  <span class="text-lg font-bold text-orange-500">$1,421</span>
		  <span class="text-sm text-slate-400">/night</span>
		</p>

		<div class="group inline-flex rounded-xl bg-orange-100 p-2 hover:bg-orange-200">
		  <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-orange-400 group-hover:text-orange-500" viewBox="0 0 20 20" fill="currentColor">
			<path d="M5 4a2 2 0 012-2h6a2 2 0 012 2v14l-5-2.5L5 18V4z" />
		  </svg>
		</div>
	  </div>
	</div>
  </div>

  <div class="cursor-pointer rounded-xl bg-white p-3 shadow-lg hover:shadow-xl">
	<div class="relative flex items-end overflow-hidden rounded-xl">
	  <img src="https://thumbnails.production.thenounproject.com/gA9eZOvsBYSHrMumgrslmRGoBto=/fit-in/1000x1000/photos.production.thenounproject.com/photos/BCBA88B6-5B41-4B50-A786-E60CAA0ECDA3.jpg" alt="wallpaper" />

	  <div class="absolute bottom-3 left-3 inline-flex items-center rounded-lg bg-white p-2 shadow-md">
		<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-yellow-400" viewBox="0 0 20 20" fill="currentColor">
		  <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
		</svg>

		<span class="ml-1 text-sm text-slate-400">4.9</span>
	  </div>
	</div>

	<div class="mt-1 p-2">
	  <h2 class="text-slate-700">The Malta Hotel</h2>
	  <p class="mt-1 text-sm text-slate-400">Italy, Europe</p>

	  <div class="mt-3 flex items-end justify-between">
		<p>
		  <span class="text-lg font-bold text-orange-500">$1,421</span>
		  <span class="text-sm text-slate-400">/night</span>
		</p>

		<div class="group inline-flex rounded-xl bg-orange-100 p-2 hover:bg-orange-200">
		  <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-orange-400 group-hover:text-orange-500" viewBox="0 0 20 20" fill="currentColor">
			<path d="M5 4a2 2 0 012-2h6a2 2 0 012 2v14l-5-2.5L5 18V4z" />
		  </svg>
		</div>
	  </div>
	</div>
  </div>

  <div class="cursor-pointer rounded-xl bg-white p-3 shadow-lg hover:shadow-xl">
	<div class="relative flex items-end overflow-hidden rounded-xl">
	  <img src="https://thumbnails.production.thenounproject.com/gA9eZOvsBYSHrMumgrslmRGoBto=/fit-in/1000x1000/photos.production.thenounproject.com/photos/BCBA88B6-5B41-4B50-A786-E60CAA0ECDA3.jpg" alt="wallpaper" />

	  <div class="absolute bottom-3 left-3 inline-flex items-center rounded-lg bg-white p-2 shadow-md">
		<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-yellow-400" viewBox="0 0 20 20" fill="currentColor">
		  <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
		</svg>

		<span class="ml-1 text-sm text-slate-400">4.9</span>
	  </div>
	</div>

	<div class="mt-1 p-2">
	  <h2 class="text-slate-700">The Malta Hotel</h2>
	  <p class="mt-1 text-sm text-slate-400">Italy, Europe</p>

	  <div class="mt-3 flex items-end justify-between">
		<p>
		  <span class="text-lg font-bold text-orange-500">$1,421</span>
		  <span class="text-sm text-slate-400">/night</span>
		</p>

		<div class="group inline-flex rounded-xl bg-orange-100 p-2 hover:bg-orange-200">
		  <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-orange-400 group-hover:text-orange-500" viewBox="0 0 20 20" fill="currentColor">
			<path d="M5 4a2 2 0 012-2h6a2 2 0 012 2v14l-5-2.5L5 18V4z" />
		  </svg>
		</div>
	  </div>
	</div>
  </div>
</div>

Tailwind CSS Hotel Card Component

[email protected] 468 views

How to install and add to your project?

Step 1: Include Scripts and Styling CDN inside the head tag

<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css">
<script defer src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script>

Step 2: Copy the Tailwind CSS Hotel Card Component component code above as you need it

Step 3: Preview the component in your browser 🚀

Step 4: For production release make sure to use the official Tailwind CSS Installation

You are done 🎉

Credits or Attribution

If you enjoy using our components, please do give us (PostSrc) credit in your project footer section or about page. Copy the HTML below for attribution.

<a href="https://postsrc.com/components" target="_blank" rel="noopener" title="PostSrc Components - Collection of Tailwind CSS components for everyone to use"><img style="width: auto; height: 46px;" src="https://postsrc.com/img/attr.png" alt="PostSrc logo"></a>

Other Tailwind CSS Card Components

More Components

Sponsors 👑

+ Add Yours
)