32px close, single-at-a-time, portal-rendered.
Standard modal shell. 32px close target, smooth enter/exit transitions, single-at-a-time registry (a new modal auto-closes the previous one). Portal-rendered to escape transform stacking contexts.
import { Modal } from "@/components/ui/modal";
<Modal open={open} onOpenChange={setOpen} title="Invite teammate">
<InviteForm />
</Modal>components/ui/ folder. You own the code.