Components File Viewer File Viewer Component

File Viewer Component

A responsive file viewer component styled with Material Design principles using Tailwind CSS, featuring dark theme support.

Preview

HTML Code

<div class="bg-white dark:bg-gray-800 shadow rounded-lg p-6 max-w-md mx-auto mt-10">
    <h2 class="text-2xl font-bold text-gray-800 dark:text-gray-200 mb-4">File Viewer</h2>
    <div class="border-b border-gray-300 dark:border-gray-600 mb-4">
        <h3 class="text-xl font-semibold text-gray-700 dark:text-gray-200">Document Title</h3>
        <p class="text-gray-600 dark:text-gray-400">Uploaded by: <span class="font-medium">John Doe</span></p>
    </div>
    <div class="flex flex-col items-center mb-4">
        <img src="https://picsum.photos/200/100" alt="File Preview" class="rounded-lg shadow-md mb-4" />
        <p class="text-gray-700 dark:text-gray-300 text-center">File Description: This is a placeholder file viewer that shows brief file details and presentation.</p>
    </div>
    <div class="flex justify-between items-center">
        <span class="text-gray-600 dark:text-gray-400">File Size: 2.3 MB</span>
        <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded shadow">Download</button>
    </div>
</div>

Related Components

File Viewer Component

A nostalgic file viewer component inspired by retro 80s/90s aesthetics, designed with Tailwind CSS and supporting responsive effects and dark themes.

Open

File Viewer Component

A responsive File Viewer Component designed with Material Design principles, featuring dark mode support and responsive effects.

Open

File Viewer Component 1

A minimalist file viewer component designed using Tailwind CSS, featuring responsive effects and dark theme support. Display files with a clean layout, including placeholders for images and user avatars.

Open