1.0.4 • Published 2 years ago

svelte-macos-window v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

svelte-macos-window

Draggable, macOS style windows for svelte

Install

To install, run npm i svelte-macos-window

Usage

<script>
    import Window from 'svelte-macos-window'
</script>
<Window x=0 y=0 gpuAcceleration=true title="demo" disabled=false><p>hello world</p></Window>

Props

  • x: starting x position. Type: number. Units: css pixels. Required: true
  • y: starting y position. Type: number. Units: css pixels. Required: true
  • disabled: whether it's draggable or not. Type: boolean. Required: true
  • gpuAcceleration: whether it should be gpu accelerated (in some cases it leads to blurry text). Type: boolean Required: true
  • title: The title of the window. Type: string. Required: true
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.16.0

2 years ago

0.15.0

2 years ago

0.14.0

2 years ago

0.13.0

2 years ago

0.12.0

2 years ago

1.12.0

2 years ago

0.11.0

2 years ago

1.10.1

2 years ago

0.10.0

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago