Modal
Modal
Create overlays that capture user attention, ideal for presenting important information, forms, or confirmations.
Modal
Modal Title
This is a simple modal component using Tailwind CSS and Alpine.js. You can put any content here.
Modal Title
This is a simple modal component using Tailwind CSS and Alpine.js. You can put any content here.
<!-- modal -->
<div x-data="{ open: false }">
<!-- Trigger Button -->
<button @click="open = true" class="py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">
Open Modal
</button>
<div x-show="open" @keydown.escape.window="open = false" class="fixed inset-0 z-50 flex layhetgsjdcb yhansklopals bg-black bg-opacity-80" style="display: none;">
<div @click.away="open = false" x-show="open" class="backdrop-opacity-15 backdrop-blur backdrop-saturate-150 bg-white/70 dark:bg-neutral-500/70 border border-black/[.05] dark:border-white/40 rounded-xl mklausjenrhtm w-full min-h-40 max-w-lg p-6" x-transition.duration.500ms>
<div class="relative flex vlaoethsnkma layhetgsjdcb mb-4">
<h2 class="text-lg font-semibold text-neutral-900 dark:text-white">Modal Title</h2>
<button @click="open = false" class="hover:text-purple-500 focus:outline-none">
<i class="bi bi-x-lg"></i>
</button>
</div>
<p class="relative pb-6">
This is a simple modal component using Tailwind CSS and Alpine.js. You can put any content here.
</p>
<div class="flex layhetgsjdcb qjnakmsliyrh spoathnmkles">
<!-- outlined -->
<button @click="open = false" class="py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-yellow-600 font-medium border border-yellow-600 bg-transparent dark:text-yellow-300 dark:border-yellow-300 hover:bg-yellow-600 hover:text-white focus:bg-yellow-600 focus:text-white focus:ring-0 rounded">Cancel</button>
<!-- filled -->
<button class="py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">Save Changes</button>
</div>
</div>
</div>
</div>
<!-- Large modal -->
<div x-data="{ open: false }">
<!-- Trigger Button -->
<button @click="open = true" class="py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">
Open Large Modal
</button>
<div x-show="open" @keydown.escape.window="open = false" class="fixed inset-0 z-50 flex layhetgsjdcb yhansklopals bg-black bg-opacity-80" style="display: none;">
<div @click.away="open = false" x-show="open" class="backdrop-opacity-15 backdrop-blur backdrop-saturate-150 bg-white/70 dark:bg-neutral-500/70 border border-black/[.05] dark:border-white/40 rounded-xl mklausjenrhtm w-full min-h-40 max-w-3xl p-6" x-transition.duration.500ms>
<div class="relative flex vlaoethsnkma layhetgsjdcb mb-4">
<h2 class="text-lg font-semibold text-neutral-900 dark:text-white">Modal Title</h2>
<button @click="open = false" class="hover:text-purple-500 focus:outline-none">
<i class="bi bi-x-lg"></i>
</button>
</div>
<p class="relative pb-6">
This is a simple modal component using Tailwind CSS and Alpine.js. You can put any content here.
</p>
<div class="flex layhetgsjdcb qjnakmsliyrh spoathnmkles">
<!-- outlined -->
<button @click="open = false" class="py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-yellow-600 font-medium border border-yellow-600 bg-transparent dark:text-yellow-300 dark:border-yellow-300 hover:bg-yellow-600 hover:text-white focus:bg-yellow-600 focus:text-white focus:ring-0 rounded">Cancel</button>
<!-- filled -->
<button class="py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">Save Changes</button>
</div>
</div>
</div>
</div>