A svelte version of bootbox package
npm install bootbox-svelte
npm i -D bootbox-svelte
`
This package also assumes that you have Bootstrap installed configured for your project. If not, please install it too.
To do this, we recommand you to use the Sveltestrap wrapper, though you can install it directly from Bootstrap site
(you actually only need the CSS style sheet for bootbox-svelte to function).How to use
First, include this piece of code in your App.svelte file (or whatever you called your root component):
`
`Then, you can call the
bootbox.alert, bootbox.confirm and bootbox.prompt anywhere in your project!
It even uses async/await syntax contrary to the original component, because it's not 2015 anymore :)
`
``