<div class="flex justify-center items-center"> <div class="relative"> <div class="flex items-center justify-center w-12 h-12 mx-2 overflow-hidden rounded-full"> <img src="https://images.unsplash.com/photo-1548544149-4835e62ee5b3?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80"> </div> <div class="absolute bottom-0 right-0 w-4 h-4 mr-1 rounded-full bg-green-500 border-2 border-white"></div> </div> <div class="relative"> <div class="flex items-center justify-center w-12 h-12 mx-2 overflow-hidden rounded-full"> <img src="https://images.unsplash.com/photo-1548544149-4835e62ee5b3?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80"> </div> <div class="absolute bottom-0 right-0 w-4 h-4 mr-1 rounded-full bg-blue-500 border-2 border-white"></div> </div> <div class="relative"> <div class="flex items-center justify-center w-12 h-12 mx-2 overflow-hidden rounded-full"> <img src="https://images.unsplash.com/photo-1548544149-4835e62ee5b3?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80"> </div> <div class="absolute bottom-0 right-0 w-4 h-4 mr-1 rounded-full bg-yellow-500 border-2 border-white"></div> </div> <div class="relative"> <div class="flex items-center justify-center w-12 h-12 mx-2 overflow-hidden rounded-full"> <img src="https://images.unsplash.com/photo-1548544149-4835e62ee5b3?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80"> </div> <div class="absolute bottom-0 right-0 w-4 h-4 mr-1 rounded-full bg-red-500 border-2 border-white"></div> </div> </div>
Tailwind CSS avatar round with status indicator component
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 Avatar Round With Status 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>