Components User Mentions User Mentions Component

User Mentions Component

A responsive User Mentions Component with dark theme support, designed for business websites. Features microinteractions using Tailwind CSS and an earth-tone color scheme.

Preview

HTML Code

<div class="bg-gray-100 dark:bg-gray-800 p-6 rounded-md">
  <div class="flex items-center space-x-4">
    <img class="w-10 h-10 rounded-full ring-2 ring-amber-600" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
    <div class="flex-1">
      <p class="text-gray-800 dark:text-gray-200 font-semibold">John Doe</p>
      <p class="text-gray-600 dark:text-gray-400 text-sm">Mentioned you in a comment:</p>
      <p class="text-gray-700 dark:text-gray-300 mt-1">"Hey, check out this new feature!"</p>
    </div>
    <button class="text-amber-600 hover:text-amber-800 dark:text-amber-400 dark:hover:text-amber-600 transition-colors duration-200 ease-in-out">
      <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
        <path fill-rule="evenodd" d="M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H3v2H2v2h10l2-2 1-1 1.573-1.573A6 6 0 0118 8zM4.293 15.707L10 9.999V7a1 1 0 012 0v.001h1a1 1 0 011 1v3l3.707 3.707A1 1 0 0117 17H5a1 1 0 01-.707-1.707z" clip-rule="evenodd" />
      </svg>
    </button>
  </div>
  <div class="flex justify-end mt-4 space-x-2">
    <button class="px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-200 dark:bg-gray-700 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors duration-200 ease-in-out">Reply</button>
    <button class="px-4 py-2 text-sm font-medium text-white bg-amber-600 rounded-md hover:bg-amber-700 transition-colors duration-200 ease-in-out">View Post</button>
  </div>
</div>

Related Components

User Mentions Component

A user mentions component for a dashboard, featuring a monochromatic color scheme, simple layout, responsive design, and dark theme support, using Tailwind CSS.

Open

User Mentions Component

A skeuomorphic user mentions component designed to mimic real-world elements, featuring responsive effects and dark theme support using Tailwind CSS.

Open

User Mentions Component

A responsive User Mentions Component with Glassmorphism design, analogous color scheme, and dark theme support.

Open