Usage
TakeoverDialog from @prepared911/ui/blocks/takeover-dialog covers the viewport for one task. It is a modal dialog: a title, a close control, an optional description, a scrolling body, and an optional footer. Escape and the close control dismiss it and return focus to the trigger.
Use it where a screen used TakeoverPage from @prepared911/ui-takeover-page to hold one workflow until the person finishes or dismisses it.
footer with one primary action last.Dialog or FormDialog.Drawer, DetailDrawer, or FormLayoutDrawer.CrudPage.Pass open and onOpenChange, or pass trigger and let the dialog manage itself. defaultOpen opens it on mount.
Order footer actions tertiary, Cancel, then one primary. Omit footer when the header close control is enough.
Escape closes the dialog and focus returns to trigger. Open it from a row and omit trigger: focus returns to the element that was focused before the dialog opened.