Tailwind CSS Payment Success Modal
A payment success modal for Tailwind CSS. Use it to confirm a completed payment and point people to the next step. Built with the dialog and button components.
<button
type="button"
class="btn btn-outline"
id="payment-success-modal-trigger"
>
Pay Invoice
</button>
<dialog class="dialog" data-sp-toggle="#payment-success-modal-trigger">
<div class="dialog-panel">
<div class="dialog-header items-center text-center">
<div
class="mb-2 flex size-10 items-center justify-center rounded-lg bg-muted"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-6"
>
<path d="M20 6 9 17l-5-5"></path>
</svg>
</div>
<h2 class="dialog-title">Invoice paid</h2>
<p class="dialog-description">
You paid $17,975.30. A receipt copy was sent to [email protected].
</p>
</div>
<div class="dialog-footer sm:flex-col">
<button type="button" class="btn w-full">Next invoice</button
><button type="button" class="btn btn-outline w-full" data-sp-dismiss="">
Done
</button>
</div>
</div>
</dialog>