Component
Fullscreen Modal
Full-screen application modal with header toolbar, floating toolbars, canvas area, and footer status bar for editor-style interfaces.
- Component
- Tailwind
- HTML
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/modals/fullscreen-modal/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Modals/fullscreen-modal Tailwind/Components/Modals/fullscreen-modal <!-- Fullscreen Modal -->
<div id="fullscreen-modal" class="fixed inset-0 z-50 hidden">
<!-- Backdrop -->
<div class="fixed inset-0 bg-white dark:bg-gray-900"></div>
<!-- Header -->
<div class="fixed top-0 left-0 right-0 z-20 flex items-center justify-between px-6 py-4 border-b border-gray-100 dark:border-gray-800 bg-white/80 dark:bg-gray-900/80 backdrop-blur-md">
<div class="flex items-center gap-4">
<div class="w-10 h-10 bg-gradient-to-br from-rose-500 to-pink-600 rounded-xl flex items-center justify-center">
<svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
</div>
<div>
<h2 class="text-lg font-semibold text-gray-900 dark:text-white">Photo Editor</h2>
<p class="text-sm text-gray-500 dark:text-gray-400">Editing: vacation-photo.jpg</p>
</div>
</div>
<div class="flex items-center gap-3">
<button class="px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors">Cancel</button>
<button class="px-4 py-2 text-sm font-medium text-white bg-gradient-to-r from-rose-500 to-pink-600 rounded-lg hover:from-rose-600 hover:to-pink-700 transition-colors">Save Changes</button>
<button onclick="closeModal('fullscreen-modal')" class="p-2 rounded-lg text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
</div>
<!-- Toolbar -->
<div class="fixed top-20 left-1/2 -translate-x-1/2 z-20 flex items-center gap-1 px-2 py-1.5 bg-gray-900 dark:bg-gray-800 rounded-full shadow-xl">
<button class="p-2 text-white/70 hover:text-white hover:bg-white/10 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"/>
</svg>
</button>
<div class="w-px h-6 bg-white/20"></div>
<button class="p-2 text-white/70 hover:text-white hover:bg-white/10 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
</button>
<button class="p-2 text-white hover:bg-white/10 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707"/>
</svg>
</button>
<button class="p-2 text-white/70 hover:text-white hover:bg-white/10 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"/>
</svg>
</button>
<div class="w-px h-6 bg-white/20"></div>
<button class="p-2 text-white/70 hover:text-white hover:bg-white/10 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"/>
</svg>
</button>
<button class="p-2 text-white/70 hover:text-white hover:bg-white/10 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
</button>
</div>
<!-- Canvas Area -->
<div class="absolute inset-0 flex items-center justify-center pt-28 pb-16">
<div class="relative">
<img src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=800&fit=crop" alt="Editing image" class="max-w-full max-h-full rounded-lg shadow-2xl">
</div>
</div>
<!-- Footer -->
<div class="fixed bottom-0 left-0 right-0 z-20 px-6 py-4 bg-white/80 dark:bg-gray-900/80 backdrop-blur-md border-t border-gray-100 dark:border-gray-800">
<div class="flex items-center justify-between">
<div class="flex items-center gap-4 text-sm text-gray-500 dark:text-gray-400">
<span>2560 × 1440 px</span>
<span>•</span>
<span>RGB, 8-bit</span>
<span>•</span>
<span>4.2 MB</span>
</div>
<div class="flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400">
<span>Zoom: 100%</span>
</div>
</div>
</div>
</div>
<!-- Demo Trigger Button -->
<button onclick="openModal('fullscreen-modal')" class="px-6 py-3 bg-gradient-to-r from-rose-500 to-pink-600 text-white font-medium rounded-xl hover:from-rose-600 hover:to-pink-700 transition-all focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2">Open Fullscreen Modal</button> # Fullscreen Modal
Fullscreen modal overlay.
## Usage
```bash
npx devsnips add Tailwind/Components/Modals/fullscreen-modal
```
Copy from `code.html`.
## File Structure
`code.html` · `preview.html` · `metadata.json` · `README.md` 92 lines UTF-8 · LF · Spaces: 2
Continue browsing