Hello !
Some of you may be aware of this Vue 2 project : vue-modal-dialogs . Unfortunately, it has never been ported to Vue 3. So I created a small Vue 3 package that reproduces its basic functionality : vue3-promise-dialog.
The basic idea is to use the same API to request data from the user (dialog) as to request data from the server (fetch) : async functions and promises.
So for example to ask the user to confirm something, you might do this :
if (await confirm("Are you sure ?")) {
// Do something
}
Or to prompt the user for a text, you might do this :
let text = await prompText("Enter some text");
// Do something with the text
I hope you enjoy this small project