Components User Mentions User Mentions Component

User Mentions Component

A responsive User Mentions Component with dark theme support using Tailwind CSS. No JavaScript is needed, only HTML with Tailwind classes. For dark mode, use Tailwind's dark: prefix for styling. Images are from picsum.photos and avatars from randomuser.me.

Preview

HTML Code

<div class="bg-gray-100 dark:bg-gray-900 py-8">
  <div class="max-w-3xl mx-auto px-4">
    <h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">User Mentions</h2>
    
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-6">
      <div class="flex items-center mb-4">
        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-4">
        <div>
          <p class="text-gray-800 dark:text-white font-semibold">John Doe</p>
          <p class="text-gray-500 dark:text-gray-400 text-sm">@johndoe</p>
        </div>
      </div>
      
      <p class="text-gray-700 dark:text-gray-300 leading-relaxed mb-4">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      </p>
      
      <div class="flex justify-end text-gray-500 dark:text-gray-400 text-sm">
        <span>2 days ago</span>
      </div>
    </div>
    
    <!-- Repeat similar blocks for other mentions -->
    
  </div>
</div>

Related Components

User Mentions Component

A responsive user mentions component with dark theme support and microinteractions, designed for business websites using Tailwind CSS.

Open

User Mentions Component

A simple User Mentions Component designed in a Brutalist style with a grayscale color scheme, suitable for business and corporate websites. It includes user mentions with avatars and is responsive with dark theme support.

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