feat: enhance PopupModal with improved transition effects and backdrop styling
This commit is contained in:
parent
54faf57262
commit
9e50f8c7dc
@ -18,10 +18,14 @@ export default function PopupModal({
|
||||
open={isOpen}
|
||||
onClose={onClose}
|
||||
className="relative z-50"
|
||||
transition
|
||||
>
|
||||
<DialogBackdrop className="fixed inset-0 bg-black/30" />
|
||||
<DialogBackdrop
|
||||
className="fixed inset-0 bg-black/50 duration-300 ease-out data-[closed]:opacity-0"
|
||||
transition
|
||||
/>
|
||||
<div className="fixed inset-0 flex w-screen items-center justify-center p-4">
|
||||
<DialogPanel className="max-w-lg space-y-4 rounded-lg bg-white p-8 shadow-lg">
|
||||
<DialogPanel className="max-w-lg space-y-4 rounded-lg bg-white p-8 shadow-lg duration-300 ease-out data-[closed]:scale-95 data-[closed]:opacity-0">
|
||||
<div className="relative">{children}</div>
|
||||
</DialogPanel>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user