Kill
Pull a sheet from the run. The question needs an answer.
Native <dialog> that requires an explicit answer. Escape and light dismiss are disabled.
Pull a sheet from the run. The question needs an answer.
npx @noordvc/raster-cli add alert-dialog
<dialog class="rs-dialog" open><span class="rs-dialog-title">Delete this workspace?</span><p class="rs-dialog-body">All projects go with it.</p><div class="rs-dialog-actions"><button class="rs-btn-ghost rs-btn-sm">Cancel</button><button class="rs-btn-primary rs-btn-sm">Delete</button></div></dialog>
import { AlertDialog, AlertDialogActions, AlertDialogBody, AlertDialogTitle } from "@/components/raster/alert-dialog";
<AlertDialog open={open} onClose={() => setOpen(false)}>
<AlertDialogTitle>Delete this workspace?</AlertDialogTitle>
<AlertDialogBody>All projects go with it.</AlertDialogBody>
<AlertDialogActions>
<Button variant="ghost" size="sm" onClick={() => setOpen(false)}>Keep it</Button>
<Button size="sm" onClick={remove}>Delete</Button>
</AlertDialogActions>
</AlertDialog>