Posts Learn Components Snippets Categories Tags About
/

Tailwind CSS User Card

<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="flex items-center relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md">
	<div class="w-12 h-12 rounded-full bg-gray-100"></div>
	<div class="ml-3">
	  <p class="font-medium text-gray-800">John doe</p>
	  <p class="text-sm text-gray-600">Last online 4 hours ago</p>
	</div>
  </div>

  <div class="flex items-center relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md">
	<div class="w-12 h-12 rounded-full bg-gray-100"></div>
	<div class="ml-3">
	  <p class="font-medium text-gray-800">John doe</p>
	  <p class="text-sm text-gray-600">Last online 4 hours ago</p>
	</div>
  </div>

  <div class="flex items-center relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md">
	<div class="w-12 h-12 rounded-full bg-gray-100"></div>
	<div class="ml-3">
	  <p class="font-medium text-gray-800">John doe</p>
	  <p class="text-sm text-gray-600">Last online 4 hours ago</p>
	</div>
  </div>

  <div class="flex items-center relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md">
	<div class="w-12 h-12 rounded-full bg-gray-100"></div>
	<div class="ml-3">
	  <p class="font-medium text-gray-800">John doe</p>
	  <p class="text-sm text-gray-600">Last online 4 hours ago</p>
	</div>
  </div>
</div>

Tailwind CSS user card component

[email protected] Published on Sep 08, 2021 3 views

How to install and add to your project?

Step 1: Include Tailwind CSS Style using CDN inside the head tag

<link href="https://unpkg.com/[email protected]^2/dist/tailwind.min.css" rel="stylesheet">

Step 2: Copy the component code above as you need it

Step 3: Preview the component in your browsr

You are done 🎉

Other Tailwind CSS Card Components

More Components