Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jill64/svelte-inline-modal
- Owner: jill64
- License: mit
- Created: 2023-09-06T06:44:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-23T03:38:06.000Z (8 months ago)
- Last Synced: 2024-05-23T05:34:51.869Z (8 months ago)
- Topics: inline, modal, onthefly, svelte
- Language: Svelte
- Homepage: https://svelte-inline-modal.jill64.dev
- Size: 2.52 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte-inline-modal
🪟 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)