Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pupubird/svelte-draggable-draw

A draggable draw/modal just like what you see in native mobile
https://github.com/pupubird/svelte-draggable-draw

Last synced: 3 months ago
JSON representation

A draggable draw/modal just like what you see in native mobile

Awesome Lists containing this project

README

        

# Svelte draggable draw/modal

A svelte draggable draw/modal just like what you had seen in any of the mobile app!

## Demo

![example](/example.gif)

[Svelte.dev Repl](https://svelte.dev/repl/a76f1b9d987c43f1ac457efb189d5d0d)

TODO:

- [ ] Allow adjustment for width
- [ ] Allow adjustment for custom unit instead of viewport only
- [ ] Allow adjustment for custom box shadow
- [ ] Allow adjustment for custom padding

## Setting up

```bash
npm install svelte-draggable-draw
```

## Consuming components

```html

import DraggableDraw from 'svelte-draggable-draw';
let visible = true;
let maxVH = 90;
let minVH = 85;

function switchVisible(){
visible = !visible;
}

Click me to open

Cancel
Submit


Content


Can be injected here


```

Enjoy😎!