Home / Components / Alert Components / Tailwind CSS Order Card

Tailwind CSS Order Card

Tailwind CSS order card component

<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mt-4 w-full">
  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md" style="min-height: 160px">
	<div>
	  <div class="absolute top-0 right-0 mt-2 mr-2 p-4 z-20 flex justify-between">
		<div class="inline-flex items-center justify-center w-8 h-8 p-2 rounded-full bg-white shadow-sm">
		  <svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 h-auto fill-current text-red-500" viewBox="0 0 20 20" fill="currentColor">
			<path fill-rule="evenodd" d="M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.067c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z" clip-rule="evenodd" />
		  </svg>
		</div>
	  </div>

	  <div class="relative block h-full">
		<div class="h-32 bg-gray-100 rounded-lg"></div>
	  </div>
	</div>

	<h2 class="mt-2 text-gray-800 text-sm font-semibold line-clamp-1">
	  Super Value Pizza
	</h2>

	<p class="mt-2 text-gray-800 text-sm">$12.99</p>

	<button class="mt-4 px-4 py-2 bg-indigo-500 hover:bg-indigo-600 text-white text-sm font-medium rounded-md w-full">
	  Order
	</button>
  </div>

  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md" style="min-height: 160px">
	<div>
	  <div class="absolute top-0 right-0 mt-2 mr-2 p-4 z-20 flex justify-between">
		<div class="inline-flex items-center justify-center w-8 h-8 p-2 rounded-full bg-white shadow-sm">
		  <svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 h-auto fill-current text-red-500" viewBox="0 0 20 20" fill="currentColor">
			<path fill-rule="evenodd" d="M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.067c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z" clip-rule="evenodd" />
		  </svg>
		</div>
	  </div>

	  <div class="relative block h-full">
		<div class="h-32 bg-gray-100 rounded-lg"></div>
	  </div>
	</div>

	<h2 class="mt-2 text-gray-800 text-sm font-semibold line-clamp-1">
	  Super Value Pizza
	</h2>

	<p class="mt-2 text-gray-800 text-sm">$12.99</p>

	<button class="mt-4 px-4 py-2 bg-indigo-500 hover:bg-indigo-600 text-white text-sm font-medium rounded-md w-full">
	  Order
	</button>
  </div>

  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md" style="min-height: 160px">
	<div>
	  <div class="absolute top-0 right-0 mt-2 mr-2 p-4 z-20 flex justify-between">
		<div class="inline-flex items-center justify-center w-8 h-8 p-2 rounded-full bg-white shadow-sm">
		  <svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 h-auto fill-current text-red-500" viewBox="0 0 20 20" fill="currentColor">
			<path fill-rule="evenodd" d="M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.067c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z" clip-rule="evenodd" />
		  </svg>
		</div>
	  </div>

	  <div class="relative block h-full">
		<div class="h-32 bg-gray-100 rounded-lg"></div>
	  </div>
	</div>

	<h2 class="mt-2 text-gray-800 text-sm font-semibold line-clamp-1">
	  Super Value Pizza
	</h2>

	<p class="mt-2 text-gray-800 text-sm">$12.99</p>

	<button class="mt-4 px-4 py-2 bg-indigo-500 hover:bg-indigo-600 text-white text-sm font-medium rounded-md w-full">
	  Order
	</button>
  </div>

  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md" style="min-height: 160px">
	<div>
	  <div class="absolute top-0 right-0 mt-2 mr-2 p-4 z-20 flex justify-between">
		<div class="inline-flex items-center justify-center w-8 h-8 p-2 rounded-full bg-white shadow-sm">
		  <svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 h-auto fill-current text-red-500" viewBox="0 0 20 20" fill="currentColor">
			<path fill-rule="evenodd" d="M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.067c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z" clip-rule="evenodd" />
		  </svg>
		</div>
	  </div>

	  <div class="relative block h-full">
		<div class="h-32 bg-gray-100 rounded-lg"></div>
	  </div>
	</div>

	<h2 class="mt-2 text-gray-800 text-sm font-semibold line-clamp-1">
	  Super Value Pizza
	</h2>

	<p class="mt-2 text-gray-800 text-sm">$12.99</p>

	<button class="mt-4 px-4 py-2 bg-indigo-500 hover:bg-indigo-600 text-white text-sm font-medium rounded-md w-full">
	  Order
	</button>
  </div>
</div>
                    

3 years ago

2.5K

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 Order Card 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>

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this