Component
Update Available Modal
Software update notification modal with version info, changelog, file size, and update/later action buttons.
- Component
- Tailwind
- HTML
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/modals/update-available-modal/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Modals/update-available-modal Tailwind/Components/Modals/update-available-modal <!-- Update Available Modal -->
<div id="update-modal" class="fixed inset-0 z-50 hidden">
<!-- Backdrop -->
<div class="fixed inset-0 bg-black/50 backdrop-blur-sm" onclick="closeModal('update-modal')"></div>
<!-- Modal Container -->
<div class="fixed inset-0 flex items-center justify-center p-4">
<div class="relative bg-white dark:bg-gray-900 rounded-2xl shadow-2xl w-full max-w-md transform transition-all" role="dialog" aria-modal="true">
<!-- Header with Update Icon -->
<div class="p-6 pb-4">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center gap-3">
<div class="w-12 h-12 bg-gradient-to-br from-emerald-500 to-teal-600 rounded-xl flex items-center justify-center shadow-lg shadow-emerald-500/30">
<svg class="w-6 h-6 text-white" 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-4l-4 4m0 0l-4-4m4 4V4"/>
</svg>
</div>
<div>
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Update Available</h3>
<p class="text-sm text-gray-500 dark:text-gray-400">Version 3.2.0</p>
</div>
</div>
<button onclick="closeModal('update-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>
<p class="text-gray-600 dark:text-gray-400 leading-relaxed">A new version of DevSnips is available with improved performance and bug fixes.</p>
</div>
<!-- Changelog -->
<div class="px-6 pb-4">
<div class="bg-gray-50 dark:bg-gray-800 rounded-xl p-4">
<h4 class="text-sm font-medium text-gray-900 dark:text-white mb-3">What's New</h4>
<ul class="space-y-2">
<li class="flex items-start gap-2 text-sm text-gray-600 dark:text-gray-400">
<svg class="w-4 h-4 text-emerald-500 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
</svg>
<span>Performance improvements and faster load times</span>
</li>
<li class="flex items-start gap-2 text-sm text-gray-600 dark:text-gray-400">
<svg class="w-4 h-4 text-emerald-500 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
</svg>
<span>New component library additions</span>
</li>
<li class="flex items-start gap-2 text-sm text-gray-600 dark:text-gray-400">
<svg class="w-4 h-4 text-emerald-500 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
</svg>
<span>Bug fixes and stability improvements</span>
</li>
</ul>
</div>
<!-- Update Info -->
<div class="flex items-center justify-between mt-4 text-sm">
<div class="flex items-center gap-4">
<span class="text-gray-500 dark:text-gray-400">Size: 24.5 MB</span>
<span class="text-gray-500 dark:text-gray-400">•</span>
<span class="text-gray-500 dark:text-gray-400">~2 min install</span>
</div>
</div>
</div>
<!-- Actions -->
<div class="flex items-center gap-3 p-6 pt-0">
<button onclick="closeModal('update-modal')" class="flex-1 py-3 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors flex items-center justify-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
Remind Me Later
</button>
<button onclick="closeModal('update-modal')" class="flex-1 py-3 text-sm font-medium text-white bg-gradient-to-r from-emerald-500 to-teal-600 rounded-xl hover:from-emerald-600 hover:to-teal-700 transition-colors shadow-lg shadow-emerald-500/30 flex items-center justify-center gap-2">
<svg class="w-4 h-4" 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-4l-4 4m0 0l-4-4m4 4V4"/>
</svg>
Update Now
</button>
</div>
</div>
</div>
</div>
<!-- Demo Trigger Button -->
<button onclick="openModal('update-modal')" class="px-6 py-3 bg-gradient-to-r from-emerald-500 to-teal-600 text-white font-medium rounded-xl hover:from-emerald-600 hover:to-teal-700 transition-all focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2">Open Update Modal</button> # Update Available Modal
App update available modal.
## Usage
```bash
npx devsnips add Tailwind/Components/Modals/update-available-modal
```
Copy from `code.html`.
## File Structure
`code.html` · `preview.html` · `metadata.json` · `README.md` 90 lines UTF-8 · LF · Spaces: 2
Continue browsing