0.7.0 • Published 5 years ago

sui_viewport v0.7.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Viewport usage

--at the top level file App.svelte import {Viewport, viewportStore} from "@sui/viewport";

viewportStore monitors the following variables: width, height, isMobile

Set mobileWidth of the layout <Viewport mobileWidth={900}/>

<h3 class:active={$viewportStore.isMobile}>x: {$viewportStore.width}, y: {$viewportStore.height}, is mobile?: {$viewportStore.isMobile} </h3>

0.7.0

5 years ago