alert-confirm-prompt
v1.0.0
Published
Just like `alert/confirm/prompt(...)` but with custom styling and async support. Both store and Svelte render component.
Downloads
1
Readme
@marianmeres/alert-confirm-prompt
Just like alert/confirm/prompt(...)
but with custom styling and async support.
Both store and Svelte render component.
Work in progress...
Install
$ npm i @marianmeres/alert-confirm-prompt
Example
<script>
import { createAlertConfirmPromptStore } from "@marianmeres/alert-confirm-prompt";
import AlertConfirmPrompt from "@marianmeres/alert-confirm-prompt/AlertConfirmPrompt.svelte";
const acp = createAlertConfirmPromptStore();
</script>
<button on:click={() => acp.alert({ title: 'Hey ho!' })}>Alert</button>
<AlertConfirmPrompt {acp} />