Skip to content

Oren-Lindsey/svelte-macos-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Draggable, macOS style windows for svelte

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published