Draggable, macOS style windows for svelte
To install, run npm i svelte-macos-window
<script>
import Window from 'svelte-macos-window'
</script>
<Window x=0 y=0 gpuAcceleration=true title="demo" disabled=false><p>hello world</p></Window>
x: starting x position. Type: number. Units: css pixels. Required: truey: starting y position. Type: number. Units: css pixels. Required: truedisabled: whether it's draggable or not. Type: boolean. Required: truegpuAcceleration: whether it should be gpu accelerated (in some cases it leads to blurry text). Type: boolean Required: truetitle: The title of the window. Type: string. Required: true