alert-confirm-prompt
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i alert-confirm-prompt

Weekly Downloads

2

Version

1.0.0

License

none

Unpacked Size

17.7 kB

Total Files

11

Last publish

Collaborators

  • marianmeres