1.0.0 • Published 1 year ago

alert-confirm-prompt v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@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} />
1.0.0

1 year ago