1.1.17 • Published 11 days ago
svelte-inline-modal v1.1.17
svelte-inline-modal
🪟 Simple Modal on the Fly
Demo
Installation
npm i svelte-inline-modal
Usage
Unlike most modal libraries that provide a common component at the root, this library deploys the modal in place using the dialog element.
<script>
import { InlineModal } from 'svelte-inline-modal'
const onCloseModal = () => {
// ...
}
</script>
<InlineModal onClose={onCloseModal} let:open>
<button on:click={open}>Open</button>
<div slot="menu" let:close>
<!-- Your Modal Contents -->
<button on:click={close}>Close</button>
</div>
</InlineModal>
License
1.1.17
11 days ago
1.1.16
22 days ago
1.1.15
1 month ago
1.1.14
1 month ago
1.1.13
1 month ago
1.1.12
2 months ago
1.1.11
2 months ago
1.1.10
3 months ago
1.1.9
3 months ago
1.1.8
3 months ago
1.1.7
4 months ago
1.1.6
4 months ago
1.1.5
4 months ago
1.1.4
5 months ago
1.1.3
5 months ago
1.1.2
5 months ago
1.1.1
5 months ago
1.1.0
6 months ago
1.0.0
7 months ago
0.0.15
7 months ago
0.0.14
7 months ago
0.0.13
7 months ago
0.0.12
7 months ago
0.0.11
7 months ago
0.0.10
7 months ago
0.0.9
7 months ago
0.0.8
7 months ago
0.0.7
7 months ago
0.0.6
7 months ago
0.0.5
7 months ago
0.0.4
7 months ago
0.0.3
7 months ago
0.0.2
7 months ago
0.0.1
7 months ago