Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jill64/svelte-inline-modal

🪟 Simple Modal on the Fly
https://github.com/jill64/svelte-inline-modal

inline modal onthefly svelte

Last synced: 2 months ago
JSON representation

🪟 Simple Modal on the Fly

Awesome Lists containing this project

README

        

# svelte-inline-modal

npm-version npm-license npm-download-month npm-min-size ci.yml website

🪟 Simple Modal on the Fly

## [Demo](https://svelte-inline-modal.jill64.dev)

[StackBlitz](https://stackblitz.com/edit/svelte-inline-modal?file=src%2Froutes%2FDemo.svelte)

## Installation

```bash
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.

```svelte

import { InlineModal } from 'svelte-inline-modal'

const onCloseModal = () => {
// ...
}

Open



Close

```

## License

[MIT](LICENSE)